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

[L4D & L4D2] Dynamic Light (1.10) [07-Feb-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 10-05-2020 , 08:49   Re: [L4D & L4D2] Dynamic Light (1.6) [05-Oct-2020]
Reply With Quote #21

I found a bug, hint still Show status on toggle when I set 1
PHP Code:
// 0=Off. 1=Show hint when first using the flashlight, 2=Show status on toggle, 3=Both.
l4d_dynamic_light_hints "1" 
so I modify and it works.
PHP Code:
line 652:   if( (g_iCvarHints 1) && g_iLightWasUsed[client] == )

line 667:   if( g_iCvarHints 2
And here are traditional + Simplified Chinese (chi+zho)
Attached Files
File Type: zip translations.zip (1.1 KB, 110 views)
__________________

Last edited by HarryPotter; 10-05-2020 at 08:49.
HarryPotter is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-05-2020 , 16:24   Re: [L4D & L4D2] Dynamic Light (1.6) [05-Oct-2020]
Reply With Quote #22

Quote:
Originally Posted by HarryPotter View Post
I found a bug, hint still Show status on toggle when I set 1

And here are traditional + Simplified Chinese (chi+zho)
Oops nice spot, thanks. Updated.
__________________
Silvers is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 12-23-2020 , 10:30   Re: [L4D & L4D2] Dynamic Light (1.7) [05-Oct-2020]
Reply With Quote #23

silvers forgot the molotov item if I set
PHP Code:
//0=All weapons and items. 1=Guns only. Which items/weapons does the light work on.
l4d_dynamic_light_guns 1 
line 621~623
PHP Code:
    strcmp(sTemp[7], "vomitjar") == ||
    
strcmp(sTemp[7], "pipe_bomb") == ||
    
strcmp(sTemp[7], "molotov") == || //I add this line 
__________________

Last edited by HarryPotter; 12-24-2020 at 03:49.
HarryPotter is offline
Koiter
Junior Member
Join Date: Feb 2021
Old 02-02-2021 , 01:40   Re: [L4D & L4D2] Dynamic Light (1.7) [05-Oct-2020]
Reply With Quote #24

does this plugin work with l4d2 ? bc i'm trying to install into l4d2 i have follow the installation instruction but it's not work.

Last edited by Koiter; 02-02-2021 at 01:40.
Koiter is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-02-2021 , 03:37   Re: [L4D & L4D2] Dynamic Light (1.7) [05-Oct-2020]
Reply With Quote #25

any error.logs in \addons\sourcemod\logs folder?
__________________
HarryPotter is offline
Koiter
Junior Member
Join Date: Feb 2021
Old 02-02-2021 , 06:54   Re: [L4D & L4D2] Dynamic Light (1.7) [05-Oct-2020]
Reply With Quote #26

Quote:
Originally Posted by HarryPotter View Post
any error.logs in \addons\sourcemod\logs folder?
no that folder was empty, i have checked
Koiter is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-02-2021 , 06:58   Re: [L4D & L4D2] Dynamic Light (1.7) [05-Oct-2020]
Reply With Quote #27

Maybe you should be a bit more specific about "not work".

Does the plugin appears as loaded in "sm plugins list"?

Did you follow the info in the main post?

Quote:
Originally Posted by Silvers View Post
About:
  • Teleports a light_dynamic entity to where survivors are pointing with flashlights on.
  • They must be holding a weapon which has a flashlight. Molotovs, health kit, pills etc will turn the light off.
  • The higher a players ping, the slower their dynamic light will be teleported to where they are aiming.
  • Double tap the Flashlight (F) key to turn on/off the dynamic light.
__________________
Marttt is offline
Koiter
Junior Member
Join Date: Feb 2021
Old 02-02-2021 , 08:00   Re: [L4D & L4D2] Dynamic Light (1.7) [05-Oct-2020]
Reply With Quote #28

Quote:
Originally Posted by Marttt View Post
Maybe you should be a bit more specific about "not work".

Does the plugin appears as loaded in "sm plugins list"?

Did you follow the info in the main post?
you're right, i'm sorry, i'm new here, after download 2 file and put them as the instruction said, set game launch options as -insecure then i play the game, started no mercy map to test then i go to a dark place or room, my teammate flash light are not bright where they pointing at, i even turn off my flashlight to make sure and my teammates flashlight is on but the room still dark.

https://imgur.com/a/b3pXExb

Last edited by Koiter; 02-02-2021 at 08:23.
Koiter is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-02-2021 , 22:25   Re: [L4D & L4D2] Dynamic Light (1.7) [05-Oct-2020]
Reply With Quote #29

Quote:
Originally Posted by Koiter View Post
you're right, i'm sorry, i'm new here, after download 2 file and put them as the instruction said, set game launch options as -insecure then i play the game, started no mercy map to test then i go to a dark place or room, my teammate flash light are not bright where they pointing at, i even turn off my flashlight to make sure and my teammates flashlight is on but the room still dark.

https://imgur.com/a/b3pXExb
do you have l4d_dynamic_light.cfg in your servers \cfg\sourcemod\ folder ?

open console -> type
PHP Code:
sm plugins list 
__________________

Last edited by HarryPotter; 02-02-2021 at 22:25.
HarryPotter is offline
Koiter
Junior Member
Join Date: Feb 2021
Old 02-02-2021 , 23:19   Re: [L4D & L4D2] Dynamic Light (1.7) [05-Oct-2020]
Reply With Quote #30

Quote:
Originally Posted by HarryPotter View Post
do you have l4d_dynamic_light.cfg in your servers \cfg\sourcemod\ folder ?

open console -> type
PHP Code:
sm plugins list 
i do have l4d_dynamic_light.cfg in my servers \cfg\sourcemod\ folder, i copy the code on this site, go to \cfg\sourcemod\ folder, i create a notepad paste those code and save that notepad as l4d_dynamic_light.cfg


which console i have to open ?
Koiter 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 07:45.


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