Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: cqgzxcvbnm on June 27, 2018, 07:45:05 am
Title: Enable grenade direct damage(CODWAW)?
Post by: cqgzxcvbnm on June 27, 2018, 07:45:05 am
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.
Title: Re: Enable grenade direct damage(CODWAW)?
Post by: death_reaper0 on June 27, 2018, 11:02:01 am
its not part of code, its in the weapon file, i think its under impact type
Title: Re: Enable grenade direct damage(CODWAW)?
Post by: Harry Bo21 on June 27, 2018, 02:58:43 pm
Mod_impact
And it’s not unique to grenades
Title: Re: Enable grenade direct damage(CODWAW)?
Post by: BluntStuffy on June 27, 2018, 05:56:19 pm
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 )
I'm not sure what goes in the ? spot, i Always pass undefined.. For the damagemod these are valid ones i know off:
My guess would be "projectile" is also valid, but havent tried myself. Enter them as a string, so for example:
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" )