Garry's Mod

Garry's Mod

1,164 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.
153 Comments
Lobster 4 Jul @ 8:15pm 
make it serverside pls!!!!
hörjenger. 25 May @ 2:26pm 
HDD was eaten by arc9 users
GroveZ  [author] 10 May @ 7:12am 
It was my own testing map. I lost it forever including map sources when my HDD died one year ago
potato 10 May @ 6:37am 
what was the map
Tr0urodn1_Papa 23 Dec, 2024 @ 3:46am 
this addon is very nice but after i prone screen stop shaking :steamsad:
Lettuce9018 30 Oct, 2024 @ 1:06pm 
be warned, this automatically turns on motion blur each time you load into the game
Mr. Gold 20 Jul, 2024 @ 5:50pm 
he doesn't make addons anymore
Ayeefan the guy 6 May, 2024 @ 1:34pm 
make this for mwb
sigma boy aura edit 9 Mar, 2024 @ 7:26am 
Combine this with the tfa MP5K swep and you extreme recoil.
RatOrder 28 Jan, 2024 @ 3:43pm 
You should make this for all weapons.