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

Enable grenade direct damage(CODWAW)?

broken avatar :(
Created 6 years ago
by cqgzxcvbnm
0 Members and 1 Guest are viewing this topic.
1,388 views
broken avatar :(
×
broken avatar :(
Location: cn
Date Registered: 20 September 2013
Last active: 4 weeks ago
Posts
35
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Personal Quote
FirstBlood
Signature
×
cqgzxcvbnm's Groups
cqgzxcvbnm's Contact & Social Links
How to make a grenade get direct damage(damage type :MOD_grenade) like TOMAHAWK?

In CODWAWmp ,grenade have direct damage, but I can't find the corresponding code.
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
its not part of code, its in the weapon file, i think its under impact type
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community 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.
Community 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 Links[email protected]HarryBo21HarryBo000
Mod_impact

And it’s not unique to grenades
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Think you mean this? You can pass it as a variable in the dodamage() function;
( if the actual weapon does the damage, set it up in the weapon-file like death_reaper said )

Code Snippet
Plaintext
	zombie dodamage( amount, point, attacker, ?, damagemod );

I'm not sure what goes in the ? spot, i Always pass undefined..
For the damagemod these are valid ones i know off:
Code Snippet
Plaintext
"melee"
"pistolbullet"
"riflebullet"
"grenade"

My guess would be "projectile" is also valid, but havent tried myself. Enter them as a string, so for example:
Code Snippet
Plaintext
	zombie dodamage( zombie.health+500, zombie.origin, player, undefined, "grenade" );


If you talking about checking received damage, instead of applying damage Harry is right and it's called "MOD_IMPACT" "MOD_GRENADE" or "MOD_GRENADE_SPLASH" ( or "MOD_PROJECTILE" or "MOD_PROJECTILE_SPLASH" )
Last Edit: June 27, 2018, 06:25:45 pm by BluntStuffy

 
Loading ...