Raised This Month: $252 Target: $400
 63% 

[L4D & L4D2] Flashlight (2.6.1) [18-Jun-2018]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 05-20-2012 , 06:41   Re: [L4D & L4D2] Flashlight (2.2) [20-May-2012]
Reply With Quote #11

Thanks:

2.5 (25-May-2012)
- Added more checks to events, preventing errors being logged.

2.4 (22-May-2012)
- Fixed cvar "l4d_flashlight_spec" enums mistake, thanks to "Dont Fear The Reaper".
- Fixed errors being logged on player spawn event when clients were not in game.

2.3 (22-May-2012)
- Changed cvar "l4d_flashlight_spec". The cvar is now a bit flag, add the numbers together.
- Fixed cvar "l4d_flashlight_spec" blocking alive survivors from using the flashlight.

2.2 (20-May-2012)
- Changed cvar "l4d_flashlight_spec". You can now specify which teams can use spectator lights.
- Added German translations - Thanks to "Dont Fear The Reaper".

How fun.
__________________

Last edited by Silvers; 05-25-2012 at 07:10.
Silvers is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 10-09-2012 , 14:30   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #12

Cool plugin!

Your Command_ForceFlashLight is scary if they pass a bogus/undefined colour, garbage is passed to the following SetVariantString. You may want to add a default colour, or throw an error back to the client instead. You also set FCVAR_NOTIFY on all your convars, but that's just a thing.

Looks good otherwise (I think)! Nice job :p
KyleS is offline
supersoul
New Member
Join Date: Nov 2012
Old 11-01-2012 , 03:38   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #13

Cool plugin!


setup menu and it can choose ...

example:
↓↓↓

[Color menu]
1.Red
2.Green
3.Blue
4.Purple
5.Orange
6.Yellow
7.White
0.Cancel

Last edited by supersoul; 11-07-2012 at 00:55.
supersoul is offline
Deathrow Bo Dean
Senior Member
Join Date: Sep 2010
Old 03-06-2013 , 17:09   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #14

VERY NICE PLUGIN..

I installed if last night on a L4d2 server and it works just fine. the only problem i seem to have is tnat if I give lets say I give Nick (as a bot) the green color or another color, when a real player joins the clor goes away. I guess this is because the new player has a is own player name. My question is: Do I have to re-assing the lichtclient to its new name?.
This plugin really needs to be added to the Admin Menu Player Options with a select player light color option.
Deathrow Bo Dean is offline
Striker black
Junior Member
Join Date: Apr 2013
Old 04-15-2013 , 19:40   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #15

Hi I want to apologize if my English is not very good, I am new and need help please because I want this light sets to use for garena or l4d version 1.0.1.4. who is the most prodigious of all, would greatly appreciate it thanks
Striker black is offline
disawar1
Senior Member
Join Date: Aug 2011
Location: Russian
Old 04-15-2013 , 22:26   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #16

Quote:
Originally Posted by Striker black View Post
Hi I want to apologize if my English is not very good, I am new and need help please because I want this light sets to use for garena or l4d version 1.0.1.4. who is the most prodigious of all, would greatly appreciate it thanks
NO-STEAM - NO SUPPORT!
__________________
My plugins on: Sourcemod, GitHub, Bitbucket, Google
Inactive since 2015
disawar1 is offline
eyub
Junior Member
Join Date: Mar 2013
Old 04-21-2013 , 14:32   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #17

Is it possible to create a setting where the light slowly fades between one color and the next?

Say.... a green light slowly changes to a blue light etc.
eyub is offline
Silvers
AlliedModders Donor
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
tornasuk
Junior Member
Join Date: Nov 2013
Location: a van down by the river!
Old 03-26-2014 , 20:23   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #19

Hi there, sorry, but I'm a little bit confused... is this the plugin that allows any player to use the "!light colour" command?


EDIT: Thanks Munch! (just that, will try it later and IF I found something to add, will come back and post)

Last edited by tornasuk; 03-27-2014 at 08:53. Reason: Thanks
tornasuk is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 03-26-2014 , 22:05   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #20

yep
__________________
Munch is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:31.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode