View Single Post
Author Message
1xAero
Member
Join Date: Feb 2018
Location: Sakha, Russia
Old 07-22-2023 , 19:19   Color modulation with light_environment/skybox
Reply With Quote #1



Actually this is might be useful for someone. You can modulate players color, weapon, viewmodel.
But, one thing you need to know, the model should be with specific flag to make this work even in dark areas, where light is not exists. Without model editing, this will only work where the skybox illuminates the surface of the map.
So, you can decompile model and add into .qc file line with:

$flags 1024

Example of .qc file after editing:

Spoiler


This flag forces lights the model directly from light_environment, no matter where it is in the map.
Also this flag makes model always with maximum light level (lambert).

Spoiler
1xAero is offline