AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] Tank Wave Music (Finale Win Sound) (https://forums.alliedmods.net/showthread.php?t=343617)

Dragokas 08-12-2023 13:04

[L4D] Tank Wave Music (Finale Win Sound)
 
1 Attachment(s)
Description:
Allows to play your own music when:
  • tank wave appear
  • last tank killed on finale map (finale win)

Music should be provided manually and uploaded to content-server, with appropriate settings on client side game.
Don't ask about content-server here. It is offtopic. Find out on your own or ask at General section.

Note: this version done specially for forum, and it wasn't properly tested. Report if everything OK.

Features:
  • Plays (downloads to client) 2 tracks per map. Number can be adjusted in l4d_tank_wave_sound.sp only. See #define TRACKS_PER_MAP 2

Settings (ConVars):
cfg/sourcemod/l4d_tank_wave_sound.cfg:
PHP Code:

// Enable plugin (1 - On / 0 - Off)
l4d_tank_wave_sound_enable "1"

// Enable tank wave sound (1 - On / 0 - Off)
l4d_tank_wave_sound_wave_enable "1"

// Enable last tank kill sound on finales
l4d_tank_wave_sound_finale_enable "1" (On Off

Commands: (in DEBUG mode only)
sm_fin - imitate finale win, "z" flag
Data files:
Each music file should be put in separate line.
Prepending comment // is allowed for temporarily disable the music file.
PHP Code:

// Finale win sound files
data/tank_finale_sounds.txt

// Tank wave sound files
data/tank_wave_sounds.txt 

Requirements
- Left 4 Dragokas | API
Compatibility
- L4D1
- L4D2
Installation
- Fulfill the requirements above
- Set up the content-server
- Set up client side network settings to allow downloading files from content-server
- Upload music files on content server
- Write music file paths in data/ files according to examples in archive. Should be written without "sound/" prefix
- Upload as is on game server or compile on your own
Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon (Paypal)
- BitCoin
- Ю.Money
P.S.:
- It's my private plugin written for myself and my Bloody Witch team.
- Project and updates discontinued. Don't ask.

Iizuka07 08-15-2023 23:25

Re: Tank Wave Music (Finale Win Sound)
 
Will this work on L4D2?

Dragokas 08-16-2023 05:11

Re: Tank Wave Music (Finale Win Sound)
 
Yes, it should.

Iizuka07 08-16-2023 13:02

Re: Tank Wave Music (Finale Win Sound)
 
Quote:

Originally Posted by Dragokas (Post 2808702)
Yes, it should.

Vey nice, thank you :)

Iizuka07 08-16-2023 21:33

Re: Tank Wave Music (Finale Win Sound)
 
Gotta ask if there's a possible way to increase the volume, maybe add a setting to it because custom songs play very low in volume despite the game's increased volume. The songs are almost silent.

Dragokas 08-19-2023 21:12

Re: [L4D] Tank Wave Music (Finale Win Sound)
 
@Iizuka07, no time atm, but you can replace SNDVOL_NORMAL with SNDLEVEL_GUNFIRE in code.
If it's still not enough, the only way to re-encode original audio files according to instruction like this (at spoiler).

kochiurun119 08-26-2023 21:47

Re: [L4D] Tank Wave Music (Finale Win Sound)
 
L 08/27/2023 - 08:43:43: SourceMod error session started
L 08/27/2023 - 08:43:43: Info (map "c8m1_apartment") (file "E:\Online Games\CSGO\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 30827.log")
L 08/27/2023 - 08:43:43: [SM] Failed to load plugin "nextmap.smx": Nextmap is incompatible with this game.
L 08/27/2023 - 08:43:44: [SM] Exception reported: You failed at installing! Required library is missing: "Left 4 Dragokas": https://forums.alliedmods.net/showthread.php?p=2681138
L 08/27/2023 - 08:43:44: [SM] Blaming: l4d_tank_wave_sound.smx
L 08/27/2023 - 08:43:44: [SM] Call stack trace:
L 08/27/2023 - 08:43:44: [SM] [0] SetFailState
L 08/27/2023 - 08:43:44: [SM] [1] Line 56, E:\Online Games\CSGO\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d_t ank_wave_sound.sp::OnPluginStart
L 08/27/2023 - 08:43:44: [SM] Unable to load plugin "l4d_tank_wave_sound.smx": Error detected in plugin startup (see error logs)
L 08/27/2023 - 08:43:48: Error log file session closed.

I install https://forums.alliedmods.net/showthread.php?p=2681138 but error looklike up. Can you fix?

Dragokas 08-27-2023 06:42

Re: [L4D] Tank Wave Music (Finale Win Sound)
 
Then, old error or you need to reboot the server.

kochiurun119 08-28-2023 04:39

Re: [L4D] Tank Wave Music (Finale Win Sound)
 
Plugin only working Dedicated Server , sir? Can working Local Server?

Dragokas 08-28-2023 08:59

Re: [L4D] Tank Wave Music (Finale Win Sound)
 
maybe


All times are GMT -4. The time now is 13:18.

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