Hi, I would like to know how i would set up a radius damage for a gravity spikes script I'm making, thanks.
You could get an array of zombies and check their distance from the player, if less then #, then do the damage. You could spawn a trigger radius, set spawnflags, and if a zombie triggers it (touches it), then damage them. You could also do the radius damage after enabling invulnerability on the player(s).
Last Edit: October 14, 2015, 12:13:49 pm by MakeCents
The 5th argument of radius damage defines the "attacker" You could try setting it to the player.
Indeed it does.
Code Snippet
Plaintext
RadiusDamage( Origin, Range, Maximum Damage, Minimum Damage, Attacker );
I've never tested, do you know how that affects coop? If another player is close to them. I'm assuming that if you define attacker and a player can't hurt another player, that maybe it won't hurt other players then, or themselves?
Last Edit: October 14, 2015, 12:39:08 pm by MakeCents
RadiusDamage( Origin, Range, Maximum Damage, Minimum Damage, Attacker );
I've never tested, do you know how that affects coop? If another player is close to them. I'm assuming that if you define attacker and a player can't hurt another player, that maybe it won't hurt other players then, or themselves?
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time