Added support for respawns of map entities Started redoing hostages... they don't have any animations right now. Don't be surprised. Moved most/if-not-all CS specific entities into their own class files
35 lines
654 B
C++
Executable file
35 lines
654 B
C++
Executable file
/***
|
|
*
|
|
* Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved.
|
|
*
|
|
* See the file LICENSE attached with the sources for usage details.
|
|
*
|
|
****/
|
|
|
|
class func_bomb_target
|
|
{
|
|
void() func_bomb_target;
|
|
virtual void() touch;
|
|
};
|
|
|
|
void func_bomb_target::touch(void)
|
|
{
|
|
if (iBombPlanted == TRUE) {
|
|
return;
|
|
}
|
|
|
|
/* This will be cleared every frame inside SV_RunClientCommand */
|
|
if ((other.classname == "player") && (other.team == TEAM_T)) {
|
|
other.fInBombZone = TRUE;
|
|
}
|
|
}
|
|
|
|
void func_bomb_target::func_bomb_target(void)
|
|
{
|
|
angles = [0,0,0];
|
|
movetype = MOVETYPE_NONE;
|
|
solid = SOLID_TRIGGER;
|
|
setmodel(this, model);
|
|
model = 0;
|
|
iBombZones++;
|
|
}
|