2021-03-08 03:08:54 -08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016-2020 Marco Hladik <marco@icculus.org>
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
|
|
|
|
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
=================
|
|
|
|
ClientGame_Init
|
|
|
|
|
|
|
|
Comparable to worldspawn in SSQC in that it's mostly used for precaches
|
|
|
|
=================
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
ClientGame_Init(float apilevel, string enginename, float engineversion)
|
|
|
|
{
|
|
|
|
Obituary_Init();
|
|
|
|
}
|
|
|
|
|
2021-05-24 03:46:39 -07:00
|
|
|
void VGUI_ChooseTeam(void);
|
2021-03-08 03:08:54 -08:00
|
|
|
void
|
|
|
|
ClientGame_InitDone(void)
|
|
|
|
{
|
2021-05-24 03:46:39 -07:00
|
|
|
VGUI_ChooseTeam();
|
2021-03-08 03:08:54 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ClientGame_RendererRestart(string rstr)
|
|
|
|
{
|
|
|
|
Obituary_Precache();
|
|
|
|
|
|
|
|
FX_Blood_Init();
|
|
|
|
FX_BreakModel_Init();
|
|
|
|
FX_Explosion_Init();
|
|
|
|
FX_GibHuman_Init();
|
|
|
|
FX_Spark_Init();
|
|
|
|
FX_Impact_Init();
|
|
|
|
|
|
|
|
precache_model("sprites/640hud1.spr");
|
|
|
|
precache_model("sprites/640hud2.spr");
|
|
|
|
precache_model("sprites/640hud3.spr");
|
|
|
|
precache_model("sprites/640hud4.spr");
|
|
|
|
precache_model("sprites/640hud5.spr");
|
|
|
|
precache_model("sprites/640hud6.spr");
|
|
|
|
|
|
|
|
precache_model("sprites/tfc_dmsg.spr");
|
|
|
|
precache_model("sprites/tfchud01.spr");
|
|
|
|
precache_model("sprites/tfchud02.spr");
|
|
|
|
precache_model("sprites/tfchud03.spr");
|
|
|
|
precache_model("sprites/tfchud04.spr");
|
|
|
|
precache_model("sprites/tfchud05.spr");
|
|
|
|
precache_model("sprites/tfchud06.spr");
|
|
|
|
precache_model("sprites/tfchud07.spr");
|
2021-10-06 13:02:18 -07:00
|
|
|
|
|
|
|
/* there's also muzzleflash.spr, but that's just MUZZLE_SMALL again */
|
|
|
|
MUZZLE_RIFLE = (int)getmodelindex("sprites/muzzleflash1.spr");
|
|
|
|
MUZZLE_SMALL = (int)getmodelindex("sprites/muzzleflash2.spr");
|
|
|
|
MUZZLE_WEIRD = (int)getmodelindex("sprites/muzzleflash3.spr");
|
2021-03-08 03:08:54 -08:00
|
|
|
}
|