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

[L4D2] Grenade Launcher Screen Shake (1.2) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7607
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows the Grenade Launcher explosion to create a screen shake near players.
    Old 04-20-2021 , 08:51   [L4D2] Grenade Launcher Screen Shake (1.2) [11-Dec-2022]
    Reply With Quote #1

    About:
    • Makes players screen shake near a Grenade Launcher projectile detonation.


    Thanks:
    • Iizuka07 - For the request.


    Cvars:

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

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

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

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

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

    // The maximum distance the screen shake can affect players.
    l4d2_gl_shake_range "600.0"

    // How intense the screen shake will be, falls off over range.
    l4d2_gl_shake_force "32.0"

    // Grenade Launcher Screen Shake plugin version.
    l4d2_gl_shake_version 

    Changes:
    Code:
    1.2 (11-Dec-2022)
        - Changes to fix compile warnings on SourceMod 1.11.
    
    1.1 (30-Jun-2021)
        - Fixed "Invalid edict" error. Thanks to "Iizuka07" for reporting.
    
    1.0 (20-Apr-2021)
        - Initial release.

    Installation:
    • Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_grenade_launcher_shake.sp - 244 views - 10.6 KB)
    __________________

    Last edited by Silvers; 12-10-2022 at 18:55.
    Silvers is offline
    Iizuka07
    Senior Member
    Join Date: Aug 2018
    Location: Underground
    Old 04-22-2021 , 12:28   Re: [L4D2] Grenade Launcher Screen Shake (1.0) [20-Apr-2021]
    Reply With Quote #2

    Even though I missed the testing phase of this, thanks again for making it happen man. Appreciate your work.
    __________________
    死が待っている
    Iizuka07 is offline
    Iizuka07
    Senior Member
    Join Date: Aug 2018
    Location: Underground
    Old 06-30-2021 , 10:36   Re: [L4D2] Grenade Launcher Screen Shake (1.0) [20-Apr-2021]
    Reply With Quote #3

    New error occured.


    L 06/29/2021 - 10:55:57: [SM] Exception reported: Invalid edict (2399 - -2065118881)
    L 06/29/2021 - 10:55:57: [SM] Blaming: [L4D2] Grenade Launcher Shake.smx
    L 06/29/2021 - 10:55:57: [SM] Call stack trace:
    L 06/29/2021 - 10:55:57: [SM] [0] GetEdictClassname
    L 06/29/2021 - 10:55:57: [SM] [1] Line 275, /home/forums/content/files/8/5/7/7/8/188846.attach::OnEntityDestroyed
    L 06/29/2021 - 11:04:49: Error log file session closed.
    __________________
    死が待っている
    Iizuka07 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-30-2021 , 10:44   Re: [L4D2] Grenade Launcher Screen Shake (1.1) [30-Jun-2021]
    Reply With Quote #4

    Thanks fixed.
    __________________
    Silvers 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 06:28.


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