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

[L4D & L4D2] Lift Music (1.5) [10-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
2344
Plugin Version:
1.5
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    52 
    Plugin Description:
    Plays music when players are travelling inside an elevator.
    Old 05-18-2011 , 17:45   [L4D & L4D2] Lift Music (1.5) [10-May-2020]
    Reply With Quote #1

    About:
    • Plays music when players are travelling inside an elevator.
    • Only elevators on official Valve maps in L4D and L4D2 play tracks.
    • Please list maps which contain lifts if you want support for those. stripper_dump's would be useful.


    Tracks Config:
    • Config included with 5 tracks to randomly select from.
    • Tracks must be specified on new lines within the config.
    • The paths must be relative to the \sound\ folder.
    • Maximum of 32 tracks (change MAX_TRACKS value and recompile if you want more.)


    Thanks:
    • Jay_ombie - For the idea and help testing.
    • Mr.RuyC - For help testing.
    • Visual77 - For support.


    CVars:
    PHP Code:
    // Lift Music plugin version.
    l4d_lift_music_version 


    Changes:
    Code:
    1.5 (10-May-2020)
        - Various changes to tidy up code.
    
    1.4 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.3 (10-May-2012)
        - Small changes and fixes.
    
    1.2 (20-May-2011)
        - Added elevator from c6m3_port.
    
    1.1 (20-May-2011)
        - Added "l4d_vs_hospital04_interior" as Visual77 suggested.
    
    1.0 (18-May-2011)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Download "l4d_lift_music.cfg" and put into your servers \addons\sourcemod\data\ folder.
    Attached Files
    File Type: cfg l4d_lift_music.cfg (148 Bytes, 5432 views)
    File Type: sp Get Plugin or Get Source (l4d_lift_music.sp - 2179 views - 6.2 KB)
    __________________

    Last edited by Silvers; 05-10-2020 at 06:52.
    Silvers is offline
    mentor
    Member
    Join Date: Apr 2011
    Old 05-19-2011 , 05:32   Re: [L4D & L4D2] Lift Music (1.0 - 19-May-2011)
    Reply With Quote #2

    nice plugin

    i will use \music\tank\tank.wav for my server XD
    mentor is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 05-20-2011 , 06:46   Re: [L4D & L4D2] Lift Music (1.0 - 19-May-2011)
    Reply With Quote #3

    Add if( StrEqual(sMap, "l4d_vs_hospital04_interior") ) g_iMapType = L4D_C8M4;
    L4D1 always had coop maps and versus maps
    Visual77 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-20-2011 , 08:06   Re: [L4D & L4D2] Lift Music (1.0 - 19-May-2011)
    Reply With Quote #4

    Oh yeah thanks, Valve suck.
    __________________
    Silvers is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 05-20-2011 , 10:43   Re: [L4D & L4D2] Lift Music (1.0 - 19-May-2011)
    Reply With Quote #5

    They do. Plugin works great
    Visual77 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-20-2011 , 10:48   Re: [L4D & L4D2] Lift Music (1.1 - 20-May-2011)
    Reply With Quote #6

    Updated with the vs map added. Do any other L4D1 maps have elevators? I can't recall any.

    This update is only needed for L4D1 servers, L4D2 are fine with 1.0.
    __________________
    Silvers is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 05-20-2011 , 11:01   Re: [L4D & L4D2] Lift Music (1.1 - 20-May-2011)
    Reply With Quote #7

    There is one on c6m3 (The passing) (L4D2). Don't know about L4D1.
    Visual77 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-20-2011 , 11:04   Re: [L4D & L4D2] Lift Music (1.1 - 20-May-2011)
    Reply With Quote #8

    Updated and added
    __________________

    Last edited by Silvers; 05-20-2011 at 11:17.
    Silvers is offline
    JoBarfCreepy
    Member
    Join Date: Feb 2011
    Location: Next to Sweden and Norwa
    Old 05-20-2011 , 14:34   Re: [L4D & L4D2] Lift Music (1.2 - 20-May-2011)
    Reply With Quote #9

    Can I use non-default music (Like, music from Half-Life or TimeSplitters) like the 'play' command if it's in my sound folder? Or do I need people to download manually, or am I simply just going to add one of the HTML files?
    JoBarfCreepy is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-20-2011 , 14:43   Re: [L4D & L4D2] Lift Music (1.2 - 20-May-2011)
    Reply With Quote #10

    It has to from the default files in L4D2, custom content won't be heard by players unless they have manually downloaded them.
    __________________
    Silvers is offline
    Reply


    Thread Tools
    Display Modes

    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 03:08.


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