Garry's Mod

Garry's Mod

1,042 ratings
[TFA] Screen Shake
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Realism
File Size
Posted
Updated
5.664 KB
23 Jun, 2022 @ 1:04am
20 Jul, 2023 @ 12:29pm
11 Change Notes ( view )

Subscribe to download
[TFA] Screen Shake

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.
148 Comments
Lettuce9018 30 Oct @ 1:06pm 
be warned, this automatically turns on motion blur each time you load into the game
Mr. Gold 20 Jul @ 5:50pm 
he doesn't make addons anymore
Ayeefan the guy 6 May @ 1:34pm 
make this for mwb
VeryCreativeNamelol 9 Mar @ 7:26am 
Combine this with the tfa MP5K swep and you extreme recoil.
RatOrder 28 Jan @ 3:43pm 
You should make this for all weapons.
ProGaming122 16 Dec, 2023 @ 8:25am 
what is the playermodel name?
z6234eta 14 Dec, 2023 @ 6:25pm 
should i use this or the uni one
soldier jordan 14 Dec, 2023 @ 9:03am 
recoil settings would be nice
Coolvetica 23 Nov, 2023 @ 5:26pm 
Weapon addon name?
:| 5 Nov, 2023 @ 3:03pm 
Map?
pls tell me