]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/triggers/target/kill.qc
Merge branch 'master' into Mario/target_teleporter_v2
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / target / kill.qc
1 #include "kill.qh"
2 #include "location.qh"
3 #ifdef SVQC
4
5 void target_kill_use(entity this, entity actor, entity trigger)
6 {
7         if(actor.takedamage == DAMAGE_NO)
8                 return;
9
10         if(!actor.iscreature && !actor.damagedbytriggers)
11                 return;
12
13         Damage(actor, this, trigger, 1000, DEATH_HURTTRIGGER.m_id, actor.origin, '0 0 0');
14 }
15
16 spawnfunc(target_kill)
17 {
18     this.classname = "target_kill";
19
20     if (this.message == "")
21                 this.message = "was in the wrong place";
22
23     this.use = target_kill_use;
24 }
25
26 #endif