]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also show a waypoint when attacking an enemy
authorMario <mario.mario@y7mail.com>
Fri, 8 Feb 2013 00:59:41 +0000 (11:59 +1100)
committerMario <mario.mario@y7mail.com>
Fri, 8 Feb 2013 00:59:41 +0000 (11:59 +1100)
qcsrc/server/mutators/gamemode_rts.qc

index 5763b2e2cdfe0271572dc26623b791e389ea537b..2e57b0768e83814e890929780532a8d83a6ae202 100644 (file)
@@ -165,6 +165,8 @@ MUTATOR_HOOKFUNCTION(rts_PlayerThink)
                        
                        if(e)
                        {
+                               float sheight = ((e.sprite_height) ? e.sprite_height : 80);
+                               WaypointSprite_Spawn("Attacking", 1, 0, e, '0 0 1' * sheight, world, self.team, wp, sprite, FALSE, RADARICON_DANGER, ((teamplay) ? TeamColor(self.team) : '1 0 0'));
                                head.goalentity = world;
                                head.enemy = e;
                        }