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