Your code just checks if there is a local player. (Always true) Try compare the owner of the weapon with the local player.
----- Original Message ----- From: "Luke Smith" <[EMAIL PROTECTED]> To: "Discussion of Half-Life Programming" <hlcoders@list.valvesoftware.com> Sent: Wednesday, October 08, 2008 2:02 PM Subject: Re: [hlcoders] Muzzle flash issue > What does the event code look like in OB? or is that what you updated with > what was posted earlier? > > on another note I got the eject brass to work but it ejects brass from my > gun when the enemy fires. How can I do a check to see if it is being used > by > the local player? > > I was trying this but it didnt work: > > > C_BasePlayer *player = C_BasePlayer::GetLocalPlayer(); > > if ( player ) > _______________________________________________ > 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