]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/turrets/turret.qh
Turrets: make plasma turrets use weapons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / turret.qh
index 17cf20c7387e935d26fc4e3b9a9140ac6941d2b6..a2c934277c280a5d6db959f945b09faa837f0220 100644 (file)
@@ -169,8 +169,8 @@ const int TR_DEATH = 3; // (SERVER) called when turret dies
 .bool(Turret) tr_death;
 const int TR_PRECACHE = 4; // (BOTH) precaches models/sounds used by this turret
 .bool(Turret) tr_precache;
-const int TR_ATTACK = 5; // (SERVER) called when turret attacks
-.bool(Turret) tr_attack;
+/** (SERVER) called when turret attacks */
+.void(Turret) tr_attack;
 const int TR_CONFIG = 6; // (ALL)
 .bool(Turret) tr_config;
 
@@ -180,7 +180,6 @@ bool t_new(Turret this, int req)
     if (req == TR_THINK) return this.tr_think ? this.tr_think(this) : false;
     if (req == TR_DEATH) return this.tr_death ? this.tr_death(this) : false;
     if (req == TR_PRECACHE) return this.tr_precache ? this.tr_precache(this) : false;
-    if (req == TR_ATTACK) return this.tr_attack ? this.tr_attack(this) : false;
     if (req == TR_CONFIG) return this.tr_config ? this.tr_config(this) : false;
     return false;
 }