nuclide/Source/Server/func_bomb_target.cpp
Marco Hladik 4621358ffd Added custom GLSL with support for the new gl_fake16bit, gl_affinemodels
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
2019-01-05 02:02:12 +01:00

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++;
}