Added switch sound.
This commit is contained in:
parent
991d8a5fd1
commit
2949c4ac75
@ -1,2 +1,3 @@
|
|||||||
kiri/gretchencounter_click "sounds/kirigretchencounter_click.ogg"
|
kiri/gretchencounter_click "sounds/kirigretchencounter_click.ogg"
|
||||||
kiri/gretchencounter_blip "sounds/kirigretchencounter_blip.ogg"
|
kiri/gretchencounter_blip "sounds/kirigretchencounter_blip.ogg"
|
||||||
|
kiri/gretchencounter_onoff "sounds/kirigretchencounter_onoff.ogg"
|
||||||
|
BIN
sounds/kirigretchencounter_onoff.ogg
Normal file
BIN
sounds/kirigretchencounter_onoff.ogg
Normal file
Binary file not shown.
@ -7,6 +7,7 @@ all : \
|
|||||||
../sprites/bright_kgcmb0.png \
|
../sprites/bright_kgcmb0.png \
|
||||||
../sounds/kirigretchencounter_click.ogg \
|
../sounds/kirigretchencounter_click.ogg \
|
||||||
../sounds/kirigretchencounter_blip.ogg \
|
../sounds/kirigretchencounter_blip.ogg \
|
||||||
|
../sounds/kirigretchencounter_onoff.ogg \
|
||||||
../sprites/kgcpa0.png \
|
../sprites/kgcpa0.png \
|
||||||
../sprites/kgcpb0.png \
|
../sprites/kgcpb0.png \
|
||||||
../sprites/bright_kgcpa0.png \
|
../sprites/bright_kgcpa0.png \
|
||||||
@ -85,3 +86,6 @@ all : \
|
|||||||
|
|
||||||
../sounds/kirigretchencounter_blip.ogg : kirigretchencounter_blip.wav
|
../sounds/kirigretchencounter_blip.ogg : kirigretchencounter_blip.wav
|
||||||
ffmpeg -i $^ "-filter:a" "volume=1.0" $@
|
ffmpeg -i $^ "-filter:a" "volume=1.0" $@
|
||||||
|
|
||||||
|
../sounds/kirigretchencounter_onoff.ogg : on_off_switch.wav
|
||||||
|
ffmpeg -i $^ "-filter:a" "volume=1.0" $@
|
||||||
|
BIN
source_data/on_off_switch.aup3
Normal file
BIN
source_data/on_off_switch.aup3
Normal file
Binary file not shown.
BIN
source_data/on_off_switch.wav
Normal file
BIN
source_data/on_off_switch.wav
Normal file
Binary file not shown.
@ -86,8 +86,7 @@ class GretchenCounter : HDWeapon
|
|||||||
|
|
||||||
KGCM # 1 {
|
KGCM # 1 {
|
||||||
invoker.onSwitch = !invoker.onSwitch;
|
invoker.onSwitch = !invoker.onSwitch;
|
||||||
console.printf("onswitch: %d", int(invoker.onSwitch));
|
A_PlaySound("kiri/gretchencounter_onoff");
|
||||||
// TODO: Play sound.
|
|
||||||
updateOverlay();
|
updateOverlay();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,8 +149,7 @@ class GretchenCounter : HDWeapon
|
|||||||
// Scale distance.
|
// Scale distance.
|
||||||
dist *= distance_scale;
|
dist *= distance_scale;
|
||||||
|
|
||||||
|
// Apply inverse-square falloff.
|
||||||
// console.printf("%s", type_name);
|
|
||||||
totalReading += 1.0 / (dist * dist);
|
totalReading += 1.0 / (dist * dist);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,8 +170,6 @@ class GretchenCounter : HDWeapon
|
|||||||
referenceActor = self;
|
referenceActor = self;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.printf("kjsdcsjkdcnsdjkcnsdkjcnsdc, %d", int(onSwitch));
|
|
||||||
|
|
||||||
// ThinkerIterator iter = ThinkerIterator.Create("BFGNecroShard");
|
// ThinkerIterator iter = ThinkerIterator.Create("BFGNecroShard");
|
||||||
// Actor mo;
|
// Actor mo;
|
||||||
// int shardCount = 0;
|
// int shardCount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user