Raised This Month: $ Target: $400
 0% 

Damageradius like seen in Gasnades für players.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 02-15-2007 , 23:33   Re: Damageradius like seen in Gasnades für players.
Reply With Quote #2

personal idea
1) create a invisible enitity, solid_trigger
2) set it's size to fit the "radius"
3) set it's origin to the player's origin & set it follow "the player"(movetype_follow)
4) when other players touch the created entity, use some trace-line to filtrate "wall" | "water" etc, then the residual status is been "hurt", just make "fakedamage" to them
5) if you want damage per some seconds, chang some param of the created entity by every "think" of it(through set the created entity's "nextthink" by your custom time), or simply use loop task
sorry for my bad English.
Ryu2877 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 00:37.


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