2019-01-16 20:18:28 +00:00
|
|
|
/***
|
|
|
|
*
|
|
|
|
* Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved.
|
|
|
|
*
|
|
|
|
* See the file LICENSE attached with the sources for usage details.
|
|
|
|
*
|
|
|
|
****/
|
2016-12-01 17:50:48 +00:00
|
|
|
|
2016-12-04 14:04:30 +00:00
|
|
|
/*
|
|
|
|
=================
|
2019-01-21 02:00:14 +00:00
|
|
|
Client_Init
|
2016-12-04 14:04:30 +00:00
|
|
|
|
|
|
|
Comparable to worldspawn in SSQC in that it's mostly used for precaches
|
|
|
|
=================
|
|
|
|
*/
|
2019-01-21 02:00:14 +00:00
|
|
|
void Client_Init(float apilevel, string enginename, float engineversion)
|
|
|
|
{
|
2018-12-09 04:56:34 +00:00
|
|
|
precache_model("sprites/fexplo.spr");
|
|
|
|
precache_model("sprites/muzzleflash1.spr");
|
|
|
|
precache_sound("player/pl_pain2.wav");
|
2018-12-09 05:27:50 +00:00
|
|
|
|
2018-12-09 04:56:34 +00:00
|
|
|
precache_model("sprites/iplayerred.spr");
|
|
|
|
precache_model("sprites/iplayerblue.spr");
|
|
|
|
precache_model("sprites/iplayervip.spr");
|
|
|
|
precache_model("sprites/ihostage.spr");
|
|
|
|
|
|
|
|
precache_model("models/pshell.mdl");
|
|
|
|
precache_model("models/rshell.mdl");
|
|
|
|
precache_model("models/rshell_big.mdl");
|
|
|
|
precache_model("models/shotgunshell.mdl");
|
2017-11-20 02:03:30 +00:00
|
|
|
precache_pic( sprintf( "overviews/%s.bmp", mapname ) );
|
2017-03-04 20:08:59 +00:00
|
|
|
|
2019-08-03 17:40:34 +00:00
|
|
|
PARTICLE_SMOKEGRENADE = particleeffectnum("smokegren");
|
2017-01-08 14:11:34 +00:00
|
|
|
|
2016-12-07 19:38:26 +00:00
|
|
|
Radio_InitSounds();
|
2016-12-01 17:50:48 +00:00
|
|
|
CSQC_ConsoleCommand_Init();
|
2017-11-20 02:03:30 +00:00
|
|
|
Overview_Init();
|
2019-08-03 17:40:34 +00:00
|
|
|
|
2017-11-20 02:03:30 +00:00
|
|
|
pSeat.iOverview = FALSE;
|
2016-12-01 17:50:48 +00:00
|
|
|
}
|
|
|
|
|
2019-08-10 21:37:56 +00:00
|
|
|
void Client_InitDone(void)
|
|
|
|
{
|
|
|
|
VGUI_ChooseTeam();
|
|
|
|
}
|
|
|
|
|
2019-03-14 19:13:02 +00:00
|
|
|
void Game_RendererRestarted(string rstr)
|
2019-01-21 02:00:14 +00:00
|
|
|
{
|
2017-11-20 17:16:42 +00:00
|
|
|
Overview_Init();
|
|
|
|
}
|