alzeih
255bac6aff
QueuedActivity's Insert is broken
2011-04-16 12:50:13 +12:00
Chris Forbes
f47c2a678c
remove some unnecessary semantics-muddying
2011-04-08 09:47:42 +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
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
b0beee6b7b
fetch the max range from AttackBaseInfo rather than making it up completely
2011-02-11 07:11:28 +13:00
Chris Forbes
3369373879
initial setup for decorating the PlaceBuilding OG
2011-02-11 07:11:28 +13:00
Chris Forbes
f52620f6fc
add ISync to all traits that have [Sync] members
2011-01-26 21:00:28 +13:00
Chris Forbes
59fdbe8725
CanTargetUnit -> CanTargetUnit
2010-12-27 18:43:32 +13:00
Chris Forbes
25ebdea758
hack in stop order support to various classes. not happy with this.
2010-12-19 17:48:18 +13:00
Chris Forbes
a752c47b5a
allow marking things with AutoTargetIgnore so AutoTarget won't go for them
2010-12-05 11:39:44 +13:00
Paul Chote
be8f042e49
Fix autoattack target flashes
2010-11-30 22:53:11 +13:00
Paul Chote
7850acc6fb
Fix AttackLeap.
2010-11-29 11:52:27 +13:00
Paul Chote
434ea26950
Fix cloaked units.
2010-11-27 11:28:22 +13:00
Paul Chote
7c5c989eb2
Introduce World.LocalShroud. Breaks targeting stealth tanks. Probably breaks FrozenUnderFog.
2010-11-27 11:20:04 +13:00
Paul Chote
b423889c06
Remove a pile of duplication from target lines.
...
Remove MoveFlash.
2010-11-27 11:20:03 +13:00
Paul Chote
5f43923b80
Polish: Show the "move-blocked" cursor for locations outside the map. Clamp move orders to the map bounds for these orders.
2010-11-27 11:20:03 +13:00
Chris Forbes
23e6eada26
another ctor removed
2010-11-23 15:20:11 +13:00
Chris Forbes
490b0801a0
start removing weird ctors on Order
2010-11-23 15:14:48 +13:00
Chris Forbes
1db3ce4b59
some usings cleanup
2010-11-21 12:25:22 +13:00
Bob
b2f3b8f2af
make AutoTarget use an activity. add AutoTarget to teslatank
2010-11-14 19:44:58 +13:00
Bob
80e897abfb
add Util.RunActivity, and have Actor.Tick use it. fix medic autoheal
2010-11-14 18:36:36 +13:00
Bob
f8e6245903
make order queuing work for buildings and turreted units, too
2010-11-14 15:48:02 +13:00
geckosoft
622f9bfe71
Added: forceQueue to IOrderTarget' CanTargetUnit / CanTargetLocation
...
Added: forceQueue to all related methods
Added: Only shows the select cursor IF hovering over a unit AND the orders return the 'default' icon
2010-11-13 17:46:36 +13:00
geckosoft
05f6958286
Changed: From running on the local player, to running on all players
2010-11-13 17:38:41 +13:00
geckosoft
6b40abb58c
Implemented: Stances
...
Added: Basic stances (Aggressive, Guard (Hold Ground), Hold Fire, None (dummy), Return Fire)
Added: WorldCommandWidget (to be able to set said stances)
Added: WorldCommandWidget to ra (cnc will follow, later on)
Changed: Added support to AttackBase for firing with movement disabled + utility method ScanForTarget (used by stances)
Added: AssignUnitStance (attach this to unit-producing actors, together with what stances can be picked as 'default')
2010-11-13 17:26:42 +13:00
Bob
22e61a5700
refactor QueueAttack -> GetAttackActivity
2010-11-13 16:42:13 +13:00
Bob
7306de3730
make attacks queuable
2010-11-13 15:53:10 +13:00
Bob
10ed3db71d
made all orders queuable
2010-11-13 15:53:08 +13:00
Bob
04e05d9aed
remove the default impl of QueueAttack; implement it in AttackFrontal and AttackLeap
2010-11-13 14:59:33 +13:00
Bob
80caf1818b
fix off-by-one in IsInRange. use CenterLocation in combat code where appropriate
2010-11-05 19:50:17 +13:00
Bob
f5fe1013ee
remove AttackDefault; use AttackFrontal instead
2010-10-25 09:51:14 +13:00
Bob
c338d28d35
fix 'decided on Attack but ordered Heal' message on medic
2010-10-25 09:14:49 +13:00
Bob
aa0b7bedf0
pass target to DoAttack
2010-10-25 08:03:10 +13:00
Bob
158d6e5647
move CheckFire in Weapon
2010-10-25 08:03:09 +13:00
Bob
e091781104
use new AttackDefault trait instead of AttackBase; make AttackBase abstract
2010-10-25 08:03:09 +13:00
Matthew Bowra-Dean
f6df7a06f2
fixes #323
2010-10-21 07:43:52 +13:00
max621
c150fd9475
Added attack move
2010-10-13 08:13:20 +13:00
Bob
1c1483377c
remove ref to Game.world in Combat
2010-10-12 17:24:19 +13:00
Bob
aebef4f1c8
rename IIssueOrder2 -> IIssueOrder
2010-10-07 22:07:13 +13:00
Bob
711d05da98
use IIssueOrder2 in AttackBase
2010-10-07 22:07:12 +13:00
Chris Forbes
8cb7a7b8ce
add support for WeaponInfo.MinRange
2010-10-06 17:41:52 +13:00
Bob
d8de477edb
fix IdleAnimation. add IsAttacking to AttackBase
2010-09-22 12:21:49 +12:00
Chris Forbes
c91bee8091
add option to ban attacking ground
2010-09-16 17:53:59 +12:00
Paul Chote
91aa5302a8
Fix c4 force-firing. TODO: remove magic numbers
2010-09-12 18:20:25 +12:00
Paul Chote
2b6328f0ee
Begin imposing sanity on order ordering
2010-09-12 18:10:34 +12:00
Chris Forbes
ce0e671ac5
fix obvious failures.
2010-08-26 19:53:21 +12:00
Chris Forbes
b4068f0ac7
msam polish -- contains some dirty hacks
2010-08-15 21:11:38 +12:00
Bob
ae703d50b2
Actor.traits is implementation detail
2010-08-14 17:39:49 +12:00
Chris Forbes
f64a6e273e
fix sub -> ground crash
2010-08-06 20:11:49 +12:00