mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Goal
This commit is contained in:
parent
310ba9bb8a
commit
b1e99dc317
@ -284,7 +284,7 @@ do -- TASK_CAPTURE_DISPATCHER
|
|||||||
end
|
end
|
||||||
|
|
||||||
function CaptureZone.Task.OnEnterSuccess( Task, From, Event, To )
|
function CaptureZone.Task.OnEnterSuccess( Task, From, Event, To )
|
||||||
self:Success( Task )
|
--self:Success( Task )
|
||||||
if self.AI_A2G_Dispatcher then
|
if self.AI_A2G_Dispatcher then
|
||||||
self.AI_A2G_Dispatcher:Lock( Task.TaskZoneName ) -- This will lock the zone from being defended by AI.
|
self.AI_A2G_Dispatcher:Lock( Task.TaskZoneName ) -- This will lock the zone from being defended by AI.
|
||||||
end
|
end
|
||||||
|
|||||||
@ -213,6 +213,8 @@ do -- TASK_CAPTURE_ZONE
|
|||||||
|
|
||||||
self:UpdateTaskInfo( true )
|
self:UpdateTaskInfo( true )
|
||||||
|
|
||||||
|
self:SetGoalTotal( 1 )
|
||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -261,6 +263,7 @@ do -- TASK_CAPTURE_ZONE
|
|||||||
Scoring:_AddMissionGoalScore( self.Mission, PlayerName, "Zone " .. self.ZoneGoal:GetZoneName() .." captured", PlayerContribution * 200 / TotalContributions )
|
Scoring:_AddMissionGoalScore( self.Mission, PlayerName, "Zone " .. self.ZoneGoal:GetZoneName() .." captured", PlayerContribution * 200 / TotalContributions )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
self:AddProgress( PlayerName, "Zone " .. self.ZoneGoal:GetZoneName() .." captured", timer.getTime() , 1 )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user