Raised This Month: $ Target: $400
 0% 

Cannot find tag mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-05-2010 , 19:41   Re: Cannot find tag mismatch
Reply With Quote #5

1) On Nadethrow, pev(pev_owner, owner) should be owner = pev(nade_id, pev_owner). And there's no reason for owner to be a global variable.
2) You should use pcvars.
3) Your logic is in the right way, but in a real situation it gets tricky. What if a player throws a grenade, then another player throws another one before the first grenade hits someone? A think a nice approach will be to store the id of the thrown grenade, then in touch_nade check if the id of the touching grenade matches the id of the thrown nade. Then you check for the players teams.
Seta00 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode