Hello everyone,
I posted this question on all Half-Life coding forums I could find,
but it seems no one knows the answer :( I thought maybe you can help me there :D
If you noticed, displacer and shockrifle (from Opposing Force mod)
have beam effects when you fire. I mean not beam from weapon to
enemy, but beams which are here only for effect (for example when
displacer spins up, you can see beams on its end, beams are attached
to three attach points). I am trying to make such effect for my
weapon - it also has same attachpoints as displacer. To make beam
attached I've used
pBeam->SetStartAttachment ( 2 );
pBeam->SetEndAttachment ( 3 );
But SetStartAttachment doesn't work anyway! You can even specify
number of non-existen attachpoint here, effect will be the same.
Start of the beam will be near left bottom of player...
After that I tried to use GetAttachment... procedures. I hoped
everything will be ok with them:
Vector vecSrc1, vecAngles1;
Vector vecSrc2, vecAngles2;
GetAttachment( 1, vecSrc1, vecAngles1 );
GetAttachment( 2, vecSrc2, vecAngles2 );
...
pBeam->SetStartPos(vecSrc1);
pBeam->SetEndPos(vecSrc2);
But know HL crashes! I am confused :( and don't know what is
wrong...
Maybe you can help me?
Thanks.
--
Best regards,
Vyacheslav mailto:[EMAIL PROTECTED]
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders