Garry's Mod

Garry's Mod

621 ratings
RagKnockdown
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
File Size
Posted
Updated
53.884 KB
8 Feb, 2024 @ 9:12pm
24 Aug @ 5:39am
16 Change Notes ( view )

Subscribe to download
RagKnockdown

Description
Ragknockdown
Yeah this is a project I made a few months ago and now I'm going to post it because I'm at the end of my rope and I'm going to get the Mega Uploader
(It’s a pity that there is no backflip to get up, otherwise MPN Like)
[WOS animation pack is required. If you still have problems after subscribing, you have two options: restart the game or subscribe to the WOS official animation pack collection and restart the game]

Introduction
When enough damage is done/damage is strong enough, you/NPC will be knocked down, and then other players will try to execute (if they want to)
When you are knocked down, you will not be able to get up if there is something on you (including NPCs, be careful of Pardo stepping on your head)
Low health will cause the speed of getting up to slow down.
[Players can be forced to stand up after being knocked down for a period of time, which is anti-bug] (not verified)
*Those Combine soldiers are very smart...so please crush every corpse with a complete head...especially the one you just killed a few seconds ago*

Credits
Me - This ____
WoS&Valve - Animations

Bugs
Sometimes NPCs die when getting up
Sometimes the ragdoll physics can go wrong
[Only for me] There is a small chance that the game will crash for unknown reasons. I don’t know if it is caused by this thing (I am a Potato PC user)
(You can understand this Addon's situation this way: blindly wiring an abandoned but usable device to perform useless enhancements)
This Addon does not do detailed collision detection, so NPCs will not stand up when encountering tricky situations (the same applies to ventilation pipes, including players)

Developer Matters
(These are not bugs, but they are still worth mentioning: This Addon overrides util's TraceLine, TraceHull, TraceEntity and QuickTrace)

About configuration
You need to read Chinese (and my expression), and understand Lua Table
Unpack this plug-in and go to the ragknockdown_knockdown file
allowdropweapon determines which NPC is allowed to drop weapons with what probability
in sent_ragknockdown_knockdown:
SkillTab determines the number of stand-up animations that the NPC can use.

Some system introduction
Because this Addon uses a player model, the skeleton must match the player model (and it must have a pelvis, you don’t want to see the zombie torso standing up)
Suspended death needs to cause enough damage (usually near fatal injury), at which point a kill message should pop up in your upper right corner. At this time, the NPC will either wait for their enemies to move away, or wait for allies to approach (depending on Convar, the enemy NPC may choose to attack them)
If you want to make some campaign saves, it initially supports dupe and also has other options in the tool [savee stuffs->NPC Knockdown]

Convars

savee_knockdown_enable - Enable Addon
savee_knockdown_enableply - Can knockdown the player
savee_knockdown_enablenpc - Can NPC be knocked down?
savee_knockdown_enablenextbot - Can Nextbots be knocked down?

savee_knockdown_realismfalldmg - Allow NPC to fall to death from the 5th floor(maybe 1st floor too)
savee_knockdown_realismfalldmg_physicsdmgmul - The damage multiplier for realism knockdown damage


savee_knockdown_minknockdowndmg - Minimum damage to cause knockdown
savee_knockdown_minknockdownhpmul_enable - Whether to allow knockdown by checking the ratio of knockdown damage to maximum HP (suitable for low-health NPCs such as citizens)
savee_knockdown_minknockdownhpmul - How much damage accounts for the maximum HP when knocked down

savee_knockdown_dynamictime - Enable knock down dynamic time (not necessarily). If enabled, the knock down time will be determined based on the size of the damage

savee_knackdown_dynamictimebypreset - Calculate the knock down time (rather than damage) based on the percentage of health

savee_knockdown_dynamictimemax - Maximum Knockdown Time

savee_knockdown_dynamictimemin - Minimum Knockdown Time

savee_knockdown_dynamictimemaxdmg - Maximum damage/percentage(35=35%) required for knock down time

savee_knockdown_dynamictimemindmg - Damage/percentage required for minimum knock down time



Save_knockdown_realismfalldmg_physicsdmgmul - The damage multiplier for real knockdown damage

savee_knockdown_knockdownforce - Knock down when the force of the damage reaches this value

savee_knockdown_pknockdowndropweaponrate - Chance of player dropping weapon when knocked down

savee_knockdown_npcknockdowndropweapon - Whether to allow NPCs to drop weapons after being knocked down

savee_knockdown_npcknockdowndropweaponfree - Allows any NPC to drop weapons after being knocked down

savee_knockdown_npcknockdowndropweaponedefchance - Default weapon drop probability after knocking down NPC [npc_citizen weapon drop probability is high, if you want, you can unpack Addon and change it]
savee_knockdown_npcknockdowndropweaponratemul - Overall NPC weapon drop chance multiplier

savee_knockdown_velfastproceed - Fast processing speed (speed may be more stable if turned off but with lag)

savee_knockdown_maxknockdownhp - Target won't be knockdowned if its health above this value
savee_knockdown_knockdownvelocity_enabled - As it said
savee_knockdown_knockdownvelocity_enabledply - As it said
savee_knockdown_knockdownvelocity_enablednpc - As it said
savee_knockdown_knockdownvelocity_enablednextbot - As it said
savee_knockdown_knockdownvelocity - (Air only)Knockdown stuffs when it's faster than this speed(If they can be knockdowned)
savee_knockdown_knockdownvelocity_ground - (Ground only)Knockdown stuffs when it's faster than this speed(If they can be)
savee_knockdown_knockdownvelocity_invehicle - Knockdown players if they get out of vehicle higher than this speed
savee_knockdown_knockdown_invehicle - Allow knockdowning players in vehicle
savee_knockdown_maxtime - Maximum knockdown time

[The suspended animation system is only effective for NPCs]
savee_knockdown_fakedie_enable - whether NPC can fake death
savee_knockdown_fakediemul - Trigger suspended animation (0-1) after the maximum health value of the damage ratio is greater than this value
savee_knockdown_fakediehpmul - triggers suspended animation after the health value is less than this value
savee_knockdown_fakedieminalliestogetup - The minimum number of teammates required to get up when feigning death (when engaging an enemy)
savee_knockdown_fakedienotarget - NPC does not attack when feigning death

savee_knockdown_knockdowndmgtypemult_dmg_* - (Remove * to see dmgtype list)(not affect real damage) If the damage type of the damage is DMG_BULLET, then the damage used for detection will be multiplied by this value. The actual damage is 10, but the multiplier is 2, then the damage used for detection is 20, which can be used for more demanding detection methods)
savee_knockdown_knockdowndmgtypemult_time_* - the same to above but change damage to time(i.e. bullet damage,time multiplier is 2,then the victim will get knockdowned for 2 sec instead of 1)

savee_knockdown_knockdown_tps - Third person on knockdown(client option)

+knockdown/-knockdown - Knockdown yourself(and emit a death message if should)


(What are you waiting for? Go and stomp on the enemy’s head as Pardo. You can be famous on the headlines in Miami for 15 minutes.)
(Why does Google Translate translate Addon as plug-in)

Popular Discussions View All (12)
41
13 Sep @ 10:31am
PINNED: Bugs&Suggestions&Sth about development
Savee14702
1
27 Sep @ 1:36pm
how do i disable this for players only
senpaiandyy
6
11 Sep @ 11:03pm
One bullet?!
Overwatch
224 Comments
Gake 16 Oct @ 4:31pm 
[BUG] Immortal NPCs. They always get back up, WTF
Zentara:ULTRA 16 Oct @ 3:59pm 
guy below me is a likebegger
I gave it a thumbs up. I'd appreciate it if you did the same. By giving it a thumbs up, you're helping other players achieve one of the most difficult achievements in GMOD right now.
It's a link to my prop: https://steamproxy.net/sharedfiles/filedetails/?id=3577220906
Slab Bulkhead 26 Sep @ 9:11am 
is there a way to disable the velocety based knockdown for the fast zombie ,just for it
senpaiandyy 16 Sep @ 5:00pm 
how do i disable this for players only?
soggy cereal 11 Sep @ 4:04pm 
i think you guys need to increase the savee_knockdown_minknockdownhpmul so that it doesnt knock them down with just one bullet
FEETLover9000 7 Sep @ 8:32am 
One bullet knocks everyone down, none of the commands are changing or stopping that, and it glitches the camera tf out. 100000/10 mod
Pipe Bomb 5 Sep @ 2:26am 
fixed the issue, enable the keep corpse. You should put it in the description in bold
Pipe Bomb 5 Sep @ 2:21am 
Yo, the bodies disappear if they die in their ragdoll state. But it could be me using another ragdoll mod and 64bit gmod.
Average_Brody 22 Aug @ 12:58pm 
Might I suggest a toggle to ragdoll players upon taking fall damage regardless of the damage threshold?