Garry's Mod

Garry's Mod

956 ratings
Wall-Damage ( Customizable Horizontal Fall-Damage )
3
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Roleplay
File Size
Posted
8.434 KB
5 Dec, 2024 @ 9:53am
1 Change Note ( view )

Subscribe to download
Wall-Damage ( Customizable Horizontal Fall-Damage )

Description
Hello Again


This is a quick addon that i decided to make after seeing someone asking about something like this on the workshop addons discussions of GMOD, and also because back in the day when i wasn't really that good at coding, my best friend asked me 'would you be able to code horizontal fall damage?', which at the time i really couldn't, but now it's a different story.

About the Mod


This is a simple mod that adds a customizable Horizontal damage system to gmod, i know there is a more complex and dynamic system like this out in the workshop but this is supposed to be a more simpler and lighter version with different settings, and i made all the code from scratch.

you can throw players at Walls or throw yourself at walls to take damage, the mod comes with an option to scale the damage based on the velocity of the collision and other settings aswell such as: be able to take damage without being airborne and etc..

Server Convars



Here is a list containing all customizable Cvars of the mod, which can all also be more easily-edited through the custom-panel of the mod found at: Utilities/Dragonred: Wall Damage/Wall-Damage Settings

  • d_walldamage_enabled ( 0 / 1 ): Deactivates/Activates the mod.

  • d_walldamage_velocityrequired ( 200 / 5000 ): Defines the required velocity a player must have in order to actually take damage from an impact.

  • d_walldamage_rawdamage ( 1 / 100 ): Defines The raw-unscaled damage of a wall impact when NOT using scaled damage.

  • d_walldamage_scaledamage ( 0 / 1 ): Defines if the damage will always be the defined Raw damage on every impact, or if the damage will be scaled according to the velocity of the impact and the scaling multiplier ( see below ).

  • d_walldamage_scalemultiplier ( 0.1 / 100 ): Multiplier for the scalling of Wall-Damage.

  • d_walldamage_canhappenonground ( 0 / 1 ): If Wall-Damage impacts should happen when the player is not airborne. ( NOT recommended, since it can trigger on ramp surfaces that are too Steep. Use it at your own risk. )

  • d_walldamage_onceperairbone ( 0 / 1 ): Defines if the player should ONLY take 1 Wall damage ONLY ONE TIME every time they go Airborne, Meaning they won't take anymore Wall-Damage after the first Airborne impact until they land on any ground again.

  • d_walldamage_cooldown ( 0.4 / 10 ): The Cooldown in seconds that players will get before they can hit another Wall-Damage impact and receive damage.

Support me if you want | Make a Commission



If you want to tip me or have somewhere to transfer me the payment after a completed-commission,

here's my Ko-fi:
My Ko-fi[ko-fi.com]
https://ko-fi.com/dragon_red

( of course you can also just directly transfer me through Paypal for Commissions, will give my personal paypal email at the moment of transfer through Steam chat or Discord. )

Future Bigger Projects


This was just a quick addon i made for nostalgia reasons mainly, but i have much bigger plans and ideas coming soon, like my horror-gamemode in development which the beta will be available on the workshop so i can get feedback and possibly support on my patreon to develop it even further with updates and more content for it, and also of course to support my other bigger future projects.

If you wish to help me with my bigger future projects and be credited on them and have access to alpha versions of them before they are fully finished and published to the workshop, or just support me aswell,

here's my Patreon:
My Patreon[patreon.com]
patreon.com/user?u=119455506
88 Comments
Bluekrakan but spooky 12 Sep @ 3:45pm 
this is more of an obscure bug report that probably doesn't need to be fixed, but if you are falling with enough horizontal speed and fire a crossbow bolt at a certain angle ( maybe like -60 degrees ) you take damage.
It's kinda funny tho
MERCY_ALL 26 Jul @ 3:19pm 
I've been lookin' for something like this.

Nice.
aombi 16 Jul @ 1:13pm 
brain damage is a bitch
aombi 16 Jul @ 1:13pm 
we need ceilings next
sp4rt4nx666 30 Jun @ 4:58pm 
now a certain someone can stop abusing that attack on titan gear
AgentAle47 17 May @ 11:48pm 
If an NPC is thrown to a wall, will this addon cause damage to the NPC?
Rogyface 8 May @ 8:15pm 
make it break glass and hurt npcs :)
the IRS [the ham mafia] 17 Apr @ 11:24pm 
how are your B A L L S
dn32 11 Apr @ 10:06am 
What is the default setting for the required velocity to take damage?
REKTMASTER17 20 Mar @ 6:02pm 
Turning it off does nothing. I still get pancaked