Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
2981
Plugin Version:
1.10
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    21 
    Plugin Description:
    Teleports a light_dynamic entity to where survivors are pointing with flashlights on.
    Old 06-01-2012 , 02:32   [L4D & L4D2] Dynamic Light (1.10) [07-Feb-2022]
    Reply With Quote #1

    Related Plugins:

    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.


    Thanks:
    • asto - For the request.
    • disawar1 - Russian translations.
    • bubbabyte - Helped testing.
    • Don't Fear The Reaper - German translations.


    CVars:

    Saved to l4d_dynamic_light.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_dynamic_light_allow "1"

    // 0=No, 1=Allow bots to have dynamic lights.
    l4d_dynamic_light_bots "0"

    // Brightness of the light.
    l4d_dynamic_light_bright "255.0"

    // The light color. Three values between 0-255 separated by spaces. RGB Color255 - Red Green Blue.
    l4d_dynamic_light_color "250 250 200"

    // 0=Off, 1=On. Default state of the light when players join.
    l4d_dynamic_light_default "0"

    // Distance the light shines before not lighting up.
    l4d_dynamic_light_distance "1000"

    // 0=Teleports light to the end distance. Other value starts fading the light brightness from this distance.
    l4d_dynamic_light_fade "2"

    // 0=All weapons and items. 1=Guns only. Which items/weapons does the light work on.
    l4d_dynamic_light_guns "0"

    // 0=Show the dynamic light to all players. 1=Hide the dynamic light so only other players can see it. 2=Only show to the owner.
    l4d_dynamic_light_hide "0"

    // 1=Print to chat, 2=Hint box.
    l4d_dynamic_light_hint "3"

    // 0=Off. 1=Show hint when first using the flashlight, 2=Show status on toggle, 3=Both.
    l4d_dynamic_light_hints "3"

    // 0=Trace directly to where they are aiming. 1=Trace hull to detect nearby entities.
    l4d_dynamic_light_hull "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_dynamic_light_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_dynamic_light_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_dynamic_light_modes_tog "0"

    // Dynamic Light plugin version.
    l4d_dynamic_light_version 


    Changes:
    Code:
    1.10 (07-Feb-2022)
        - Fixed compile warnings. They did not show up before.
    
    1.9 (06-Feb-2022)
        - Fixed the light potentially teleporting behind when too close to an object. Thanks to "KrutoyKolbas" for reporting.
    
    1.8 (15-Feb-2021)
        - Fixed not excluding the Molotov when "l4d_dynamic_light_guns" cvar was set to 1. Thanks to "HarryPotter" for fixing.
    
    1.7 (05-Oct-2020)
        - Added Traditional Chinese abd Simplified Chinese translations - Thanks to "HarryPotter".
        - Fixed cvar "l4d_dynamic_light_hints" displaying hints when it shouldn't. Thanks to "HarryPotter" for reporting.
    
    1.6 (05-Oct-2020)
        - Added cvar "l4d_dynamic_light_guns" to control if the light works on weapons only or everything.
    
    1.5 (30-Sep-2020)
        - Fixed compile errors on SM 1.11.
        - Fixed rare "OnPlayerRunCmd" throwing client "not connected" or "not in game" errors.
    
    1.4 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Fixed Cola Bottles not blocking the light.
        - Fixed not setting the default on/off state when a client connects.
        - Various changes to tidy up code.
    
    1.3 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.2 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Changed cvar "l4d_dynamic_light_hide" to use value 2 = Only show to the owner.
        - Changed cvar "l4d_dynamic_light_modes_tog" now supports L4D1.
        - Removed instructor hints due to Valve: FCVAR_SERVER_CAN_EXECUTE prevented server running command: gameinstructor_enable.
    
    1.1 (15-Jun-2012)
        - Added German translations - Thanks to "Don't Fear The Reaper".
        - Fixed the light not being teleported with the cvar "l4d_dynamic_light_fade" set to 0.
    
    1.0 (15-May-2012)
        - Initial release.


    Updating from 1.5 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Download "translations_dynamic_light.zip" and extract the "translations" folder to your servers \addons\sourcemod\ folder.

    Current Translations: English (en), German (de), Russian (ru), Simplified Chinese (zho), Traditional Chinese (chi).
    Attached Files
    File Type: zip translations_dynamic_light.zip (2.5 KB, 2464 views)
    File Type: sp Get Plugin or Get Source (l4d_dynamic_light.sp - 2076 views - 27.6 KB)
    __________________

    Last edited by Silvers; 02-08-2022 at 13:12.
    Silvers is offline
    Simca
    Senior Member
    Join Date: Feb 2012
    Old 06-01-2012 , 05:59   Re: [L4D & L4D2] Dynamic Light (1.0 [01-Jun-2012]
    Reply With Quote #2

    customized flashlight?
    Simca is offline
    DrDarkTempler
    Member
    Join Date: Apr 2012
    Old 06-02-2012 , 01:27   Re: [L4D & L4D2] Dynamic Light (1.0 [01-Jun-2012]
    Reply With Quote #3

    Tested out, it works on l4d1 (will try out l4d2 soon)

    Is pretty cool, is like a car, you get a low light and high beam
    DrDarkTempler is offline
    SyluxLockjaw100
    Senior Member
    Join Date: Jul 2010
    Location: Novaya Russia
    Old 06-10-2012 , 06:04   Re: [L4D & L4D2] Dynamic Light (1.0 [01-Jun-2012]
    Reply With Quote #4

    I've tested it out,it's x10 more helpful to see in the dark compared to the original flashlight,great plugin!

    Oh and I still get the dynamic light when I am carrying a gas can,propane tank,cola,gnome etc. Is that supposed to happen?

    edit: It seems to only effect the cola

    Last edited by SyluxLockjaw100; 06-10-2012 at 23:50.
    SyluxLockjaw100 is offline
    sereky
    Member
    Join Date: Aug 2011
    Old 08-06-2012 , 13:14   Re: [L4D & L4D2] Dynamic Light (1.1) [15-Jun-2012]
    Reply With Quote #5

    [L4D & L4D2] Teammate Flashlight

    It's a fork of Silvers' Dynamic Light plugin. It's based on his plugin.

    Changes:

    - Removed the "Double tap the Flashlight (F) key" feature. Now everyone has flashlight.
    - Removed unnecessary features and cvars.
    - Added new cvars and features.
    - Fixed the brightness cvar. Originally this cvar changed the size instead of the brightness.
    - Changed fade feature. If your aim is close to the wall, the size of the light will be reduced. Like in real life. (It is disabled by default.)

    Removed cvars and features:

    l4d_dynamic_light_bots
    l4d_dynamic_light_default
    l4d_dynamic_light_hint
    l4d_dynamic_light_hints
    l4d_dynamic_light_modes_tog

    New cvars:

    PHP Code:
    // 0=Off. 1=Ignore trace on survivors so the dynamic light will go through them.
    l4d_teammate_light_ignore "1"

    // Size of the light.
    l4d_teammate_light_size "155.0" 
    Fixed cvar:
    PHP Code:
    //Brightness of the light.
    l4d_teammate_light_bright "1" 
    This plugin requires the SDKHooks extension. Therefore do not click "Get Plugin" because it will not work. You can download the compiled .smx file.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_teammate_light.sp - 3947 views - 19.1 KB)
    File Type: smx l4d_teammate_light.smx (11.3 KB, 2899 views)

    Last edited by sereky; 09-02-2012 at 06:43. Reason: I forgot to add the .smx file
    sereky is offline
    sereky
    Member
    Join Date: Aug 2011
    Old 08-06-2012 , 13:21   Re: [L4D & L4D2] Dynamic Light (1.1) [15-Jun-2012]
    Reply With Quote #6

    [L4D & L4D2] Dynamic Muzzle Flash

    It's an other modified version of Dynamic Light plugin.

    It adds muzzle light to gunfires, like it was in Left 4 Dead Beta.

    Example videos:
    http://www.youtube.com/watch?v=0H91Y9rL4FE

    http://www.youtube.com/watch?v=gAnlmk-egMw

    This plugin was requested by asto.

    This plugin requires the SDKHooks extension. Therefore do not click "Get Plugin" because it will not work. You can download the compiled .smx file.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_dynamic_muzzle_flash.sp - 3690 views - 11.9 KB)
    File Type: smx l4d_dynamic_muzzle_flash.smx (8.9 KB, 2238 views)

    Last edited by sereky; 09-02-2012 at 06:38. Reason: I forgot to add the .smx file
    sereky is offline
    Ilovesurvival
    New Member
    Join Date: Dec 2012
    Old 12-23-2012 , 18:14   Re: [L4D & L4D2] Dynamic Light (1.1) [15-Jun-2012]
    Reply With Quote #7

    Pics?
    Ilovesurvival is offline
    Zbeer
    SourceMod Donor
    Join Date: Aug 2010
    Old 12-23-2012 , 21:19   Re: [L4D & L4D2] Dynamic Light (1.1) [15-Jun-2012]
    Reply With Quote #8

    The Dynamic Muzzle Flash is amazing!
    Good job.

    Last edited by Zbeer; 12-23-2012 at 21:19.
    Zbeer is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-25-2017 , 08:08   Re: [L4D & L4D2] Dynamic Light (1.1) [15-Jun-2012]
    Reply With Quote #9

    Yeah 2012 I know... but I didn't get to thank sereky for their updates which deserve more views...

    sereky: Thank you... maybe you should release as standalone plugins (if you still browse here) so more people see them. I personally love the Muzzle Flash.

    Updated first post linking to them.
    __________________
    Silvers is offline
    jking
    AlliedModders Donor
    Join Date: Jan 2012
    Old 08-17-2018 , 15:48   Re: [L4D & L4D2] Dynamic Light (1.1) [15-Jun-2012]
    Reply With Quote #10

    Quote:
    Originally Posted by Silvers View Post
    Yeah 2012 I know... but I didn't get to thank sereky for their updates which deserve more views...

    sereky: Thank you... maybe you should release as standalone plugins (if you still browse here) so more people see them. I personally love the Muzzle Flash.

    Updated first post linking to them.
    Seriously, this plugin is dope!
    jking 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 19:38.


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