Ulysses

General => Off-Topic => Topic started by: Dv2236 on October 12, 2009, 08:13:03 PM

Title: Real fall damage
Post 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 <_<
Title: Re: Real fall damage
Post by: Megiddo on October 12, 2009, 08:20:24 PM
I believe it's sv_falldamage
Title: Re: Real fall damage
Post by: Dv2236 on October 12, 2009, 09:09:46 PM
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.
Title: Re: Real fall damage
Post by: jay209015 on October 12, 2009, 09:56:52 PM
Here you go! (http://lmgtfy.com/?q=setting+fall+damage+to+realistic+in+garrysmod)
Title: Re: Real fall damage
Post by: Dv2236 on October 12, 2009, 10:20:22 PM
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.
Title: Re: Real fall damage
Post by: Megiddo on October 13, 2009, 05:25:15 AM
Ah yes, mp_falldamage. Guess Garry disabled it. :P
Title: Re: Real fall damage
Post by: jay209015 on October 13, 2009, 08:34:01 AM
Ah yes, mp_falldamage. Guess Garry disabled it. :P
     - Must of been a security fix haha :P
Title: Re: Real fall damage
Post by: atomicspark on October 13, 2009, 05:42:47 PM
mp_falldamage used to work. :(
Title: Re: Real fall damage
Post by: Dv2236 on October 13, 2009, 05:57:40 PM
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
Code: [Select]
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?
Title: Re: Real fall damage
Post by: JamminR on October 13, 2009, 08:15:50 PM
gm_falleritus ... golden age gmod classics.
Title: Re: Real fall damage
Post by: raklatif on October 26, 2009, 10:57:26 AM
 ;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...