62 lines
1.7 KiB
C++
62 lines
1.7 KiB
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
float(entity foo, float chanid) getchannellevel = #0;
|
|
|
|
|
|
/*
|
|
=================
|
|
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();
|
|
}
|
|
|
|
void
|
|
ClientGame_InitDone(void)
|
|
{
|
|
}
|
|
|
|
void
|
|
ClientGame_RendererRestart(string rstr)
|
|
{
|
|
Nightvision_Init();
|
|
Obituary_Precache();
|
|
|
|
FX_Blood_Init();
|
|
FX_BreakModel_Init();
|
|
FX_Explosion_Init();
|
|
FX_GibHuman_Init();
|
|
FX_Spark_Init();
|
|
FX_Impact_Init();
|
|
|
|
precache_model("sprites/640hudof01.spr");
|
|
precache_model("sprites/640hudof02.spr");
|
|
precache_model("sprites/640hudof03.spr");
|
|
precache_model("sprites/640hudof04.spr");
|
|
precache_model("sprites/640hudof05.spr");
|
|
precache_model("sprites/640hudof06.spr");
|
|
precache_model("sprites/ofch1.spr");
|
|
precache_model("sprites/ofch2.spr");
|
|
precache_model("sprites/320hudof01.spr");
|
|
|
|
BEAM_TRIPMINE = particleeffectnum("weapon_tripmine.beam");
|
|
}
|