Ulysses
General => Off-Topic => Topic started by: Dv2236 on October 12, 2009, 08:13:03 PM
-
I was wondering if anyone knows how to make it so when you fall, you take damage base on how high you have fallen.
I hate this fall from 1000ft and only take 10 damage <_<
-
I believe it's sv_falldamage
-
I cant seem to get the command to work, said it was unknown, I did find a command called mp_falldamage but it dont seem to do anything for me.
-
Here you go! (http://lmgtfy.com/?q=setting+fall+damage+to+realistic+in+garrysmod)
-
I see now a getfalldamage amount has to be set, thanks jay, back when I last tried to look in google there was nothing.
][_, ([]) ][_, the 1 on fp was posted 2 days ago... time to give this another go.
-
Ah yes, mp_falldamage. Guess Garry disabled it. :P
-
Ah yes, mp_falldamage. Guess Garry disabled it. :P
- Must of been a security fix haha :P
-
mp_falldamage used to work. :(
-
I said I got it to work :S
setup the command mp_falldamage 1
and make a lua file in lua\autorun\server\GetFallDamage.lua
function MPFallDamage( ply, vel )
if GetConVarNumber( "mp_falldamage" ) == 1 then
vel = vel - 580
return vel*(100/(1024-580))
end
end
hook.Add( "GetFallDamage", "MPFallDamage", MPFallDamage )
Than heat and serve. and you will have people lined up to fall and die, I mean what?
-
gm_falleritus ... golden age gmod classics.
-
;D ;D ;D Just so you know. there is an addon on garrysmod.org. here it is :D
http://www.garrysmod.org/downloads/?a=view&id=73018
You may use mp_falldamage as a scale for how much fall damage to take.
1 = take normal damage
0 = take no damage
0.5 take half damage
2 = bones are made of glass
0.025 You can fall from the highest building in gm_bigcity and still have more then 25 life...