Enable grenade direct damage(CODWAW)?

broken avatar :(
Created 506 days ago
by cqgzxcvbnm
0 Members and 1 Guest are viewing this topic.
625 views
broken avatar :(
×
broken avatar :(
Location: cn
Date Registered: 20 September 2013
Last active: 3 days ago
Posts
32
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: 24 days 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 :) [You are not allowed to view external links. Register or Login to see them]
discord server:
[You are not allowed to view external links. Register or Login to see them]
×
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: 66 days ago
Posts
6,879
Respect
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: 4 hours ago
Posts
1,177
Respect
1,370Add +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
[RELEASED] Greenhouse Realism 3.0: [You are not allowed to view external links. Register or Login to see them]

NUK370WN Realism 3.0: [You are not allowed to view external links. Register or Login to see them]
Industrial Estate Realism 3.0: [You are not allowed to view external links. Register or Login to see them]

Support my work here:  [You are not allowed to view external links. Register or Login to see them]
×
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 )

	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:
"melee"
"pistolbullet"
"riflebullet"
"grenade"

My guess would be "projectile" is also valid, but havent tried myself. Enter them as a string, so for example:
	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

 

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 Twitch
Loading ...