Damageradius like seen in Gasnades für players.
Hi!
I need a little help with my plugin. I want a player to glow yellow and do 5dmg per second to alle players next to him (radius like grenade). glowing is no problem^^ but how do i make him damage to outer players in his radius? thx |
Re: Damageradius like seen in Gasnades für players.
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. |
Re: Damageradius like seen in Gasnades für players.
Engine:
Code:
Fakemeta: Code:
|
Re: Damageradius like seen in Gasnades für players.
Thank you!
But... I startet coding this plugin 2004.... I found it yesterday an looked at its code... The i realized that i´ve forgot everything i know about coding plugins ;) So your answer IS really helpful, BUT i dont know how i put this into my plugin ;) this is my code so far... Code:
public racost(id) { |
| All times are GMT -4. The time now is 00:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.