Raised This Month: $ Target: $400
 0% 

Replacing RPG Trail.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 05-02-2007 , 00:17   Re: Replacing RPG Trail.
Reply With Quote #6

I'd use some sort of flag.

Code:
if(equali(classname,"rpg_rocket")) {     if(pev(ent,pev_iuser1)) return FMRES_IGNORED;     set_pev(ent,pev_iuser1,1);     // ... }

pev_iuser1 should be 0 by default. So it passes by the if statement unharmed the first time think is called, sets the value to 1 so that it knows not to do this again next time, and then executes your code.

As for not getting the beams to coincide, you might have to kill the old beam first:

Code:
message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(TE_KILLBEAM); // Kill all beams attached to entity write_short(ent); message_end();
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 06:43.


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