Commit Graph

72 Commits

Author SHA1 Message Date
penev92
62601491ad Move Enter and Repair Building activities, EngineerRepair trait and ActorExts to Mods.Common and extract IgnoresDisguise trait to its own file 2015-01-03 07:03:41 +02:00
Hellhake
fa72e04042 Remove BOM 2015-01-01 22:51:12 +01:00
reaperrr
2f67a88b93 Move Armament, Attack* and various other traits to Traits namespace 2014-12-26 21:38:48 +01:00
Paul Chote
488f0d1140 Revert "Fixes AttackMove moving even if an enemy is within range."
This reverts commit a155c7b7ac.
2014-12-22 15:17:51 +13:00
reaperrr
ee8e1f46c1 Move 'Activity' into its own namespace in OpenRA.Game. 2014-12-14 17:12:46 +01:00
WolfGaming
a155c7b7ac Fixes AttackMove moving even if an enemy is within range. 2014-12-10 13:28:10 +00:00
Paul Chote
2af123034d Use ExtraData for SetStance and SetUnitStance. 2014-06-26 23:14:13 +12:00
Matthias Mailänder
b85aaa7bfa document the stance system 2014-06-21 08:34:58 +02:00
ScottNZ
dbffce81a6 Remove unused usings 2014-06-15 22:16:40 +12:00
RoosterDragon
b8b8b1e2df Minor changes to reduce allocation.
- Cache a predicate in ActorMap.
- Use short circuiting to skip a call to HasTrait in AttackBase.
- In AutoTarget.ScanForTarget, move the check for the scan time above the calculations since we can skip them if it's not time yet.
- In AutoTarget.ChooseTarget, merge four Where calls into one.
2014-06-12 05:32:44 +01:00
ScottNZ
7e6f7c51e1 Refactor AutoTarget scan and GPS interaction, and cache trait lookup for a slight performance boost 2014-06-07 12:01:50 +12:00
WolfGaming
018c2f0c63 Fixes force fire not working on pillboxes 2014-05-14 10:55:46 +00:00
Paul Chote
3f9e89a746 Fix retaliation against garrisoned actors. 2014-03-21 10:03:54 +13:00
Paul Chote
d13e7ed432 Add AttackMove support to RA aircraft. 2014-02-01 10:55:04 +13:00
Paul Chote
85500c0ec7 Tidy AutoTarget code. 2014-02-01 10:55:04 +13:00
ScottNZ
115a447b2f Fix the autotarget bug that made turrets uncontrollable in combat 2013-08-17 17:53:50 +12:00
Paul Chote
63eb1b8a03 [Sync] the AutoTargeted actor ID for desync hunting. 2013-08-12 21:34:20 +12:00
Paul Chote
800acdbdf2 Rename FindUnitsInCircle -> FindActorsInCircle. 2013-07-20 15:34:27 +12:00
Paul Chote
39d2095e54 Remove PPos overload of ClosestTo. 2013-07-20 15:34:27 +12:00
Paul Chote
ec9054ceb1 Use Target range checks in AutoTarget and dependencies. 2013-07-06 19:16:16 +12:00
Matthias Mailänder
99d4d07cd5 removed now redundant debug auto-target traits 2013-05-10 22:31:54 +02:00
Chris Forbes
9b677107ec unlag autotarget response 2013-04-20 21:33:54 +12:00
Chris Forbes
b6de3b3991 move autotarget scan time params into AutoTargetInfo 2013-04-20 16:19:06 +12:00
Matthias Mailänder
6307e51991 put NextAutoTargetScanTime into syncreport.log 2013-03-22 19:19:16 +01:00
Matthias Mailänder
6cedc424ed dump the actor the unit tried to retiliate against to syncreport 2013-03-22 19:19:16 +01:00
Matthias Mailänder
c731a7960e embed the previously manually edited outdated documentation
from https://github.com/OpenRA/OpenRA/wiki/Trait-Documentation
2013-03-20 21:20:27 +01:00
Matthias Mailänder
97d850e481 use integer math to calculate next auto-target scan-time
to combat random desync problem because of rounding problems
2013-03-11 14:02:28 +01:00
Chris Forbes
e45fc0079c Merge pull request #2729 from Mailaender/sync
Dump some more values into the debug log to investigate desyncs
2013-03-09 21:10:42 -08:00
Matthias Mailänder
4a26d3f36e fix AutoTarget sync
- ISync interface was missing
- UnitStance enum was unhashable
2013-03-07 13:00:41 +01:00
Matthias Mailänder
a02fddd1a0 log the nextScanTime for ChooseTarget in AutoTarget
for debugging purposes to investigate desyncs
2013-03-04 10:25:20 +01:00
Matthias Mailänder
47075e1cd0 generate random numbers as floats
as they get converted from double before use anyway
2013-03-01 10:53:41 +01:00
Kenny
f41fb32d60 Introducing per-player shrouds.
- Each player has their own shroud and their visibility does not extend outside of the shroud. 
- Units and buildings can no longer target other units outside of their visibility. Buildings can still be targetted if they have been explored.
- GPS will provide visibility in the fog-of-war.
- Spies that infiltrate radar domes will gain their victim's exploration and reset it on all clients (if the victim does not have GPS)
2012-12-13 15:16:56 -08:00
Chris Forbes
85293a482e remove spurious allowMovement parameter from ScanAndAttack 2012-01-07 20:33:56 +13:00
Chris Forbes
6315864f84 add Defend unit stance 2012-01-07 20:33:56 +13:00
Chris Forbes
0ea9e06c22 remove spurious parameter from ScanAndAttack 2011-11-25 17:41:19 +13:00
Chris Forbes
5a029e337a fixed #1257 - predict stance changes on the client 2011-11-04 19:09:46 +13:00
Chris Forbes
9ac912fa0e #1262 fixed -- initial unit stance via AutoTarget:InitialStance: 2011-11-04 16:33:20 +13:00
Chris Forbes
7f1918d07b add stance cycling on 'z' 2011-10-11 09:33:50 +13:00
Chris Forbes
20c4db914c implement selectable rules of engagement for AutoTarget 2011-10-11 08:06:23 +13:00
Chris Forbes
2bc260c833 move Activity from OpenRA.Traits.Activities namespace to OpenRA.Traits 2011-10-06 23:11:58 +13:00
Chris Forbes
55036cd58c fix trailing whitespace everywhere 2011-09-26 08:40:39 +13:00
Chris Forbes
b95f49d6f3 remove pointless null checks for owner 2011-08-21 19:34:45 +12:00
Chris Forbes
e44b965785 fixed #999 -- replace order/first[ordefault] with .ClosestTo(point) 2011-07-14 20:29:07 +12:00
Chris Forbes
9b3e6c5c4a remove FP sillyness from FindUnits & friends 2011-05-22 20:38:52 +12:00
Chris Forbes
d86e0ec522 rename ITraitPrerequisite<T> to Requires<T> 2011-05-04 18:02:35 +12:00
Paul Chote
b7262b6490 Allow Autotarget to have a custom scan radius, use it for VICE. 2011-03-23 20:31:27 +13:00
Paul Chote
c7e2619a98 Explicitly declare dependency on Attack* from AutoTarget/AutoHeal. 2011-03-22 21:36:06 +13:00
alzeih
f4e4f987be RA - AppearsFriendlyTo and AppearsHostileTo actor extensions 2011-03-13 15:44:27 +13:00
Paul Chote
094907c1a9 Update copyright header. Normalize line endings to LF. 2011-02-13 10:38:57 +13:00
Chris Forbes
a3e64d1733 add AutoTargetIgnore 2010-12-05 11:32:30 +13:00