Garry's Mod

Garry's Mod

577 ratings
Call of Duty Shellshock
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Movie, Scenic, Realism
File Size
Posted
Updated
985.295 KB
18 May, 2023 @ 10:57am
12 Aug, 2023 @ 12:43pm
11 Change Notes ( view )

Subscribe to download
Call of Duty Shellshock

Description
Adds the shell shock from Call of Duty games. It is triggered by receiving blast damage and it lasts 5 seconds.
It is set to false on respawn.

This uses Player:SetLaggedMovementValue() internally, so viewpunch and gravity will be slower!
As of 2023-05-21 11:09 EEST, it is now using CMoveData:SetMaxClientSpeed()

Convars:
shellshock_enabled [SV] - Enables shellshocking, 1 by default shellshock_speedmp [SV] - Speed while shellshocked gets multiplied by this value, 0.25 by default shellshock_duration [SV] - How long shellshock lasts after an explosion, set to 0 to disable, 5 by default shellshock_soundpreference [CL] - 1 for the Call of Duty 2 shellshock end sound, 2 for the Modern Warfare 2 shellshock end sound shellshock_soundvolume [CL] - 0 to mute the sounds, 1 for full volume. Value is a fraction, so it can have decimals

For developers:
ply:SetShellShocked( boolean status ) - Sets the player's shellshock status ply:GetShellShocked() - Returns the player's shellshock status Shared HOOK "PlayerShellShocked" arguments ( Player ply, boolean status ) - runs when any player had their shellshock status changed Server HOOK "GetShellShockDuration" arguments ( Player ply, CTakeDamageInfo dmg, boolean took ) - return a number to determine duration of shellshock

Feel free to steal the source code
148 Comments
lambups  [author] 3 Aug @ 6:53pm 
thank you!
Lord Squazzer 3 Aug @ 5:42pm 
well its still a good mod nonetheless
lambups  [author] 3 Aug @ 5:16pm 
i was making this more accurate to cod, so i made the effect only be applied from explosions
Lord Squazzer 3 Aug @ 4:01pm 
what about when being shot at?
valde.andersson14 29 Jul @ 3:03am 
put this and BM animations and you have a deal
Gringo 21 Jul @ 3:48am 
Get up Private Allen! Rangers lead the way! MOVE!
14 May @ 4:13pm 
OR DOES IT? DOES IT?
hzd 15 Mar @ 12:40am 
WAR NEVER CHANGES
Turtrog 20 Feb @ 7:55am 
W mod i love shellshock
lambups  [author] 4 Feb @ 10:42am 
this effect is different from the one when you are low on health
this variant plays exclusively in campaigns/spec ops missions situations where you are near a large explosion blast in actual cod games