Author Topic: Real fall damage  (Read 10758 times)

0 Members and 1 Guest are viewing this topic.

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Real fall damage
« 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 <_<

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Real fall damage
« Reply #1 on: October 12, 2009, 08:20:24 PM »
I believe it's sv_falldamage
Experiencing God's grace one day at a time.

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: Real fall damage
« Reply #2 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.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Real fall damage
« Reply #3 on: October 12, 2009, 09:56:52 PM »
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: Real fall damage
« Reply #4 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.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Real fall damage
« Reply #5 on: October 13, 2009, 05:25:15 AM »
Ah yes, mp_falldamage. Guess Garry disabled it. :P
Experiencing God's grace one day at a time.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Real fall damage
« Reply #6 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
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: Real fall damage
« Reply #7 on: October 13, 2009, 05:42:47 PM »
mp_falldamage used to work. :(

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: Real fall damage
« Reply #8 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?
« Last Edit: October 13, 2009, 06:01:59 PM by Dv2236 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Real fall damage
« Reply #9 on: October 13, 2009, 08:15:50 PM »
gm_falleritus ... golden age gmod classics.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline raklatif

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Real fall damage
« Reply #10 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...