Paul Chote
6adf45bcb4
Convert IFacing.Facing and TurnSpeed to WAngle.
2020-06-12 18:35:41 +02:00
reaperrr
4bf614c5cd
Use OccupiesSpace to avoid Mobile look-up in Move
...
While individual trait look-ups may be cheap,
if a large army that is currently standing still gets
its first move-including order, the look-ups of dozens
or even hundreds of actors may happen on the same tick.
Therefore this may help reducing that first-order lag spike,
at least a little bit.
2020-06-02 20:08:34 +02:00
abcdefg30
96b06c75d1
Make Resupply display target lines for all queued move activities
2020-06-02 18:23:54 +02:00
Paul Chote
6d6b21a0eb
Convert Aircraft.Facing to WAngle.
2020-06-01 20:25:38 +02:00
Paul Chote
c999b2d778
Convert QuantizeFacing to WAngle facings.
2020-05-28 21:23:51 +02:00
Paul Chote
626b40f31b
Account for ramps in terrain height calculations.
2020-05-28 09:41:55 -05:00
abcdefg30
8b13d3e4c7
Fix resupply not displaying target lines correctly
2020-05-19 22:11:20 +02:00
atlimit8
1ef27d18c1
check name for Actor.GrantCondition()
2020-05-17 12:33:29 +02:00
thisisjacob
3119f831b3
Added notice for entering vehicles in docs
2020-05-13 17:25:49 -05:00
thisisjacob
8a07b762a2
Changed documentation for OnEnterComplete
2020-05-13 17:25:49 -05:00
atlimit8
259c8d2c98
Merge ConditionManager trait directly into Actor
2020-05-09 15:46:11 +02:00
Adam Mitchell
0a9eb1ff83
Fix units stuck on transit-only when resupplying
2020-04-17 11:13:46 +02:00
abcdefg30
1e64048956
Cache PlayerResources and unit cost in Resupply
2020-04-07 21:27:16 +02:00
Mustafa Alperen Seki
101843fbb7
Make EngineerRepairable conditional.
2020-04-03 04:09:43 -05:00
Zimmermann Gyula
9e534f3804
Add damagetypes to repairing.
2020-03-31 01:10:51 -05:00
Paul Chote
4d4f94208e
Cache CandidateMovementCells within the same tick.
2020-03-12 17:07:14 +01:00
Paul Chote
416713de0c
Fix infantry switching subcells and blocking eachother while moving.
2020-03-11 15:40:12 +01:00
abcdefg30
a5bc841355
Ignore the types of an exit when the production type is null or empty
2020-02-28 18:48:05 +01:00
Paul Chote
7e72cd262c
Fix FlyAttack invalid target crash.
2020-02-19 23:35:16 -06:00
Paul Chote
9a6602656b
Ignore nearEnough if we think the actor can get closer.
2020-02-18 19:37:17 +01:00
Paul Chote
3a688e03f0
Add multiple levels of fallback.
2020-02-12 21:17:39 +00:00
Paul Chote
a43335c7b0
Restore transient blocker check in pathfinding queries.
2020-02-12 21:17:39 +00:00
Paul Chote
b2f0ac15e8
Generalize RallyPointInfo.Offset to support arbitrary length paths.
2020-02-09 16:52:22 +01:00
reaperrr
6220d7e62e
Introduce WarheadArgs
...
- Passes additional arguments to warheads on impact
- Uses that to reduce parameter count of DoImpact by 1
2020-01-21 19:31:34 +01:00
Paul Chote
d0f44143c2
Fix activity cancellation on FlyAttack RTB.
...
* AbortOnResupply will now cancel queued activities
in addition to the current attack.
* Resupply if no ammo is available during a standard attack.
* Don't resupply (move directly to target) if no ammo is available
during an attack move (C&C3 style).
2020-01-18 16:38:53 +01:00
Paul Chote
51870a471a
Add AttackSource enum.
2020-01-18 16:38:53 +01:00
Paul Chote
adb3c8e39c
Split fixed-wing attack and strafe attack types.
2020-01-12 21:06:35 +01:00
tovl
85bc843554
Fix aircraft failing to engage targets within range.
2020-01-12 21:06:35 +01:00
Paul Chote
0106ed3669
Restore red lines for harvester targets.
2020-01-12 04:08:59 +01:00
reaperrr
ac44367440
Refactor Spin to MaximumSpinSpeed
...
Additionally, add descriptions to
other FallsToEarth properties.
2020-01-06 21:47:53 +00:00
reaperrr
4499343ed2
Make Aircraft actually pausable/disableable
...
This commit makes aircraft
- ignore any aircraft-specific orders while disabled
- show blocked move cursor while paused
- set speeds to zero while paused or disabled
2020-01-06 21:47:53 +00:00
reaperrr
4b006bc484
Make Aircraft PausableConditional
...
Note: This commit only does the minimum changes
to implement PausableConditional, there are no
logic changes yet (like disabling movement on PauseOnCondition).
2020-01-06 21:47:53 +00:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
tovl
2094142b7d
Include tunnel check in CanStayInCell.
2020-01-04 16:04:27 +00:00
tovl
434c46058f
Disallow units idling on service depot.
2020-01-04 16:04:27 +00:00
tovl
c360d8bcef
Make service depot passable.
2020-01-04 16:04:27 +00:00
reaperrr
804d61a6a1
Fix DeliverUnit-related crash
2020-01-01 20:42:36 +01:00
abcdefg30
1e138a9774
Drop invisible invalid targets immediately when changing stance
2019-12-14 17:17:36 +01:00
tovl
203fff0ab7
Allow queued structure rallypoints.
2019-12-13 23:51:03 +01:00
tovl
3236499fb7
Increase IMove.MoveTo call flexibility.
2019-12-13 23:51:03 +01:00
reaperrr
ee00954f2e
Replace AmmoPool lookup methods with properties
...
And gave the more suitable names while at it.
This is more in line with how we do things in
other places.
2019-11-20 15:45:41 +01:00
reaperrr
2de51ae73c
Cache IPathFinder in Mobile at creation
...
Avoiding look-ups on every move order,
as well as reducing line lengths.
2019-11-03 20:53:29 +01:00
tovl
38caadfdf0
Clean up nudging code.
2019-10-28 19:35:32 +01:00
tovl
c4d1468f62
Make locomotor cache and nudging logic aware of mobile trait status.
2019-10-28 19:35:32 +01:00
Paul Chote
69970d42f3
Prevent movement pausing at invalid position.
2019-10-19 13:11:00 +02:00
Paul Chote
ae34410c80
Replace MoveIntoWorld with ReturnToCell/AssociateWithAirfield.
2019-10-17 23:31:15 +02:00
Abdurrahmaan Iqbal
763e6d8109
Fix #17229 : Refactor ReturnToBase.cs
2019-10-17 10:28:43 +02:00
tovl
33d089a9d6
Fix lastVisibleTarget not being set in FlyAttack and AttackActivity.
2019-10-14 01:22:04 +02:00
tovl
eed00ded0d
pause MovePart when Mobile is paused.
2019-10-06 20:28:20 +01:00
abcdefg30
39f8d34494
Fix setting the position of the wrong actor
2019-10-06 14:42:50 +01:00