- move the recon's FTA sound into the scripted actor.

This commit is contained in:
Christoph Oelckers 2022-12-14 14:42:34 +01:00
parent ef54987a58
commit 1bc7c53351
2 changed files with 9 additions and 3 deletions

View file

@ -54,9 +54,6 @@ void check_fta_sounds_d(DDukeActor* actor)
{ {
if (actor->spr.extra > 0) switch (actor->spr.picnum) if (actor->spr.extra > 0) switch (actor->spr.picnum)
{ {
case DTILE_RECON:
S_PlayActorSound(RECO_RECOG, actor);
break;
case DTILE_DRONE: case DTILE_DRONE:
S_PlayActorSound(DRON_RECOG, actor); S_PlayActorSound(DRON_RECOG, actor);
break; break;

View file

@ -209,6 +209,11 @@ class DukeRecon : DukeActor
t.SetSpritePic(self, abs(self.temp_data[3]) > 64); t.SetSpritePic(self, abs(self.temp_data[3]) > 64);
return true; return true;
} }
override void PlayFTASound()
{
self.PlayActorSound("RECO_RECOG");
}
} }
@ -242,6 +247,10 @@ class RedneckUFO1 : DukeRecon
{ {
return true; return true;
} }
override void PlayFTASound()
{
}
} }
class RedneckUFO2 : RedneckUFO1 class RedneckUFO2 : RedneckUFO1