AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Lift Music (1.5) [10-May-2020] (https://forums.alliedmods.net/showthread.php?t=157267)

Silvers 05-18-2011 17:45

[L4D & L4D2] Lift Music (1.5) [10-May-2020]
 
8 Attachment(s)
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.

mentor 05-19-2011 05:32

Re: [L4D & L4D2] Lift Music (1.0 - 19-May-2011)
 
nice plugin

i will use \music\tank\tank.wav for my server XD

Visual77 05-20-2011 06:46

Re: [L4D & L4D2] Lift Music (1.0 - 19-May-2011)
 
Add if( StrEqual(sMap, "l4d_vs_hospital04_interior") ) g_iMapType = L4D_C8M4;
L4D1 always had coop maps and versus maps :)

Silvers 05-20-2011 08:06

Re: [L4D & L4D2] Lift Music (1.0 - 19-May-2011)
 
Oh yeah thanks, Valve suck.

Visual77 05-20-2011 10:43

Re: [L4D & L4D2] Lift Music (1.0 - 19-May-2011)
 
They do. Plugin works great :)

Silvers 05-20-2011 10:48

Re: [L4D & L4D2] Lift Music (1.1 - 20-May-2011)
 
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.

Visual77 05-20-2011 11:01

Re: [L4D & L4D2] Lift Music (1.1 - 20-May-2011)
 
There is one on c6m3 (The passing) (L4D2). Don't know about L4D1.

Silvers 05-20-2011 11:04

Re: [L4D & L4D2] Lift Music (1.1 - 20-May-2011)
 
Updated and added :)

JoBarfCreepy 05-20-2011 14:34

Re: [L4D & L4D2] Lift Music (1.2 - 20-May-2011)
 
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?

Silvers 05-20-2011 14:43

Re: [L4D & L4D2] Lift Music (1.2 - 20-May-2011)
 
It has to from the default files in L4D2, custom content won't be heard by players unless they have manually downloaded them.


All times are GMT -4. The time now is 02:25.

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