Garry's Mod

Garry's Mod

1,207 个评价
[TFA] Screen Shake
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 写实
文件大小
发表于
更新日期
5.664 KB
2022 年 6 月 23 日 上午 1:04
2023 年 7 月 20 日 下午 12:29
11 项改动说明 ( 查看 )

订阅以下载
[TFA] Screen Shake

描述
TFA Screen Shake
Optional screen shake for use with TFA Base.
It was originally conceived as TFA Base-only screen shake because TFA Base don't have any. If you need a universal screen shake, use this one instead.

ConVars:
  • cl_tfa_screenshake_enabled (1 by default) - Toggle screen shake
  • cl_tfa_screenshake_blur_enabled (1 by default) - Toggle blur
  • cl_tfa_screenshake_strength_multiplier (1 by default) - Screen shake strength multiplier
  • cl_tfa_screenshake_fov_strength_multiplier (1 by default) - Screen shake FOV strength multiplier
  • cl_tfa_screenshake_speed_multiplier (1 by default) - Screen shake speed multiplier

For devs:
You can customize the screen shake on a per-weapon basis using:
  • SWEP.ScreenShakeStrengthMultiplier - Screen shake strength multiplier
  • SWEP.ScreenShakeFOVMultiplier - Screen shake FOV multiplier
  • SWEP.ScreenShakeSpeedMultiplier - Screen shake speed multiplier

GitHub repository[github.com]



NOTE: I used CalcView and GetMotionBlurValues hooks, keep in mind that they're incompatible with similar hooks in other mods. Blame me, gmod, ur addons and my sh#tcode. Also, I haven't tested this sh#t in multiplayer and never will.

UPD 21.07.2023: AyyKyu have fixed my sh#tсode instead of me, now it shouldn't break because of viewbobs and such.
156 条留言
Darklok 10 月 4 日 上午 3:45 
Perfect my man perfect. its not compatible with Prone mod. [[TFA] Screen Shake] lua/autorun/sh_tfa_screenshake.lua:92: attempt to perform arithmetic on field 'fov' (a nil value)
1. v - lua/autorun/sh_tfa_screenshake.lua:92
2. unknown - lua/includes/modules/hook.lua:102

You dont need to be hurry but whenever you available and want to fix anytjing. can you do this realizm mod compatible with prone mod?
Farrapo esfarrapado 8 月 28 日 下午 8:14 
good
3V3RN1GHT 8 月 21 日 下午 11:01 
mwb version plzzz
Lobster 7 月 4 日 下午 8:15 
make it serverside pls!!!!
hörjenger. 5 月 25 日 下午 2:26 
HDD was eaten by arc9 users
GroveZ  [作者] 5 月 10 日 上午 7:12 
It was my own testing map. I lost it forever including map sources when my HDD died one year ago
potato 5 月 10 日 上午 6:37 
what was the map
Tr0urodn1_Papa 2024 年 12 月 23 日 上午 3:46 
this addon is very nice but after i prone screen stop shaking :steamsad:
Lettuce9018 2024 年 10 月 30 日 下午 1:06 
be warned, this automatically turns on motion blur each time you load into the game
Mr. Gold 2024 年 7 月 20 日 下午 5:50 
he doesn't make addons anymore