Add difficulty levels to nod06a
This commit is contained in:
committed by
Matthias Mailänder
parent
cf944ae9f1
commit
9de1fe40a5
@@ -6,8 +6,20 @@
|
|||||||
the License, or (at your option) any later version. For more
|
the License, or (at your option) any later version. For more
|
||||||
information, see COPYING.
|
information, see COPYING.
|
||||||
]]
|
]]
|
||||||
NodStartUnitsRight = { 'ltnk', 'bike', 'e1', 'e1', 'e3', 'e3' }
|
NodStartUnitsRight =
|
||||||
NodStartUnitsLeft = { 'ltnk', 'ltnk', 'bggy', 'e1', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3', 'e3' }
|
{
|
||||||
|
tough = { 'ltnk', 'bike', 'e1', 'e1', 'e3', 'e3' },
|
||||||
|
hard = { 'ltnk', 'bike', 'e1', 'e1', 'e3', 'e3', 'e3' },
|
||||||
|
normal = { 'ltnk', 'bike', 'bike', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3', 'e3' },
|
||||||
|
easy = { 'ltnk', 'ltnk', 'bike', 'bike', 'e1', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3', 'e3' }
|
||||||
|
}
|
||||||
|
NodStartUnitsLeft =
|
||||||
|
{
|
||||||
|
tough = { 'ltnk', 'ltnk', 'bggy', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3' },
|
||||||
|
hard = { 'ltnk', 'ltnk', 'bggy', 'e1', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3' },
|
||||||
|
normal = { 'ltnk', 'ltnk', 'bggy', 'bggy', 'e1', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3', 'e3', 'e3' },
|
||||||
|
easy = { 'ltnk', 'ltnk', 'ltnk', 'bggy', 'e1', 'e1', 'e1', 'e1', 'e1', 'e1', 'e3', 'e3', 'e3', 'e3', 'e3' }
|
||||||
|
}
|
||||||
Chn1Units = { 'e1', 'e1', 'e1', 'e1', 'e1' }
|
Chn1Units = { 'e1', 'e1', 'e1', 'e1', 'e1' }
|
||||||
Chn2Units = { 'e2', 'e2', 'e2', 'e2', 'e2' }
|
Chn2Units = { 'e2', 'e2', 'e2', 'e2', 'e2' }
|
||||||
Obj2Units = { 'ltnk', 'bike', 'e1', 'e1', 'e1' }
|
Obj2Units = { 'ltnk', 'bike', 'e1', 'e1', 'e1' }
|
||||||
@@ -120,6 +132,10 @@ MovementAndHunt = function(unit, waypoints)
|
|||||||
end
|
end
|
||||||
|
|
||||||
InsertNodUnits = function()
|
InsertNodUnits = function()
|
||||||
|
local difficulty = Map.LobbyOption("difficulty")
|
||||||
|
NodStartUnitsRight = NodStartUnitsRight[difficulty]
|
||||||
|
NodStartUnitsLeft = NodStartUnitsLeft[difficulty]
|
||||||
|
|
||||||
Camera.Position = UnitsRallyRight.CenterPosition
|
Camera.Position = UnitsRallyRight.CenterPosition
|
||||||
|
|
||||||
Media.PlaySpeechNotification(player, "Reinforce")
|
Media.PlaySpeechNotification(player, "Reinforce")
|
||||||
@@ -168,7 +184,7 @@ WorldLoaded = function()
|
|||||||
|
|
||||||
OnAnyDamaged(Atk2ActorTriggerActivator, Atk2TriggerFunction)
|
OnAnyDamaged(Atk2ActorTriggerActivator, Atk2TriggerFunction)
|
||||||
|
|
||||||
if Map.LobbyOption("difficulty") == "hard" then
|
if Map.LobbyOption("difficulty") == "tough" then
|
||||||
Trigger.OnDamaged(Atk3Activator, Atk3TriggerFunction)
|
Trigger.OnDamaged(Atk3Activator, Atk3TriggerFunction)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,10 @@ World:
|
|||||||
ID: difficulty
|
ID: difficulty
|
||||||
Label: Difficulty
|
Label: Difficulty
|
||||||
Values:
|
Values:
|
||||||
|
easy: Easy
|
||||||
normal: Normal
|
normal: Normal
|
||||||
hard: Hard
|
hard: Hard
|
||||||
|
tough: Real tough guy
|
||||||
Default: normal
|
Default: normal
|
||||||
|
|
||||||
Player:
|
Player:
|
||||||
|
|||||||
Reference in New Issue
Block a user