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 12-03-2023 , 07:15   Re: [L4D & L4D2] Flashlight (2.28) [01-Oct-2023]
Reply With Quote #141

Quote:
Originally Posted by Slaven555 View Post
Hello Silvers. I'm not sure if this is a bug or not, but there's an FPS drop when using a flashlight on the Yama map - the last chapter. On the rooftop with the generator, if one player approaches, everything is fine. However, when another player approaches, the FPS immediately drops to 30 or lower. Turning off the flashlight completely restores the FPS. The bug occurs when restarting the chapter and transitioning from the previous chapter. If the last chapter is started immediately, the bug is not observed.
Seems like a bug with the map, not with the plugin.

Quote:
Originally Posted by JustMadMan View Post
Hello,Silvers.Your plugins is awesome,but I want to understand.How to make a rainbow color of a flashlight so that it changes at a certain amount of time
There is nothing like that in the plugin. I saw somewhere something similar, can't remember if that was client console commands or a modification to this plugin. It's not something I have time to add.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-19-2023 , 23:55   Re: [L4D & L4D2] Flashlight (2.29) [20-Dec-2023]
Reply With Quote #142

Code:
2.29 (20-Dec-2023)
    - Added cvar "l4d_flashlight_rainbow" to allow or disallow rainbow changing colors.
    - Added cvar "l4d_flashlight_rainbows" to set the rainbow color speed.
    - Added command "sm_lightbow" to enable/disable the rainbow color.
    - Requested by "JustMadMan". Thanks to "King_OxO" for the code this was based on.
__________________
Silvers is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 12-20-2023 , 09:21   Re: [L4D & L4D2] Flashlight (2.29) [20-Dec-2023]
Reply With Quote #143

Hi Silvers,
!sm_lightbow, works great.
But it does not save the configuration for the client either when changing maps or when returning to the game.
Is there any to save this config?

I already have this configuration:
// Default: "1"
l4d_flashlight_save "1"
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 12-20-2023 at 09:38.
Mi.Cura is offline
S.A.S
Member
Join Date: Jul 2023
Old 12-20-2023 , 15:31   Re: [L4D & L4D2] Flashlight (2.29) [20-Dec-2023]
Reply With Quote #144

Can you add a сvar to make l4d_flashlight_rainbow only available to admin?

Last edited by S.A.S; 12-20-2023 at 15:31.
S.A.S is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 12-20-2023 , 20:26   Re: [L4D & L4D2] Flashlight (2.29) [20-Dec-2023]
Reply With Quote #145

Quote:
Originally Posted by S.A.S View Post
Can you add a сvar to make l4d_flashlight_rainbow only available to admin?
Yes, you can add it to your admin_overrides.cfg file in the sourcemod/configs folder.

Code:
Overrides
{
            "sm_lightbow"  "your flag"
}
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 12-20-2023 at 20:26.
Mi.Cura is offline
JustMadMan
Member
Join Date: Feb 2023
Old 12-21-2023 , 01:40   Re: [L4D & L4D2] Flashlight (2.29) [20-Dec-2023]
Reply With Quote #146

Quote:
Originally Posted by Mi.Cura View Post
Hi Silvers,
!sm_lightbow, works great.
But it does not save the configuration for the client either when changing maps or when returning to the game.
Is there any to save this config?

I already have this configuration:
// Default: "1"
l4d_flashlight_save "1"
there the player_spawn event simply gives him a random flashlight color, I already told him about this during testing
JustMadMan is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 12-21-2023 , 11:23   Re: [L4D & L4D2] Flashlight (2.29) [20-Dec-2023]
Reply With Quote #147

I don't understand why this happens, as I have this in the config.

Code:
// Give random colors on spawn? 0=Use color cvar. 1=Give Survivor bots random colors if enabled by the _default cvar. 2=Give real players random colors (unless save enabled). 3=Both.
// -
// Default: "2"
l4d_flashlight_random "0"

// 0=Off, 1=Save client preferences for flashlight color and state.
// -
// Default: "1"
l4d_flashlight_save "1"
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-21-2023 , 12:22   Re: [L4D & L4D2] Flashlight (2.29) [20-Dec-2023]
Reply With Quote #148

Rainbow was never intended to save. But I have an update that will add the feature. Wait.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-21-2023 , 14:56   Re: [L4D & L4D2] Flashlight (2.30) [21-Dec-2023]
Reply With Quote #149

Code:
2.30 (21-Dec-2023)
    - The rainbow activated state will now save and load.
    - Commands "sm_light" and "sm_lightclient" now accept the option "bow" to turn on the rainbow.
    - Thanks to "Hawkins" and "JustMadMan" for help testing.
__________________
Silvers is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 12-22-2023 , 11:23   Re: [L4D & L4D2] Flashlight (2.29) [20-Dec-2023]
Reply With Quote #150

Quote:
Originally Posted by Silvers View Post
Rainbow was never intended to save. But I have an update that will add the feature. Wait.
Sorry Silver.
I didn't know that "Rainbow" wasn't programmed to save.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura 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 03:06.


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