コード例 #1
0
ファイル: g_target.c プロジェクト: ZwS/qudos
void
use_target_explosion(edict_t * self, edict_t * other, edict_t * activator)
{
	self->activator = activator;

	if (!self->delay) {
		target_explosion_explode(self);
		return;
	}
	self->think = target_explosion_explode;
	self->nextthink = level.time + self->delay;
}
コード例 #2
0
ファイル: g_target.c プロジェクト: AndreyNazarov/opentdm
void use_target_explosion (edict_t *self, edict_t *other, edict_t *activator)
{
	self->activator = activator;

	if (!self->delay)
	{
		target_explosion_explode (self);
		return;
	}

	self->think = target_explosion_explode;
	self->nextthink = level.framenum + SECS_TO_FRAMES(self->delay);
}