Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Plane Crash (1.11) [10-Jan-2023]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
2861
Plugin Version:
1.11
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    45 
    Plugin Description:
    Creates the Dead Air Plane Crash on any map.
    Old 03-30-2012 , 06:46   [L4D & L4D2] Plane Crash (1.11) [10-Jan-2023]
    Reply With Quote #1


    About:
    • Set a time trigger with the command sm_plane_time to display a saved crash after round start. sm_plane_time 0 deletes the time trigger.
    • Using the sm_plane menu, a trigger can be saved, sized and positioned. The saved crash will show when survivors walk through this.
    • Can trigger a panic event a set number of seconds after the plane spawns with the cvar l4d_plane_crash_horde.
    • Hurts players if they are hit by debris. Set with the cvar l4d_plane_crash_damage, 0 turns off.
    • Auto-spawn config saved to: l4d_plane_crash.cfg in your servers \addons\sourcemod\data\ folder.


    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_plane          // Displays a menu with options to show/save a crash and triggers.
    sm_plane_clear    // Clears crashes from the map (does not delete from the config).
    sm_plane_time     // Sets the time after round start to show a saved crash. sm_plane_time 0 removes the time trigger. 

    CVars:

    Saved to l4d_plane_crash.cfg in your servers \left4dead\cfg\sourcemod\ folder.

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

    // The percentage chance of a saved plane crash being created from the saved config.
    l4d_plane_crash_chance "100"

    // 0=Spawn the plane in front of you (crashes to the left), 1=Spawn so the plane crashes in front of you.
    l4d_plane_crash_angle "1"

    // 0=Off, Remove the plane crash this many seconds after the plane hits the ground.
    l4d_plane_crash_clear "0"

    // 0=Off, Other value will hurt players if they get crushed by some debris.
    l4d_plane_crash_damage "20"

    // 0=Off, Trigger a panic event this many seconds after the plane spawns.
    l4d_plane_crash_horde "24"

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

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

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

    // 0=Off, Otherwise creates a crash this many seconds after round start (triggers and custom map times override this cvar).
    l4d_plane_crash_time "0"

    // Plane Crash plugin version.
    l4d_plane_crash_version 

    Changes:
    Code:
    1.11 (10-Jan-2023)
        - Changed the method of calling a panic event to support some 3rd party maps with random director names. Thanks to "Qoo_" for reporting.
        - Fixed Temp crashes also spawning the saved crash. Spawning a temporary crash will prevent the trigger box from spawning a saved crash.
    
    1.10 (20-Sep-2022)
        - Added cvar "l4d_plane_crash_chance" to set the chance of a plane crash being created, either saved or using the random cvar. Requested by "Sam B".
    
    1.9 (04-Dec-2021)
        - Changes to fix warnings when compiling on SourceMod 1.11.
    
    1.8 (19-Oct-2021)
        - Small changes to set the damage cvar value to all of the plugins damage entites (some had their own value).
    
    1.7a (18-Sep-2021)
        - L4D2: Data config edited. Changed the position of the "c3m1_plankcountry" crash site.
    
    1.7 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
    
    1.6 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
        - Fixed not precaching "env_shake" which caused stutter on first explosion.
    
    1.5 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Changed cvar "l4d_plane_crash_modes_tog" now supports L4D1.
    
    1.4 (30-Jun-2012)
        - Added cvar "l4d_plane_crash_clear" to remove the plane crash after it stops moving.
        - Command "sm_crash" changed to "sm_plane".
        - Command "sm_crash_clear" changed to "sm_plane_clear".
        - Command "sm_crash_time" changed to "sm_plane_time".
        - Fixed the plane crash not being created when the server starts.
    
    1.3 (10-May-2012)
        - Added "Show Saved Crash" and "Clear Crash" to the menu.
    
    1.2 (01-Apr-2012)
        - Really fixed cvar "l4d_plane_crash_damage" not working.
    
    1.1 (01-Apr-2012)
        - Added command "sm_crash_clear" to clear crashes from the map (does not delete from the config).
        - Added cvar "l4d_plane_crash_angle" to control if the plane spawns in front or crashes in front.
        - Fixed cvar "l4d_plane_crash_damage" not working.
    
    1.0 (30-Mar-2012)
        - Initial release.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. L4D2: Optionally download "l4d_plane_crash.cfg" and save to your servers \addons\sourcemod\data\ folder. This has saved crashes and triggers on some Valve maps.

    Updating from 1.9 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: cfg l4d_plane_crash.cfg (2.6 KB, 1366 views)
    File Type: sp Get Plugin or Get Source (l4d_plane_crash.sp - 1074 views - 51.8 KB)
    __________________

    Last edited by Silvers; 01-09-2023 at 22:00.
    Silvers is offline
     



    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 12:27.


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