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

[L4D1&2] Scene Processor


Post New Thread Reply   
 
Thread Tools Display Modes
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 08-25-2014 , 08:23   Re: [L4D1&2] Scene Processor
Reply With Quote #21

Quote:
Originally Posted by DeathChaos25 View Post
I took your suggestion in making a separate plugin that logs EVERY scene created, but I had assumed correctly, and the call for rescue lines don't actually spawn a scene, I guess that's something that we can't correct then.

Also, just a small vid of the current progress...

For some reason, sometimes the replacement scene is delayed too much, like in the video, the incapacitatedinitial line was so delayed that it was interrupted by the incapacitatedhurt one instead, but that's a non issue as the delay is only noticeable when using grenades, as they are called almost after the grenade toss is done.

In case you're wondering what the plugin looks like right now...

And this is only about barely 30% of Nick's scenes, this'll look waaaaaaaaaaaaaaaayyyyyyy bigger when I'm done

(Hint : Nick still has roughly about 1,000 - 1,300 more scenes to go...
Call for rescue lines maybe before they put in scenes and what not. I know a few more does not trigger the scenes, such as the melee weapon grunt (always Coach's line).

The way we replace scenes is a bit sloppy in my opinion since we do it after the original scene is to be played, then we create another scene and overwrite the original. All of that takes time and as you noticed yourself, it can create a delay. Detouring functions would probably be a better solution but I am not that much invested in it to do such a thing at the moment.
Mr. Zero is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 08-25-2014 , 16:33   Re: [L4D1&2] Scene Processor
Reply With Quote #22

Quote:
Originally Posted by Mr. Zero View Post
Call for rescue lines maybe before they put in scenes and what not. I know a few more does not trigger the scenes, such as the melee weapon grunt (always Coach's line).

The way we replace scenes is a bit sloppy in my opinion since we do it after the original scene is to be played, then we create another scene and overwrite the original. All of that takes time and as you noticed yourself, it can create a delay. Detouring functions would probably be a better solution but I am not that much invested in it to do such a thing at the moment.
If I understood what you're telling me correctly, things work like this.

The scene is being cancelled upon being initialized, this would mean the scene initializes AFTER the predelay has passed.

This would mean that our problem here is that the predelay is being applied twice then, once before the scene begins, and again for the new scene replacing it.

In theory, this means that simply removing the predelay (or setting it to 0) for the new scene should take care of this problem, correct?
DeathChaos25 is offline
id5473
Member
Join Date: Mar 2012
Old 08-26-2014 , 06:06   Re: [L4D1&2] Scene Processor
Reply With Quote #23

Quote:
Originally Posted by DeathChaos25 View Post
Edit : Going through the talker files, I found this section;

Spoiler


However, it says noscene, I'm guessing SceneProcessor won't be able to pick and interrupt these lines, any Idea of what I could do for them?
There are scenefiles for these vocals and the concept to fire them as well. I'm pretty sure you can just rewrite this part of the talker to use the respective scene instead.

Response LostCallTeengirl
{
scene "scenes/teengirl/lostcall01.vcd"
....
}

I'd assume several people wrote these talker files which is also the reason why the style and the event naming changes a lot and then valve also seems to have a partially automatic process to generate the talker.

Last edited by id5473; 08-26-2014 at 06:12.
id5473 is offline
Mr. Zero
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 08-26-2014 , 17:29   Re: [L4D1&2] Scene Processor
Reply With Quote #24

Quote:
Originally Posted by DeathChaos25 View Post
If I understood what you're telling me correctly, things work like this.

The scene is being cancelled upon being initialized, this would mean the scene initializes AFTER the predelay has passed.

This would mean that our problem here is that the predelay is being applied twice then, once before the scene begins, and again for the new scene replacing it.

In theory, this means that simply removing the predelay (or setting it to 0) for the new scene should take care of this problem, correct?
No the scene capturing happens on entity created, before the predelay of the scene is set. The predelay is not an issue.

However what I am trying to say if I were to detour for example SpeakConcept function to intercept all talker lines then that may give us some better tools to allow alteration of scenes before the scenes are even created. Even allowing us to take control of perhaps larger scenes, such as elevator conversations.

Of course this is just me theorizing.
Mr. Zero is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-26-2014 , 17:33   Re: [L4D1&2] Scene Processor
Reply With Quote #25

I haven't had a chance to look at the code yet, but I do wonder if this can be adapted to work on other Source games.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 08-26-2014 , 21:21   Re: [L4D1&2] Scene Processor
Reply With Quote #26

So, apparently, the meleeswing lines don't seem to actually work with PerformSceneEx even though they are valid .wav files with their appropriate .vcd scene files correctly located and everything.

I even had a whole plugin written for it and everything

Spoiler


I even threw in an event hook for "infected_decapitated" because Ellis (and only Ellis) actually has some reaction lines for when he decapitates a common (ex "That zombie was too tall, I fixed 'im!") etc...
DeathChaos25 is offline
Sev
Veteran Member
Join Date: May 2010
Old 08-26-2014 , 22:15   Re: [L4D1&2] Scene Processor
Reply With Quote #27

That's a shame, but as the old saying goes...

You can't win them all.

This was one of the oldest issues with the game, the melee swing grunts. Perhaps its meant to be that everyone sounds like Coach when swinging a weapon.

For the sake of thoroughness. Here is a link to a plugin developed by the competitive L4D2 community that was said to utilize the L4D2 survivor melee grunt sounds. However I don't think it works either, since I tried it and never noticed any new sounds. Have a look at it if you wish.

https://github.com/Attano/Equilibriu...anipulation.sp

Last edited by Sev; 08-26-2014 at 22:54.
Sev is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 08-27-2014 , 05:58   Re: [L4D1&2] Scene Processor
Reply With Quote #28

Quote:
Originally Posted by Sev View Post
That's a shame, but as the old saying goes...

You can't win them all.

This was one of the oldest issues with the game, the melee swing grunts. Perhaps its meant to be that everyone sounds like Coach when swinging a weapon.

For the sake of thoroughness. Here is a link to a plugin developed by the competitive L4D2 community that was said to utilize the L4D2 survivor melee grunt sounds. However I don't think it works either, since I tried it and never noticed any new sounds. Have a look at it if you wish.

https://github.com/Attano/Equilibriu...anipulation.sp
Well, I initially though the .vcd might've been damaged, but,
Spoiler


Melee weapon spotted, vs, now a melee swing .vcd
Spoiler


Apart from the "namvet_gesture_head_yes" Everything seems completely fine here.

I think Valve's "fix" was probably just implementing a check to kill the .wavs or .vcds if they pop up, I'll play around with the other scenes some more to see what results...

Last edited by DeathChaos25; 08-27-2014 at 06:01.
DeathChaos25 is offline
id5473
Member
Join Date: Mar 2012
Old 08-27-2014 , 07:11   Re: [L4D1&2] Scene Processor
Reply With Quote #29

Quote:
Originally Posted by Sev View Post
That's a shame, but as the old saying goes...

You can't win them all.

This was one of the oldest issues with the game, the melee swing grunts. Perhaps its meant to be that everyone sounds like Coach when swinging a weapon.

For the sake of thoroughness. Here is a link to a plugin developed by the competitive L4D2 community that was said to utilize the L4D2 survivor melee grunt sounds. However I don't think it works either, since I tried it and never noticed any new sounds. Have a look at it if you wish.

https://github.com/Attano/Equilibriu...anipulation.sp
well i just glimpsed over the code.. isn't it only supposed to fire when a special infected is killed? so not all the time? doubt that would fix the issue. also.. the issue only exists with the axe.. (and possibly with the guitar too as its also dual wield and it's the same animation being used?)

btw sidenote:.. by posting the VCF file. you made me check one from nick and one from ellis.. and there i noticed, that all other male l4d2 survivors (coach & ellis) have as their first actor "Gambler" with no properties attached..
I wonder if that is the reason why nick is able to interrupt coach and ellis by vocalizing something...

Last edited by id5473; 08-27-2014 at 07:11.
id5473 is offline
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 08-27-2014 , 07:35   Re: [L4D1&2] Scene Processor
Reply With Quote #30

Quote:
Originally Posted by id5473 View Post
well i just glimpsed over the code.. isn't it only supposed to fire when a special infected is killed? so not all the time? doubt that would fix the issue. also.. the issue only exists with the axe.. (and possibly with the guitar too as its also dual wield and it's the same animation being used?)

btw sidenote:.. by posting the VCF file. you made me check one from nick and one from ellis.. and there i noticed, that all other male l4d2 survivors (coach & ellis) have as their first actor "Gambler" with no properties attached..
I wonder if that is the reason why nick is able to interrupt coach and ellis by vocalizing something...
Now that I think about it, that would explain why there was a bug where neither Ellis or Coach could vocalize when Nick was dead.

I'm not in any position to say this, but, wtf Valve, coding it that way makes no sense.
DeathChaos25 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 19:23.


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