Add a per-player handicap option to the lobby.

Handicaps reduce unit health, firepower, and build speed.
This commit is contained in:
Paul Chote
2020-12-30 15:17:44 +00:00
committed by reaperrr
parent c7c78eda80
commit 02a2624bcc
22 changed files with 346 additions and 0 deletions

View File

@@ -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: