The Event code for OB now looks like this. (This is after applying Tony's code) http://pastebin.ca/1222734
On Wed, Oct 8, 2008 at 6:51 AM, Jonas 'Sortie' Termansen <[EMAIL PROTECTED]>wrote: > 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" <[email protected] > > > 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 > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

