Esempio n. 1
0
void target_kill_use(gentity_t *self, gentity_t *other, gentity_t *activator)
{
	if (self->spawnflags & 1)      // kill usertoo
	{
		G_Damage(activator, NULL, NULL, NULL, NULL, 100000, DAMAGE_NO_PROTECTION, MOD_TELEFRAG);
	}

	G_KillEnts(self->target, activator, self, MOD_UNKNOWN);
}
Esempio n. 2
0
void target_kill_use(gentity_t *self, gentity_t *other, gentity_t *activator) {
	// Nico, silent GCC
	(void)other;

	// Nico, if kill triggers are enabled, kill activator (=player) too
	if (g_enableMapEntities.integer & MAP_FORCE_KILL_ENTITIES || self->spawnflags & 1) {  // kill usertoo
		G_Damage(activator, NULL, NULL, NULL, NULL, 100000, DAMAGE_NO_PROTECTION, MOD_TELEFRAG);
	}

	G_KillEnts(self->target, activator, self);
}