CustomFlashlight 0.11 by Avalanche
Last updated 08/25/05 - only
tested in Counter-Strike, but it
may work in other mods that use a regular flashlight (ie: Half-Life, Sven Co-op)
About
CustomFlashlight is a server-side modification that allows you to customize the flashlight in Counter-Strike to your specifications by basically recoding the flashlight. Currently it affects everyone in the server but if anyone suggests a great method of managing user-specific flashlights go ahead and post it here.
Commands
None - plugin is controlled by cvars
CVars
flashlight_custom (default 1) - whether to use custom flashlights or not
flashlight_r (default 100) - red value for flashlight color
flashlight_g (default 100) - green value for flashlight color
flashlight_b (default 100) - blue value for flashlight color
flashlight_drain (default 1.0) - rate at which flashlight battery drains
flashlight_charge (default 0.5) - rate at which flashlight battery recharges
flashlight_radius (default 9) - radius of the light from the flashlight
flashlight_decay (default 60) - rate at which light "decays" (has to do with the edges of the light, just screw around with it)
Required Modules
Engine
Known Bugs
None
Troubleshooting
If it doesn't work, make sure all modules are enabled and that flashlight_custom is 1.
Screenshots
Regular flashlight
Default custom flashlight (almost exactly like the regular flashlight)
Crazy green flashlight
Large light blue flashlight
Concentrated red flashlight
Credits
obbin - for suggesting something like it
Twilight Suzuka - for suggesting a viable method