View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-30-2013 , 00:00   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #18

Can't remember, it's something like this.

To start you off, add into adminmenu_custom.txt:

Code:
		"Flashlight"
		{
			"Client Light"
			{
				"cmd"			"sm_lightclient #1"
				"execute"		"player"
				"1"
				{
					"type"		"player"
					"method"	"name"
					"title"		"Light Toggle:"
				}
			}
			"Red"
			{
				"cmd"			"sm_light red"
			}
			"Green"
			{
				"cmd"			"sm_light green"
			}
			"Blue"
			{
				"cmd"			"sm_light blue"
			}
			"Orange"
			{
				"cmd"			"sm_light orange"
			}
			"Purple"
			{
				"cmd"			"sm_light purple"
			}
			"White"
			{
				"cmd"			"sm_light white"
			}
		}
	}

Fading colors would be possible and was planned but I never got to do it and no longer play L4D2/have time.
__________________
Silvers is offline