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

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


Post New Thread Reply   
 
Thread Tools Display Modes
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 06-09-2012 , 16:48   Re: [L4D & L4D2] Lift Music (1.3) [10-May-2012]
Reply With Quote #31

Quote:
Originally Posted by Silvers View Post
I will not adding anything else to this. Only bug fixes, but there are none.

The sounds are all relative to the sounds folder, so the dlc folders should work, just don't include this part: left4dead_dlc3\sound\

Cool. And yeah I've haven't seen a bugs either

Ahh, I just tried it by omitting that part and it does work with the tracks from The Sacrifice. Nice, thanks

I was thinking, some friends and I are hosting a L4D1 server where we'll have 70 custom campaigns. Some of those have elevators. I know you're not going to want to go through all of those as it's a ton and will take forever for one person to do. Can you show me how to add support for a map in the plugin? We can then test and forward the working results to you, so you can add it to the main plugin or perhaps post an alternative plugin with custom campaign support. Is this doable?

Thanks
The 5th Survivor is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-09-2012 , 17:11   Re: [L4D & L4D2] Lift Music (1.3) [10-May-2012]
Reply With Quote #32

1. Look in the source for the enum L4D_C8M4.

2. Create enum entries for your own maps.

3. In OnMapStart, duplicate the L4D_C8M4 line, but make it check for your map name and respective enum.

3b. Could just copy one of the else if lines from above.

4. In tmrStart where you see L4D_C8M4, duplicate the two lines and set them like the above else if lines.

5. You need to know what triggers the elevator to start, func_button, logic_relay or other.

6. Take the entity classname and targetname and fill in the data.


Some 'elevators' will not work, such as next to the Gas Station in c8m3.
__________________

Last edited by Silvers; 06-09-2012 at 17:12.
Silvers is offline
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 06-13-2012 , 02:55   Re: [L4D & L4D2] Lift Music (1.3) [10-May-2012]
Reply With Quote #33

Cool! Thanks for the info man! Can't wait to try this out in full when I have more free time. I did however, as a quick test added support for the custom campaigns: No Mercy Daytime, No Mercy Revival, and No Mercy Hard Expert Mode and they all worked. But those were easy to add anyway since there wasn't much to edit. I'll start with City 17 and let you know.
The 5th Survivor is offline
doritos250
Junior Member
Join Date: May 2012
Old 06-18-2012 , 15:50   Re: [L4D & L4D2] Lift Music (1.3) [10-May-2012]
Reply With Quote #34

It would be so amazing if this sound can be played in the evelator

http://www.youtube.com/watch?v=iYKDw3yxxOQ
doritos250 is offline
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 06-19-2012 , 18:23   Re: [L4D & L4D2] Lift Music (1.3) [10-May-2012]
Reply With Quote #35

Quote:
Originally Posted by doritos250 View Post
It would be so amazing if this sound can be played in the evelator

http://www.youtube.com/watch?v=iYKDw3yxxOQ

Actually, it can! BUT, the server, you, and everyone connected to the server, would have to have that sound clip in your sounds files in order to hear it.




@Silvers
Just tried adding City 17 and it worked! But the music kept playing once the elevator reached the destination and the doors opened. Personally, I prefer it this way. But since that's not how you have it, I was looking at the section that mentions "Hook lift arriving on floor to stop sound" to see if I could specify where it should stop playing, but I couldn't make heads or tails our of that section What do you suggest?


Quote:
Originally Posted by Silvers View Post
5. You need to know what triggers the elevator to start, func_button, logic_relay or other.
Where can I look to see what determines this? I guess I was fortunate this time since the entity classname and targetname to trigger the elevator for City 17 were the same as the No Mercy map.
The 5th Survivor is offline
doritos250
Junior Member
Join Date: May 2012
Old 06-20-2012 , 13:09   Re: [L4D & L4D2] Lift Music (1.3) [10-May-2012]
Reply With Quote #36

Yea i know that but i mean to download the song from the server and play it wihout to enter the command "snd_audiorebuildcache"
doritos250 is offline
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 01-16-2014 , 02:18   Re: [L4D & L4D2] Lift Music (1.3) [10-May-2012]
Reply With Quote #37

Quote:
Originally Posted by doritos250 View Post
Yea i know that but i mean to download the song from the server and play it wihout to enter the command "snd_audiorebuildcache"
L4D2 does not support this feature (well it kinda does), if your force clients to download a sound on connect to a server they will get a black screen or game freeze on first connect (as the file is downloaded) on next connect it will work normal and they will hear the sound, so for friends it is ok i suppose but most pubs wont connect back to a server that in their eyes just crashed
https://forums.alliedmods.net/showthread.php?t=114106
http://forums.alliedmods.net/showthread.php?t=96506

Last edited by s.m.a.c head; 01-16-2014 at 02:18.
s.m.a.c head is offline
Striker black
Member
Join Date: Apr 2013
Old 03-14-2021 , 14:27   Re: [L4D & L4D2] Lift Music (1.5) [10-May-2020]
Reply With Quote #38

It works very well! thank you silver
__________________
--------------------------------------
Striker black is offline
Gold Fish
Senior Member
Join Date: Mar 2020
Old 03-12-2022 , 13:57   Re: [L4D & L4D2] Lift Music (1.5) [10-May-2020]
Reply With Quote #39

Make an mp3 player so that players can turn on any music from the list and that other players can hear it)
__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");


Last edited by Gold Fish; 03-12-2022 at 13:59.
Gold Fish is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-12-2022 , 14:53   Re: [L4D & L4D2] Lift Music (1.5) [10-May-2020]
Reply With Quote #40

Quote:
Originally Posted by Gold Fish View Post
Make an mp3 player so that players can turn on any music from the list and that other players can hear it)
I'm sure there are other plugins doing this already.
__________________
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 23:02.


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