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

[L4D & L4D2] Flashlight (2.31) [23-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
tornasuk
Junior Member
Join Date: Nov 2013
Location: a van down by the river!
Old 03-27-2014 , 20:45   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #21

Quote:
Originally Posted by Munch View Post
yep
works great

L4D2 v2.1.3.5
Linux Server

Thanks a lot for your kindness
__________________
"TU MAMA" servers: Coop | Versus
tornasuk is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 07-08-2015 , 14:03   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #22

Quote:
Originally Posted by KyleS View Post
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
Any chance of getting this fixed so this can be approved? Passing random stuff into setvariant is the biggest issue.
Dr!fter is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-08-2015 , 14:24   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #23

Ahh yeah I'll try get onto that in the next couple of weeks. Thanks for reminding me
__________________
Silvers is offline
Figa
Member
Join Date: Apr 2011
Location: Siberia
Old 09-21-2015 , 06:11   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #24

It's great to start the light show.

PHP Code:
// #########################
// flashlight show | by figa
// #########################

bind F12 show_enable

alias show_enable 
"show_on"
alias show_on "light_on; alias show_enable show_off"
alias show_off "light_off; alias show_enable show_on"
alias light_on "alias light_trigger light_show; light_trigger"
alias light_off "alias light_trigger sm_light"
alias light_show "sm_light 200 1 1; wait 60; sm_light 1 120 1; wait 60; sm_light 1 1 212; wait 60; sm_light 201 201 1; wait 60; sm_light 1 201 201; wait 60; sm_light 201 1 201; sm_light 100 31 41; wait 60; sm_light 30 120 50; light_trigger" 
P.S. Change the delay and color to create their unique show. =D
__________________
Sorry for my bad English. Wrote my pet bear.
Figa is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 09-21-2015 , 11:49   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #25

Don't see how that could possibly work.

EDIT:
I assume its supposed to cycle through the colours but just makes my game hang/crash.
__________________
Dead Men Fighting L4D2 8 Man Dead Men Fighting UK

Last edited by Munch; 09-21-2015 at 12:02.
Munch is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 09-21-2015 , 13:06   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #26

Without editing the sp to cycle through the colours, the best you can do is add this to your autoexec.cfg

//FLASH LIGHT (repeated presses of "L" cycles through colours)
bind "l" "fl"
alias fl "fl1"
alias fl1 "sm_light white; alias fl fl2"
alias fl2 "sm_light red; alias fl fl3"
alias fl3 "sm_light orange; alias fl fl4"
alias fl4 "sm_light yellow; alias fl fl5"
alias fl5 "sm_light green; alias fl fl6"
alias fl6 "sm_light blue; alias fl fl7"
alias fl7 "sm_light purple; alias fl fl8"
alias fl8 "sm_light off; alias fl fl1"
__________________
Dead Men Fighting L4D2 8 Man Dead Men Fighting UK

Last edited by Munch; 09-21-2015 at 13:07.
Munch is offline
Figa
Member
Join Date: Apr 2011
Location: Siberia
Old 09-21-2015 , 16:08   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #27

It works very well. Maybe your PC is too weak?!
__________________
Sorry for my bad English. Wrote my pet bear.
Figa is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 09-22-2015 , 18:52   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #28

May I ask whether you use Linux or windows server.
It works ok on a friends Linux server but not my windows server.
__________________
Dead Men Fighting L4D2 8 Man Dead Men Fighting UK
Munch is offline
Figa
Member
Join Date: Apr 2011
Location: Siberia
Old 09-22-2015 , 22:36   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #29

Strange. I use on the Linux server. Just I checked on the server Windows. Crashes it not caused.
Can we check in different games? Checked of L4D 1.
__________________
Sorry for my bad English. Wrote my pet bear.
Figa is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 10-01-2015 , 08:49   Re: [L4D & L4D2] Flashlight (2.5) [25-May-2012]
Reply With Quote #30

L 09/28/2015 - 210:06: SourceMod error session started
L 09/28/2015 - 210:06: Info (map "towncab") (file "errors_20150928.log")
L 09/28/2015 - 210:06: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
L 09/28/2015 - 210:06: [SM] Displaying call stack trace for plugin "l4d_flashlight.smx":
L 09/28/2015 - 210:06: [SM] [0] Line 596, C:\SRCDS\left4dead2\left4dead2\addons\sourcem od\scripting\l4d_flashlight.sp::CommandLight( )
L 09/28/2015 - 210:06: [SM] [1] Line 580, C:\SRCDS\left4dead2\left4dead2\addons\sourcem od\scripting\l4d_flashlight.sp::CmdLight()
L 09/28/2015 - 210:06: [SM] Native "IsPlayerAlive" reported: Client 1 is not in game
Krufftys Killers 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 20:14.


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