Add a per-player handicap option to the lobby.
Handicaps reduce unit health, firepower, and build speed.
This commit is contained in:
@@ -35,6 +35,13 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Text: Team
|
||||
Align: Center
|
||||
Font: Bold
|
||||
Label@HANDICAP:
|
||||
X: 491
|
||||
Width: 75
|
||||
Height: 25
|
||||
Text: Handicap
|
||||
Align: Center
|
||||
Font: Bold
|
||||
Label@SPAWN:
|
||||
X: 571
|
||||
Width: 50
|
||||
@@ -142,6 +149,13 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Width: 50
|
||||
Height: 25
|
||||
Font: Regular
|
||||
DropDownButton@HANDICAP_DROPDOWN:
|
||||
X: 491
|
||||
Width: 75
|
||||
Height: 25
|
||||
Font: Regular
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipText: A handicap decreases the combat effectiveness of the player's forces
|
||||
DropDownButton@SPAWN_DROPDOWN:
|
||||
X: 571
|
||||
Width: 50
|
||||
@@ -252,6 +266,18 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Height: 25
|
||||
Font: Regular
|
||||
Visible: false
|
||||
Label@HANDICAP:
|
||||
X: 491
|
||||
Width: 50
|
||||
Height: 25
|
||||
Align: Center
|
||||
DropDownButton@HANDICAP_DROPDOWN:
|
||||
X: 491
|
||||
Width: 75
|
||||
Height: 25
|
||||
Font: Regular
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipText: A handicap decreases the combat effectiveness of the player's forces
|
||||
Label@SPAWN:
|
||||
X: 571
|
||||
Width: 25
|
||||
|
||||
@@ -187,6 +187,11 @@
|
||||
AttackMove:
|
||||
AssaultMoveCondition: assault-move
|
||||
|
||||
^PlayerHandicaps:
|
||||
HandicapFirepowerMultiplier:
|
||||
HandicapDamageMultiplier:
|
||||
HandicapProductionTimeMultiplier:
|
||||
|
||||
^AcceptsCloakCrate:
|
||||
Cloak:
|
||||
InitialDelay: 15
|
||||
@@ -224,6 +229,7 @@
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@3: ^ClassicFacingSpriteActor
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -269,6 +275,7 @@
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@3: ^ClassicFacingSpriteActor
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -323,6 +330,7 @@
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@3: ^SpriteActor
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -492,6 +500,7 @@
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -546,6 +555,7 @@
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
Health:
|
||||
HP: 40000
|
||||
@@ -601,6 +611,7 @@
|
||||
^Plane:
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@2: ^ClassicFacingSpriteActor
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -626,6 +637,7 @@
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@3: ^SpriteActor
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -653,6 +665,7 @@
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@shape: ^1x1Shape
|
||||
Inherits@selection: ^SelectableBuilding
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
|
||||
@@ -35,6 +35,13 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Text: Team
|
||||
Align: Center
|
||||
Font: Bold
|
||||
Label@LABEL_LOBBY_HANDICAP:
|
||||
X: 478
|
||||
Width: 72
|
||||
Height: 25
|
||||
Text: Handicap
|
||||
Align: Center
|
||||
Font: Bold
|
||||
Label@LABEL_LOBBY_SPAWN:
|
||||
X: 560
|
||||
Width: 48
|
||||
@@ -139,6 +146,12 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Width: 48
|
||||
Height: 25
|
||||
Text: Team
|
||||
DropDownButton@HANDICAP_DROPDOWN:
|
||||
X: 478
|
||||
Width: 72
|
||||
Height: 25
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipText: A handicap decreases the combat effectiveness of the player's forces
|
||||
DropDownButton@SPAWN_DROPDOWN:
|
||||
X: 560
|
||||
Width: 48
|
||||
@@ -249,6 +262,17 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Width: 48
|
||||
Height: 25
|
||||
Visible: false
|
||||
Label@HANDICAP:
|
||||
X: 478
|
||||
Width: 47
|
||||
Height: 25
|
||||
Align: Center
|
||||
DropDownButton@HANDICAP_DROPDOWN:
|
||||
X: 478
|
||||
Width: 72
|
||||
Height: 25
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipText: A handicap decreases the combat effectiveness of the player's forces
|
||||
Label@SPAWN:
|
||||
X: 560
|
||||
Width: 23
|
||||
|
||||
@@ -35,6 +35,13 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Text: Team
|
||||
Align: Center
|
||||
Font: Bold
|
||||
Label@LABEL_LOBBY_HANDICAP:
|
||||
X: 478
|
||||
Width: 72
|
||||
Height: 25
|
||||
Text: Handicap
|
||||
Align: Center
|
||||
Font: Bold
|
||||
Label@LABEL_LOBBY_SPAWN:
|
||||
X: 560
|
||||
Width: 48
|
||||
@@ -139,6 +146,12 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Width: 48
|
||||
Height: 25
|
||||
Text: Team
|
||||
DropDownButton@HANDICAP_DROPDOWN:
|
||||
X: 478
|
||||
Width: 72
|
||||
Height: 25
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipText: A handicap decreases the combat effectiveness of the player's forces
|
||||
DropDownButton@SPAWN_DROPDOWN:
|
||||
X: 560
|
||||
Width: 48
|
||||
@@ -249,6 +262,17 @@ Container@LOBBY_PLAYER_BIN:
|
||||
Width: 48
|
||||
Height: 25
|
||||
Visible: false
|
||||
Label@HANDICAP:
|
||||
X: 478
|
||||
Width: 47
|
||||
Height: 25
|
||||
Align: Center
|
||||
DropDownButton@HANDICAP_DROPDOWN:
|
||||
X: 478
|
||||
Width: 72
|
||||
Height: 25
|
||||
TooltipContainer: TOOLTIP_CONTAINER
|
||||
TooltipText: A handicap decreases the combat effectiveness of the player's forces
|
||||
Label@SPAWN:
|
||||
X: 560
|
||||
Width: 23
|
||||
|
||||
@@ -184,10 +184,16 @@
|
||||
AttackMoveCondition: attack-move
|
||||
AssaultMoveCondition: assault-move
|
||||
|
||||
^PlayerHandicaps:
|
||||
HandicapFirepowerMultiplier:
|
||||
HandicapDamageMultiplier:
|
||||
HandicapProductionTimeMultiplier:
|
||||
|
||||
^Vehicle:
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Tooltip:
|
||||
GenericName: Unit
|
||||
Huntable:
|
||||
@@ -298,6 +304,7 @@
|
||||
Inherits@2: ^GainsExperience
|
||||
Inherits@3: ^SpriteActor
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Tooltip:
|
||||
GenericName: Unit
|
||||
Huntable:
|
||||
@@ -366,6 +373,7 @@
|
||||
^Plane:
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Interactable:
|
||||
Tooltip:
|
||||
GenericName: Unit
|
||||
@@ -391,6 +399,7 @@
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@selection: ^SelectableBuilding
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Tooltip:
|
||||
GenericName: Structure
|
||||
Huntable:
|
||||
|
||||
@@ -221,6 +221,11 @@
|
||||
AttackMove:
|
||||
AssaultMoveCondition: assault-move
|
||||
|
||||
^PlayerHandicaps:
|
||||
HandicapFirepowerMultiplier:
|
||||
HandicapDamageMultiplier:
|
||||
HandicapProductionTimeMultiplier:
|
||||
|
||||
^GlobalBounty:
|
||||
GrantConditionOnPrerequisite@GLOBALBOUNTY:
|
||||
Condition: global-bounty
|
||||
@@ -234,6 +239,7 @@
|
||||
Inherits@3: ^ClassicFacingSpriteActor
|
||||
Inherits@bounty: ^GlobalBounty
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -313,6 +319,7 @@
|
||||
Inherits@4: ^SpriteActor
|
||||
Inherits@bounty: ^GlobalBounty
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -483,6 +490,7 @@
|
||||
Inherits@4: ^SpriteActor
|
||||
Inherits@bounty: ^GlobalBounty
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -532,6 +540,7 @@
|
||||
Inherits@4: ^SpriteActor
|
||||
Inherits@bounty: ^GlobalBounty
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -632,6 +641,7 @@
|
||||
Inherits@shape: ^1x1Shape
|
||||
Inherits@bounty: ^GlobalBounty
|
||||
Inherits@selection: ^SelectableBuilding
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Targetable:
|
||||
TargetTypes: GroundActor, C4, DetonateAttack, Structure
|
||||
Building:
|
||||
@@ -737,6 +747,7 @@
|
||||
Inherits@1: ^ExistsInWorld
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@shape: ^1x1Shape
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Interactable:
|
||||
Bounds: 24,24
|
||||
OwnerLostAction:
|
||||
|
||||
@@ -183,6 +183,11 @@
|
||||
AttackMove:
|
||||
AssaultMoveCondition: assault-move
|
||||
|
||||
^PlayerHandicaps:
|
||||
HandicapFirepowerMultiplier:
|
||||
HandicapDamageMultiplier:
|
||||
HandicapProductionTimeMultiplier:
|
||||
|
||||
^2x1Shape:
|
||||
HitShape:
|
||||
Type: Rectangle
|
||||
@@ -302,6 +307,7 @@
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@3: ^Cloakable
|
||||
Inherits@selection: ^SelectableBuilding
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
Targetable:
|
||||
TargetTypes: Ground, Building, C4
|
||||
@@ -538,6 +544,7 @@
|
||||
Inherits@4: ^Cloakable
|
||||
Inherits@CRATESTATS: ^CrateStatModifiers
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -754,6 +761,7 @@
|
||||
Inherits@5: ^DamagedByVeins
|
||||
Inherits@CRATESTATS: ^CrateStatModifiers
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -860,6 +868,7 @@
|
||||
Inherits@2: ^ExistsInWorld
|
||||
Inherits@3: ^Cloakable
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
OwnerLostAction:
|
||||
Action: Kill
|
||||
@@ -958,6 +967,7 @@
|
||||
Inherits@2: ^SpriteActor
|
||||
Inherits@3: ^HealsOnTiberium
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
Health:
|
||||
Armor:
|
||||
@@ -1108,6 +1118,7 @@
|
||||
Inherits@2: ^ExistsInWorld
|
||||
Inherits@3: ^Cloakable
|
||||
Inherits@selection: ^SelectableCombatUnit
|
||||
Inherits@handicaps: ^PlayerHandicaps
|
||||
Huntable:
|
||||
RenderVoxels:
|
||||
RenderSprites:
|
||||
|
||||
Reference in New Issue
Block a user