This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
When Half-Life crashes, what does the debugger point to?...

It should tell you what the problem is. (usually)

-Sniper
----- Original Message -----
From: "Vyacheslav Djura" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 3:11 PM
Subject: [hlcoders] Beams and model again...


> Hello Half-Life coders,
>
> I am making weapon like displacer and shockroach (from Op4), and there
> is effect - beam, which uses attachpoints as start and end entity.
> Beam between two attachpoints, but SetStartAttachment doesn't work.
> What's wrong???
> I looked through SDK and found GetAttachment() proc. But when I use it, HL crashes. 
>Maybe you know what's the problem?
>
> Vector vecSrc1, vecAngles1;
> Vector vecSrc2, vecAngles2;
> SendWeaponAnim( DISPLACER_SPINUP );
> EMIT_SOUND(ENT(pev), CHAN_ITEM, "weapons/displacer_spin.wav", 1, ATTN_NORM);
> pBeam = CBeam::BeamCreate("sprites/lgtning.spr",25);
> GetAttachment( 1, vecSrc1, vecAngles1 );
> GetAttachment( 2, vecSrc2, vecAngles2 );
> pBeam->ointEntInit(pev->origin, m_pPlayer->entindex() );//pev->origin
> pBeam->SetStartPos(vecSrc1);
> pBeam->SetEndPos(vecSrc2);
>
> --
> 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
>
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to