Garry's Mod

Garry's Mod

584 个评价
Call of Duty Shellshock
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 影视, 风景, 写实
文件大小
发表于
更新日期
985.295 KB
2023 年 5 月 18 日 上午 10:57
2023 年 8 月 12 日 下午 12:43
11 项改动说明 ( 查看 )

订阅以下载
Call of Duty Shellshock

描述
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
150 条留言
lambups  [作者] 10 月 3 日 下午 11:38 
i do not remember what could be causing this
Darklok 10 月 3 日 下午 10:23 
fade is not going away. if ı die or not
lambups  [作者] 8 月 3 日 下午 6:53 
thank you!
Lord Squazzer 8 月 3 日 下午 5:42 
well its still a good mod nonetheless
lambups  [作者] 8 月 3 日 下午 5:16 
i was making this more accurate to cod, so i made the effect only be applied from explosions
Lord Squazzer 8 月 3 日 下午 4:01 
what about when being shot at?
valde.andersson14 7 月 29 日 上午 3:03 
put this and BM animations and you have a deal
Gringo 7 月 21 日 上午 3:48 
Get up Private Allen! Rangers lead the way! MOVE!
5 月 14 日 下午 4:13 
OR DOES IT? DOES IT?
hzd 3 月 15 日 上午 12:40 
WAR NEVER CHANGES