Raised This Month: $7 Target: $400
 1% 

[L4D2] Dynamic Soundtrack Sets


Post New Thread Reply   
 
Thread Tools Display Modes
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 11-21-2020 , 13:36   Re: [L4D2] Dynamic Soundtrack Sets (Unfinished)
Reply With Quote #21

Quote:
Originally Posted by BRU7US View Post
Don't pay attention to it. Sorry for this, i just forgot to clean code from my functionality. It's only need for my dedicated server. I tried to turn off music after death of survivor in my own custom gamemode. And i did it. It's not needed for public version of this plugin. Sorry!
Ah, it's ok, I've already edited it out. No harm done.
Shadowysn is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-21-2020 , 18:10   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #22

If you are ever going to try UserCmd way (actually, I don't recommend ), I updated UserCmd Hook to correctly handle L4D1 if you plan to cover it as well.

Here are also some experiments (all regards going to SilverShot):
Spoiler
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 12-10-2020 , 04:51   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #23

Quote:
Originally Posted by Dragokas View Post
If you are ever going to try UserCmd way (actually, I don't recommend ), I updated UserCmd Hook to correctly handle L4D1 if you plan to cover it as well.

Here are also some experiments (all regards going to SilverShot):
Spoiler
Even after the Last Stand update, the signatures for the music surprisingly held up and I didn't have to update them at all, so I'm sticking with signatures for now. UserCmd is interesting, but like you said, 'i don't recommend' ¯\_(ツ)_/¯

There's no L4D2 survivors in L4D1, thus, no music set to swap. :V
__________________
ragdoll spam, that is all

Steam profile, where I game, obviously.
Youtube channel, where I do Stick Death Maze animations and some other stuff.
no plugin requests, sorry


My Plugins:
-search list-
Modified Plugins:
1 | 2 | 3 | 4
Shadowysn is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 12-31-2020 , 13:27   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #24

Just a heads up for the possible improvement of this plugin. I'm using a debug version of this with the use of DHooks and it looks like the ones with "Hit" in the name and Event.ZombieIntro only have entity indexes so you can swap those safely in a pre-hook detour without worries since the rest return 0 (world).

What's strange though is all of them seem to return -1.000000 intensity.

Last edited by cravenge; 12-31-2020 at 13:33.
cravenge is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 01-02-2021 , 05:24   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #25

Quote:
Originally Posted by cravenge View Post
Just a heads up for the possible improvement of this plugin. I'm using a debug version of this with the use of DHooks and it looks like the ones with "Hit" in the name and Event.ZombieIntro only have entity indexes so you can swap those safely in a pre-hook detour without worries since the rest return 0 (world).

What's strange though is all of them seem to return -1.000000 intensity.
The last time I used DHooks with music swapping, I had no idea how to determine which survivor would the music be played on, which is needed for checking whether to play the L4D1 or L4D2 music set.

Using the entity indexes that're only stored for some music and not all of them is still an incomplete solution, and I don't really sourcemod much these days.
__________________
ragdoll spam, that is all

Steam profile, where I game, obviously.
Youtube channel, where I do Stick Death Maze animations and some other stuff.
no plugin requests, sorry


My Plugins:
-search list-
Modified Plugins:
1 | 2 | 3 | 4

Last edited by Shadowysn; 01-02-2021 at 05:29.
Shadowysn is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 01-15-2021 , 09:41   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #26

After numerous testing, here's an improved version of this plugin. Best used with Lux's [L4D2] L4D1 Music Fix.
Attached Files
File Type: txt dynamic_soundtrack_sets-l4d2.txt (1.1 KB, 237 views)
File Type: sp Get Plugin or Get Source (dynamic_soundtrack_sets-l4d2.sp - 223 views - 16.1 KB)

Last edited by cravenge; 03-04-2021 at 11:24. Reason: New version
cravenge is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 01-20-2021 , 01:27   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #27

Updated my post.

- Fixed "Event.ScenarioLose" not being swapped when all survivors die.
- Fixed soundtracks looping when spectating someone who have them swapped around with their counterparts.

Last edited by cravenge; 01-20-2021 at 04:57.
cravenge is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 01-22-2021 , 07:50   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #28

Updated my post again.

- Fixed "Event.SurvivorDeath(_L4D1)" not stopping after getting defibrillated. This is caused by "Event.LargeAreaRevealed(_L4D1)" being called for some reason after coming back to life.
cravenge is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 02-24-2021 , 07:21   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #29

New version is out!

- Added forward and natives. How they should be used is already explained in the include.
- Added the missing signature when the plugin tries to create the gamedata itself.
cravenge is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 02-24-2021 , 08:39   Re: [L4D2] Dynamic Soundtrack Sets
Reply With Quote #30

cravenge just installed and then I get this error L 02/24/2021 - 076:46: [left4dhooks.smx] Failed to load "FastGetSurvivorSet" signature.
Krufftys Killers 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 07:38.


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