Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

precache sound2

From Quake Wiki

string precache_sound2(string soundPath)

Usage[edit]

The same as precache_sound. This was only used for sounds in the registered version of Quake. Using precache_sound() is preferred.

Parameters[edit]

  • soundPath
The path of the sound file. Supports WAV (.wav) files.

Return[edit]

The passed sound file path. Does nothing.

Example[edit]

// Precache a sound in the monster's initialization function for use later
void monster_my_monster()
{
    precache_sound2("mymonster/missile.wav");

    // ...
}