Garry's Mod

Garry's Mod

Not enough ratings
Alternate Shading for Retail Grenades
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
403.000 B
6 Oct @ 3:39pm
1 Change Note ( view )

Subscribe to download
Alternate Shading for Retail Grenades

Description
Ported from HL2!

Thrown grenades in HL2 have a selfillum applied that gives it a fullbright-like appearance. It's seemingly a leftover from another iteration that may or may not have been intended to stay with the design we currently have, but made it anyways.

In GMod, they fixed this by simply commenting out the $selfillum lines; it works, but it looks dull in comparison to the item texture since the latter includes envmap shading.

This replaces the worldmodel and thrown shading with the item shading.
2 Comments
Stupid Butt  [author] 11 Oct @ 12:52am 
i think i get where you're coming from with that

i do wanna state the item texture does have an alpha channel; it's a full sheet one that's barely noticable, but it covers the entire texture which is what i think causes the fullbright effect
in my experience, textures with $selfillum and no alpha channel don't glow at all [using half-life 2: survivor's gordon freeman sheet as an example] but i very easily could be wrong about this

regardless, i'll change the name and description to give a better impression
Gunslinger ☢ 11 Oct @ 12:24am 
Technically no, the grenade with the light was seen in E3 2004 footage and was cut last minute but still present in the Xbox version apparently, i think its likely a mistake or a very specific optimization for its lack of inclusion.

The restored texture is from the leaked repo, and the vmt was pointing to the item version of the texture that lacks a alpha channel which is why its fullbright normally instead of the worldmodel texture with a proper texture and alpha.