it’s so great to see a modding community for RtCW is still active. After playing the game for ages I finally decided to try out GTK Radiant myself. Running v1.4 as I had some issues with the later versions in Windows 10.
I’ve just been playing around with simple test maps so far, trying out the various features. Right now I’m trying to figure out how to play a custom sound via a script.
I placed a .wav file in <base>\Main\sound\my_sound.wav (the sound directory wasn’t there so I created it).
Then, for my map, called testmap, I set up a testmap.ai file in the maps directory.
In the map there’s a target_script_trigger with a “target” value of “play_custom_sound”, and an “ainame” with value “player”. That target_script_trigger is linked to a trigger_multiple brush.
As soon as I walk up to it, the game crashes immediately.
I tried using some other command, e.g. “changelevel escape1 persistant” instead of “playsound”, and it works just fine.
Do the wav files need to be in a specific format? I’m clueless as to what’s wrong here. Are there log files I can look at that contain information about the last crash?
Thanks in advance,
Hello, Marty, and welcome to Rtcw SP mapping. You say that it’s great to see an active modding community, and while I agree with that, I also say that it’s great to see another person who is interested in mapping for this amazing game.
Regarding your problem, you could try the suggestion that WuTangH posted, but I personally use a target_relay, which is connected to a target_speaker, and then I call the target_relay via the AI script. It’s simple but effective.
By the way, you can find more community members here, which know more about Rtcw SP mapping: http://wolfmap.ru/forum/index.php?sid=733b1ec7624761dcab5b8a9f480180b6
This forum is in the Russian language, but an English option is available to those who register there. I’ve been at this forum since 2011, so I highly recommend it, especially if you want to get into Rtcw SP mapping.
One more thing: I highly recommend Gtk Radiant 1.2.11 for Rtcw SP mapping, as the newer versions of Gtk Radiant rely only on Q3map2, which has the nasty “shader overflow bug”, which you’ll see eventually if you create large/detailed maps. For MP mapping, the newer versions are fine, but for SP mapping, I would go with this old version. You can download it here: https://icculus.org/gtkradiant/downloads/1.2/