Danukem, on 04 July 2025 - 11:12 AM, said:
Keep the sound files separate and add them as new sounds just like the other sounds in USER.CON (also give them new numbers in DEFS.CON). To play a random sound you can use ifrnd 84 soundonce SOUND else ifrnd 128 soundonce SOUND2 else soundonce SOUND3 (that would be for 3 possible sounds). For >3 possible sounds I typically pick them by randomizing a var and then picking one with a switch statement
So I did a bit of testing and troubleshooting with the help of the eduke32 discord. The general consensus is that there might be some weird hard-coded things going on.
No matter what I put in the code for GAME.CON, interacting with the babe will only play killme.ogg (to clarify I've been editing the official .con file in the World Tour steam directory). The following blocks of code both play killme.ogg:
{
state randgetweapsnds
spawn TRANSPORTERSTAR
sound TELEPORTER
killit
}
ends
---------------------------
{
soundonce RESCUE2
spawn TRANSPORTERSTAR
sound TELEPORTER
killit
}
ends
---------------------------
I gave up and settled on using
{
state randgetweapsnds
spawn TRANSPORTERSTAR
sound TELEPORTER
killit
}
with an edited killme.ogg that has 1.5 sec of silence at the start to not talk over Duke's random get-weapon line. So now when interacting with a babe, I get a random Duke weapon voiceline, teleport animation and sound, babe disappears and I hear the rescue lines from Manhattan Project. I might make another attempt at adding lines when I regain the will to try.