UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How To Set Up a Radius Damage?

broken avatar :(
Created 11 years ago
by Eternal_Fire
0 Members and 1 Guest are viewing this topic.
3,788 views
broken avatar :(
×
broken avatar :(
Location: au
Date Registered: 23 April 2015
Last active: 5 years ago
Posts
165
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
Signature
Money isn't everything but everything has a price
×
Eternal_Fire's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Eternal_Fire's Contact & Social Links
Hi, I would like to know how i would set up a radius damage for a gravity spikes script I'm making, thanks.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
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
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
The 5th argument of radius damage defines the "attacker"
You could try setting it to the player.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
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
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
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?
Player can't hurt another player
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Player can't hurt another player

Ooooookay. Let's rephrase that maybe... I was wondering...

When Attacker is defined in this function, can other players, or the Attacker themselves, be injured from calling this function?

I assume your answer states that it will not hurt other players.
Last Edit: October 14, 2015, 04:36:55 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: au
Date Registered: 23 April 2015
Last active: 5 years ago
Posts
165
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
×
Eternal_Fire's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Eternal_Fire's Contact & Social Links
Ooooookay. Let's rephrase that maybe... I was wondering...

When Attacker is defined in this function, can other players, or the Attacker themselves, be injured from calling this function?

I assume your answer states that it will not hurt other players.

you could use this

Code Snippet
Plaintext
setPlayerIgnoreRadiusDamage(true);

As it makes the players ignore radius damage all together but that would mess with raygun/grenades/launchers ect.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
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 ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
you could use this

Code Snippet
Plaintext
setPlayerIgnoreRadiusDamage(true);

As it makes the players ignore radius damage all together but that would mess with raygun/grenades/launchers ect.
i think he wants to know
 
Quote
When Attacker is defined in this function, can other players, or the Attacker themselves, be injured from calling this function?

rather than a method to "stop" them taking damage no matter what. I assume he needs to know for something
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I don't need to know, I was curious. Knowing that changes my opinion of the optimal way to damage zombies around. I'm not the op.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
I don't need to know, I was curious. Knowing that changes my opinion of the optimal way to damage zombies around. I'm not the op.
fair enough

however im curious to know now too lol

 
Loading ...