[TFA] Screen Shake

If you liked this item, please rate it up on Steam Workshop page.

Author: GroveZ

Last revision: 20 Jul, 2023 at 20:29 UTC

File size: 5.12 KB

On Steam Workshop

Description:
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.

Download
Required items:

Click the title to search on this site.


TFA BaseSteam Workshop