Page 1 of 1
Set wall damage to 0?
Posted: Tue Dec 18, 2018 12:48 pm
by meadwarrior
Hello!
Is there a way to set the 'walked against a wall' damage to 0?
Can it be turned off completely?
(Blasphemy!)
Thanks!
Re: Set wall damage to 0?
Posted: Tue Dec 18, 2018 1:15 pm
by Gambit37
Yep, it's possible. Have a look in
system.lua and take a copy of the
sys_wall_hit function. You can delete everything in that function and nothing will happen when the party walks into the wall, eg:
Code: Select all
function sys_wall_hit(level, xc, yc, dir)
end
If you still want a sound to happen, but no damage, then leave the line for the sound in there. (You can change the value of
base_wall_hit_sound to a different
snd.soundname if you like.)
Code: Select all
function sys_wall_hit(level, xc, yc, dir)
dsb_sound(base_wall_hit_sound)
end
Re: Set wall damage to 0?
Posted: Tue Dec 18, 2018 1:45 pm
by meadwarrior
Thank you very much, Gambit!
That worked perfectly!