- RR: use a meta property for the gambling machine's sound.

This is mainly for the hypothetical map that tries to use this thing from within CON.
This commit is contained in:
Christoph Oelckers 2023-01-08 15:45:22 +01:00
parent b432e94a72
commit 278cfe9216

View file

@ -9,14 +9,12 @@ class RedneckGamblingMachine : DukeActor
extra 0; extra 0;
spriteset "GAMBLINGMACHINE2", "GAMBLINGMACHINE3", "GAMBLINGMACHINE4", "GAMBLINGMACHINE5", "GAMBLINGMACHINE6", "GAMBLINGMACHINE7", "GAMBLINGMACHINE8", "GAMBLINGMACHINEBROKE"; spriteset "GAMBLINGMACHINE2", "GAMBLINGMACHINE3", "GAMBLINGMACHINE4", "GAMBLINGMACHINE5", "GAMBLINGMACHINE6", "GAMBLINGMACHINE7", "GAMBLINGMACHINE8", "GAMBLINGMACHINEBROKE";
spritesetindex 3; spritesetindex 3;
RedneckGamblingMachine.winsound "COW3";
} }
Sound winsound; meta Sound winsound;
property winsound: winsound;
override void Initialize()
{
winsound = "COW3";
}
override void Tick() override void Tick()
{ {
@ -123,10 +121,6 @@ class RedneckGamblingMachine2 : RedneckGamblingMachine
default default
{ {
spriteset "GAMBLINGMACHINE2_2", "GAMBLINGMACHINE2_3", "GAMBLINGMACHINE2_4", "GAMBLINGMACHINE2_5", "GAMBLINGMACHINE2_6", "GAMBLINGMACHINE2_7", "GAMBLINGMACHINE2_8", "GAMBLINGMACHINE2_BROKE"; spriteset "GAMBLINGMACHINE2_2", "GAMBLINGMACHINE2_3", "GAMBLINGMACHINE2_4", "GAMBLINGMACHINE2_5", "GAMBLINGMACHINE2_6", "GAMBLINGMACHINE2_7", "GAMBLINGMACHINE2_8", "GAMBLINGMACHINE2_BROKE";
} RedneckGamblingMachine.winsound "VX_TPIN2";
override void Initialize()
{
winsound = "VX_TPIN2";
} }
} }