mirror of
https://github.com/fortressforever/fortressforever-scripts.git
synced 2024-11-22 12:41:17 +00:00
Merge pull request #56 from fortressforever/ffa-respawn-turret
Add FFA support to base_respawnturret
This commit is contained in:
commit
67e2372743
1 changed files with 4 additions and 2 deletions
|
@ -19,8 +19,10 @@ base_respawnturret = baseclass:new({ team = Team.kUnassigned })
|
||||||
-- if team1 is the same as team2
|
-- if team1 is the same as team2
|
||||||
|
|
||||||
function base_respawnturret:validtarget( target_entity )
|
function base_respawnturret:validtarget( target_entity )
|
||||||
--local entity = GetEntity(ent_id)
|
if self.team == target_entity:GetTeamId() and GetTeam(self.team):IsFFA() then
|
||||||
return (AreTeamsAllied(self.team, target_entity:GetTeamId()) == false)
|
return false
|
||||||
|
end
|
||||||
|
return not AreTeamsAllied(self.team, target_entity:GetTeamId())
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Turrets, by default, have a 2 second delay after they
|
-- Turrets, by default, have a 2 second delay after they
|
||||||
|
|
Loading…
Reference in a new issue