2016-12-01 17:50:48 +00:00
|
|
|
/*
|
|
|
|
OpenCS Project
|
|
|
|
Copyright (C) 2015 Marco "eukara" Hladik
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2016-12-04 14:04:30 +00:00
|
|
|
/*
|
|
|
|
=================
|
|
|
|
CSQC_Init
|
|
|
|
|
|
|
|
Comparable to worldspawn in SSQC in that it's mostly used for precaches
|
|
|
|
=================
|
|
|
|
*/
|
2016-12-01 17:50:48 +00:00
|
|
|
void CSQC_Init(float apilevel, string enginename, float engineversion) {
|
|
|
|
precache_model( HUD_NUMFILE );
|
2016-12-17 12:55:18 +00:00
|
|
|
precache_model( "sprites/radar640.spr" );
|
2016-12-09 23:03:13 +00:00
|
|
|
precache_model( "sprites/640hud1.spr" );
|
|
|
|
precache_model( "sprites/640hud16.spr" );
|
2016-12-01 17:50:48 +00:00
|
|
|
|
2016-12-11 13:17:00 +00:00
|
|
|
precache_model( "sprites/640hud2.spr" );
|
|
|
|
precache_model( "sprites/640hud10.spr" );
|
|
|
|
precache_model( "sprites/640hud12.spr" );
|
|
|
|
precache_model( "sprites/640hud14.spr" );
|
|
|
|
precache_model( "sprites/640hud3.spr" );
|
|
|
|
|
|
|
|
precache_sound( "common/wpn_hudon.wav" );
|
|
|
|
precache_sound( "common/wpn_hudoff.wav" );
|
|
|
|
precache_sound( "common/wpn_moveselect.wav" );
|
|
|
|
precache_sound( "common/wpn_select.wav" );
|
|
|
|
|
2016-12-01 17:50:48 +00:00
|
|
|
for( int i = 0; i < CS_WEAPON_COUNT; i++ ) {
|
|
|
|
precache_model( sViewModels[ i ] );
|
|
|
|
}
|
|
|
|
|
2017-01-07 16:29:27 +00:00
|
|
|
PARTICLE_SPARK = particleeffectnum( "part_spark" );
|
|
|
|
PARTICLE_PIECES_BLACK = particleeffectnum( "part_pieces_black" );
|
|
|
|
PARTICLE_SMOKE_GREY = particleeffectnum( "part_smoke_grey" );
|
|
|
|
PARTICLE_SMOKE_BROWN = particleeffectnum( "part_smoke_brown" );
|
|
|
|
PARTICLE_BLOOD = particleeffectnum( "part_blood" );
|
|
|
|
|
2016-12-07 19:38:26 +00:00
|
|
|
Radio_InitSounds();
|
|
|
|
|
2016-12-01 17:50:48 +00:00
|
|
|
CSQC_ConsoleCommand_Init();
|
|
|
|
CSQC_VGUI_Init();
|
|
|
|
}
|
|
|
|
|
2016-12-04 14:04:30 +00:00
|
|
|
/*
|
|
|
|
=================
|
|
|
|
CSQC_WorldLoaded
|
|
|
|
|
|
|
|
Whenever the world is fully initialized...
|
|
|
|
=================
|
|
|
|
*/
|
2016-12-01 17:50:48 +00:00
|
|
|
void CSQC_WorldLoaded( void ) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-12-04 14:04:30 +00:00
|
|
|
/*
|
|
|
|
=================
|
|
|
|
CSQC_Shutdown
|
|
|
|
|
|
|
|
Incase you need to free something
|
|
|
|
=================
|
|
|
|
*/
|
2016-12-01 17:50:48 +00:00
|
|
|
void CSQC_Shutdown( void ) {
|
|
|
|
|
|
|
|
}
|