Garry's Mod

Garry's Mod

239 ratings
CFShadow
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
14.643 KB
18 Dec, 2024 @ 12:50pm
20 Feb @ 1:58pm
6 Change Notes ( view )

Subscribe to download
CFShadow

Description
WARNING
maps without a shadow_control entity might cause your shadow to flicker



automatic firstperson shadows, as good as whatever an official implementation would look like

vastly superior to cl_drawownshadow which suffers from quality issues [github.com] and doesn't support weapons



Features that are cool
  • Shadows for weapons, not just the player
  • Shadow is offset according to CLegs if it is present
  • Extremely untested offset support for some weapon bases



Convars
Name
Purpose
cl_firstperson_shadow
0/1 - Enables firstperson shadow rendering.
cl_firstperson_shadow_yaw
0/1 - Whether aim_yaw pose parameter should be applied or not. Disabled by default as it looks a bit weird.



Incompatible with:



Github: https://github.com/chiraqoRP/CFShadow



realism firstperson shadow first person shadows cl_drawownshadow
48 Comments
Ripper 18 Jun @ 5:28pm 
FYI, when using NVG base with the Splinter Cell addon, your playermodel appears in first person and completely obstructs your vision until you restart the world. I narrowed it down to this mod. The problem even occurs when entering certain LVS vehicles and leaving.
Yorch 5 Apr @ 3:06am 
it happened after the arc9 update
afxnatic  [author] 4 Apr @ 7:56pm 
cool to see it working when i never even tested the offset code LOL
Yorch 2 Apr @ 12:11pm 
also, i think arc9 weapons works now with the shadow! https://imgur.com/nwYPACn
Yorch 21 Feb @ 1:58am 
yay :steamhappy:
afxnatic  [author] 20 Feb @ 1:59pm 
i added the model calls back, might be worse for perf but im too lazy to test with vprof
Yorch 18 Feb @ 10:46am 
what happened to player shadow? it worked fine :c
Aicey 17 Feb @ 10:01pm 
can you bring it back somehow?
that shadow casting on the walls made the character shadow immersive when it was reacting to the light
afxnatic  [author] 17 Feb @ 1:41pm 
i got rid of the ENT:DrawModel calls which did nothing except make that work
Aicey 16 Feb @ 10:18am 
this mod used to show my shadow on the walls when a light was shining behind my back but it's not doing that anymore. any ideas?