PDA

View Full Version : Jumping with low hp ;p



Invictus
28th December 2013, 14:29
Hello again xD


I have another one. In my 4fun mod, when you jump (15 meters) you die. How to disable damage off jump? Just give me idea how to write this script ;p Maybe on Callback_PlayerDamage?

kung foo man
28th December 2013, 14:49
Yea, you can just write on top of Callback_PlayerDamage:



if (sMeansOfDeath == "MOD_FALLING")
return;

Invictus
28th December 2013, 14:59
Works! Thanks.

IzNoGoD
28th December 2013, 23:33
setcvar("bg_falldamageminheight", 9998);
setcvar("bg_falldamagemaxheight", 9999);