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

[L4D1 & L4D2] Disable Shadows [v1.0.1 | 08-September-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7445
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Disables all shadows from the map
    Old 01-03-2021 , 20:40   [L4D1 & L4D2] Disable Shadows [v1.0.1 | 08-September-2021]
    Reply With Quote #1

    Description

    This plugin disable shadows from the map for all players.

    Can be useful to make SI harder to detect since is possible to see SI shadows sometimes on places that aren't supposed to be able to see, which gives some advantage to survivors. (e.g. SI on rooftop but display shadows on the floor, inside the house)


    Features
    • Allow Enable/Disable/Toggle shadows from the map.

    Cvars

    A configuration file named "l4d_disable_shadows.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_disable_shadows_enable "1" 
    Admin Commands
    • sm_shadowstoggle => Toggle shadows. (z flag required)
    • sm_shadowsenable => Enable shadows. (z flag required)
    • sm_shadowsdisable => Disable shadows. (z flag required)
    • sm_print_cvars_l4d_disable_shadows => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • This plugin uses the shadow_control entity.
    • There is no much FPS gain on disabling shadows, from my tests it usually increases by 1~4 FPS.

    Thank you!
    • Everybody in the Removing Shadows thread.
    • VladimirTk - for reporting an error while changing sv_cheats before map load.
    • KadabraZz - for reporting a bug of shadows restoring while changing sv_cheats cvar.

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d_disable_shadows.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_disable_shadows.sp - 374 views - 11.2 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:19.
    Marttt is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 01-03-2021 , 21:29   Re: [L4D1 & L4D2] Disable Shadows [v1.0.0 | 03-January-2021]
    Reply With Quote #2

    What is the benefit for disabling shadows Just a question
    __________________
    HarryPotter is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 01-03-2021 , 21:47   Re: [L4D1 & L4D2] Disable Shadows [v1.0.0 | 03-January-2021]
    Reply With Quote #3

    Not much benefit, unless you are running on a low-end computer or playing in a bad optimized map.
    I know someone that fits both conditions (did it thinking on him actually).

    Still, is possible to use some launcher cvars (+r_shadowrendertotexture 0) to achieve something similar,
    but some players don't know how to do it. (since there isn't a config to disable shadows through L4D1/L4D2 in-game "options").

    Also in versus sometimes is possible to view the SI shadows as a Survivor at places where it shouldn't be visible.
    __________________

    Last edited by Marttt; 01-04-2021 at 00:53.
    Marttt is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 09-08-2021 , 17:50   Re: [L4D1 & L4D2] Disable Shadows [v1.0.1 | 08-September-2021]
    Reply With Quote #4

    Plugin updated (1.0.1)

    Code:
    1.0.1 (08-September-2021)
    - Fixed an error while changing sv_cheats before map load. (thanks "VladimirTk" for reporting)
    - Fixed shadows restoring while changing sv_cheats cvar. (thanks "kadabra" for reporting)
    __________________
    Marttt is offline
    yzybb
    Member
    Join Date: Jul 2020
    Old 09-27-2021 , 13:15   Re: [L4D1 & L4D2] Disable Shadows [v1.0.0 | 03-January-2021]
    Reply With Quote #5

    Quote:
    Originally Posted by Marttt View Post
    Not much benefit, unless you are running on a low-end computer or playing in a bad optimized map.
    I know someone that fits both conditions (did it thinking on him actually).

    Still, is possible to use some launcher cvars (+r_shadowrendertotexture 0) to achieve something similar,
    but some players don't know how to do it. (since there isn't a config to disable shadows through L4D1/L4D2 in-game "options").

    Also in versus sometimes is possible to view the SI shadows as a Survivor at places where it shouldn't be visible.
    Hello, Marttt, If plugin and r_shadowrendertotexture have similar effects, why should I use plugin? And plugin has to use one more entity, This seems very uneconomical.
    yzybb is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 09-27-2021 , 13:35   Re: [L4D1 & L4D2] Disable Shadows [v1.0.1 | 08-September-2021]
    Reply With Quote #6

    You already have your answer in the quoted post.

    Quote:
    some players don't know how to do it
    Also for versus:

    Quote:
    is possible to see SI shadows sometimes on places that aren't supposed to be able to see
    Anyway, won't consume an extra entity since this entity usually exists in all maps and I use the existing one, if don't I create it (which can be useful to test shadows in maps that don't have it).

    If don't fit your needs, just don't use it.
    __________________

    Last edited by Marttt; 09-27-2021 at 13:41.
    Marttt is offline
    yzybb
    Member
    Join Date: Jul 2020
    Old 09-27-2021 , 14:07   Re: [L4D1 & L4D2] Disable Shadows [v1.0.1 | 08-September-2021]
    Reply With Quote #7

    Quote:
    Originally Posted by Marttt View Post
    You already have your answer in the quoted post.



    Also for versus:



    Anyway, won't consume an extra entity since this entity usually exists in all maps and I use the existing one, if don't I create it (which can be useful to test shadows in maps that don't have it).

    If don't fit your needs, just don't use it.
    Thank you very much for your answer. I understand now.
    yzybb is offline
    JLmelenchon
    Senior Member
    Join Date: Mar 2019
    Old 08-27-2022 , 21:29   Re: [L4D1 & L4D2] Disable Shadows [v1.0.1 | 08-September-2021]
    Reply With Quote #8

    I am interested but want to disable shadows only on infecteds, not the whole game.
    JLmelenchon 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 10:20.


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