Garry's Mod

Garry's Mod

586 ratings
RagKnockdown
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
File Size
Posted
Updated
40.947 KB
8 Feb, 2024 @ 9:12pm
28 Apr, 2024 @ 6:42am
12 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_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)


[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 (9)
38
12 Apr @ 9:37pm
PINNED: Bugs&Suggestions&Sth about development
Savee14702
2
23 May @ 3:21pm
How to revert changes in mod
Alex
4
23 May @ 2:55pm
One bullet?!
Overwatch
210 Comments
希儿 1 Jun @ 11:49pm 
能不能兼容一下gorebox npc grab physics
Wahfulls11 28 May @ 11:54am 
Vj npcs that melee kind of like the combine, will beat the crap out of you when playing dead and cause you to roll over and flip out
Overwatch 23 May @ 3:22pm 
What are the default convars for the addon or how can i reset?
zenel.kodra 20 May @ 9:08am 
fix it for vj base
Aster 6 May @ 10:53am 
for some reason,ragdolls to clip through the floor after knocking them down or killing them, but this only applies towards VJ npcs
Overwatch 25 Mar @ 10:21am 
NPCs only fall to the ground with a simple pistol gun, and Npc wars are very boring for some reason because when it comes to 1 bullet NPC, the NPC falls and does not stand up
星野想睡觉 8 Mar @ 10:42pm 
Doesn't work for players
Critas 3 Mar @ 6:06am 
the commands don't work when typed into console
PurpleSnips 21 Feb @ 10:43pm 
how i can edit the chance of npc knockdown? i don't want them knockdown every time
edizattila1234 12 Feb @ 8:57am 
Why fatal shots cant kill the npcs with 1 shot?