Raised This Month: $51 Target: $400
 12% 

[L4D & L4D2] Flashlight (2.32) [21-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-31-2021 , 15:27   Re: [L4D & L4D2] Flashlight (2.16) [31-Jul-2021]
Reply With Quote #111

Code:
2.16 (31-Jul-2021)
    - Added cvar "l4d_flashlight_default" to turn on the flashlight by default when spawning.
    - Added cvar "l4d_flashlight_random" to give random colors when spawning.
__________________
Silvers is offline
ddd123
Senior Member
Join Date: May 2021
Old 07-31-2021 , 18:25   Re: [L4D & L4D2] Flashlight (2.16) [31-Jul-2021]
Reply With Quote #112

l4d_flashlight_default "5"
and
l4d_flashlight_random "0"
Does not work on bots flashlight (Only player has light)

Although setting l4d_flashlight_random "1" or "2" does work and i can see the light from bots buddy

P.S. My flashlight colour is "l4d_flashlight_colour "255 255 255""

Last edited by ddd123; 07-31-2021 at 18:27.
ddd123 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-01-2021 , 04:59   Re: [L4D & L4D2] Flashlight (2.16) [31-Jul-2021]
Reply With Quote #113

Quote:
Originally Posted by ddd123 View Post
l4d_flashlight_default "5"
and
l4d_flashlight_random "0"
Does not work on bots flashlight (Only player has light)

Although setting l4d_flashlight_random "1" or "2" does work and i can see the light from bots buddy

P.S. My flashlight colour is "l4d_flashlight_colour "255 255 255""
This was intended, but I guess I could make bots use the color cvar if not using random colors.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-04-2021 , 08:05   Re: [L4D & L4D2] Flashlight (2.17) [04-Aug-2021]
Reply With Quote #114

Done.

Code:
2.17 (04-Aug-2021)
    - Changed the plugin to allow bots to use the color cvar when _default cvar is enabled _random cvar was disabled.
__________________
Silvers is offline
thewintersoldier97
Senior Member
Join Date: Aug 2021
Location: Vietnam
Old 10-13-2021 , 06:39   Re: [L4D & L4D2] Flashlight (2.18) [18-Sep-2021]
Reply With Quote #115

One of, if not the best plugin for the game. My buddies and I loved this. Thanks Silvers!

Last edited by thewintersoldier97; 10-13-2021 at 06:39.
thewintersoldier97 is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 12-07-2021 , 23:55   Re: [L4D & L4D2] Flashlight (2.18) [18-Sep-2021]
Reply With Quote #116

i like this, but peoples arent like choice, can you add !light random command to that?
__________________
NoroHime is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-09-2021 , 09:19   Re: [L4D & L4D2] Flashlight (2.19) [09-Decc-2021]
Reply With Quote #117

Code:
2.19 (09-Dec-2021)
    - Changes to fix warnings when compiling on SourceMod 1.11.
    - Changed command "sm_light" to accept "rand" or "random" as a parameter option to give a random light color. Requested by "NoroHime".
    - Code change includes completely random color instead of specified from the list. Uncomment and delete other code if you want this instead.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-25-2021 , 11:19   Re: [L4D & L4D2] Flashlight (2.20) [25-Dec-2021]
Reply With Quote #118

Code:
2.20 (25-Dec-2021)
    - Fixed command "sm_light <color>" not changing the color. Thanks to "Shadowart" for reporting.
    - Fixed cvar "l4d_flashlight_default" not restricting bots when set to "1". Thanks to "Shadowart" for reporting.
__________________
Silvers is offline
kalmas77
Junior Member
Join Date: Sep 2021
Old 12-26-2021 , 23:03   Re: [L4D & L4D2] Flashlight (2.20) [25-Dec-2021]
Reply With Quote #119

"Give random colors on spawn? 0=Use color cvar.
l4d_flashlight_random "0" "

This doesn't work only with random colors. (v2.20)
Attached Files
File Type: cfg l4d_flashlight.cfg (2.5 KB, 51 views)

Last edited by kalmas77; 12-26-2021 at 23:04.
kalmas77 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-27-2021 , 05:22   Re: [L4D & L4D2] Flashlight (2.20) [25-Dec-2021]
Reply With Quote #120

You could try recompiling the plugin and reporting if this fixes it.

Find: "} else if( fake ) {" and replace with "} else {"

Looks like this might be the issue.

Thanks.


Edit: seems fixed:
Code:
2.21 (01-Jan-2022)
    - Fixed not setting the default color when "l4d_flashlight_default" is "1" and "l4d_flashlight_random" is "0". Thanks to "kalmas77" for reporting.
__________________

Last edited by Silvers; 01-01-2022 at 04:43.
Silvers is offline
Reply



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 15:02.


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