You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Customized] Extended gattling rate down logic (#1469)
- Now you can customize some effects of RateDown.
- `RateDown.Delay` controls the delay before using `RateDown` to reduce
the gattling value.
- `RateDown.Reset` controls whether to reset the gattling value directly
when the techno has no target or changes targets.
- `RateDown.Cover.Value` replaces the original `RateDown` when techno's
ammo is lower than `RateDown.Cover.AmmoBelow`.
In `rulesmd.ini`:
```ini
[SOMETECHNO] ; TechnoType, `IsGattling=yes`
RateDown.Delay=0 ; integer, game frames
RateDown.Reset=false ; boolean
RateDown.Cover.Value=0 ; integer
RateDown.Cover.AmmoBelow=-2 ; integer
```
Copy file name to clipboardExpand all lines: src/Ext/Techno/Body.h
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,9 @@ class TechnoExt
52
52
bool CanCurrentlyDeployIntoBuilding; // Only set on UnitClass technos with DeploysInto set in multiplayer games, recalculated once per frame so no need to serialize.
53
53
CellClass* FiringObstacleCell; // Set on firing if there is an obstacle cell between target and techno, used for updating WaveClass target etc.
54
54
bool IsDetachingForCloak; // Used for checking animation detaching, set to true before calling Detach_All() on techno when this anim is attached to and to false after when cloaking only.
55
+
DWORD LastTargetID;
56
+
int AccumulatedGattlingValue;
57
+
bool ShouldUpdateGattlingValue;
55
58
56
59
// Used for Passengers.SyncOwner.RevertOnExit instead of TechnoClass::InitialOwner / OriginallyOwnedByHouse,
57
60
// as neither is guaranteed to point to the house the TechnoClass had prior to entering transport and cannot be safely overridden.
0 commit comments