UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: azaria12 on July 10, 2018, 12:08:53 pm

Title: Remove Wunderwaffe Splash damage
Post by: azaria12 on July 10, 2018, 12:08:53 pm
How would I go about removing the splash damage that lowers the users health?
I want to make it normal splash damage
Title: Re: Remove Wunderwaffe Splash damage
Post by: AllMoDs on July 28, 2018, 03:25:49 pm
Code Snippet
Plaintext
SetPlayerIgnoreRadiusDamage( true );

having this on will ignore all RadiusDamage
other than using this you would have to do a damage override script
to ignore any self damage from the Wunderwaffe or add somthing in
Code Snippet
Plaintext
player_damage_override( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, modelIndex, psOffsetTime )

in _zombiemode.gsc to not affect you from the Wunderwaffe and if it ShellShocks you use this
Code Snippet
Plaintext
self StopShellShock();
in player_damage_override have it check if the damage is coming from the wonderwaffle and stop it there
Title: Re: Remove Wunderwaffe Splash damage
Post by: Harry Bo21 on July 29, 2018, 12:01:09 am
no there is a "actual" fix, was posted like 8 years ago, use the search bar

the problem is the wonderwaffe specific code keeps /2 the players "max" health instead of health, so eventually your max health becomes "1"