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

precache model2

From Quake Wiki

string precache_model2(string modelPath)

Usage[edit]

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

Parameters[edit]

  • modelPath
The path to the model file to set. Can be a model (.mdl), sprite (.spr) or BSP (.bsp).

Return[edit]

The passed model file path. Does nothing.

Example[edit]

// Precache a model in the monster's initialization function
void monster_my_monster()
{
    precache_model2("progs/mymonster.mdl");

    // ...
}