Skip to content

Commit

Permalink
Fix dummy actors handling cloak reveal crates' actions being able to …
Browse files Browse the repository at this point in the history
…collect crates.

It was causing a crash when they took a health crate because they don't have Health trait.
  • Loading branch information
MustaphaTR committed Dec 28, 2024
1 parent b721056 commit 2fd8c4d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/ss/rules/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ proxy.cloak-detector:
-Immobile:
-RevealsShroud:
Mobile:
Locomotor: foot
Locomotor: dummy
RejectsOrders:
DetectCloaked:
Range: 1024c0
Expand All @@ -547,7 +547,7 @@ proxy.cloak-remover:
-Immobile:
-RevealsShroud:
Mobile:
Locomotor: foot
Locomotor: dummy
RejectsOrders:
ProximityExternalCondition:
Condition: cloak-global-disable
Expand Down
13 changes: 13 additions & 0 deletions mods/ss/rules/world.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
FogVariants: typea, typeb, typec, typed
OverrideFullShroud: full
OverrideFullFog: full
Locomotor@DUMMY:
Name: dummy
SharesCell: true
TerrainSpeeds:
Clear: 100
Rough: 100
Road: 100
Bridge: 100
Tiberium: 100
BlueTiberium: 100
Beach: 100
Water: 100
Cliff: 100
Locomotor@FOOT:
Name: foot
Crushes: crate, teleporter, flag
Expand Down

0 comments on commit 2fd8c4d

Please sign in to comment.