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
Chris Forbes
71792a8f09
fix crash on telling {sam,agun} to attack ground
2010-08-04 18:23:06 +12:00
Paul Chote
d29e3f3f0e
Split facing into its own interface; fix husks
2010-08-01 01:01:31 +12:00
Paul Chote
207ee49da3
Move Facing and Altitude onto IMove impls, with associated pile of cleanups
2010-08-01 01:01:31 +12:00
Chris Forbes
491d38cafe
move Weapon & friends into own file
2010-07-31 23:21:22 +12:00
Chris Forbes
6c6da12dd6
fix local offset -> screen space transform to work as advertised
2010-07-31 23:01:56 +12:00
Chris Forbes
0b20d1366a
eliminate old form of GetTurretPosition
2010-07-31 22:33:54 +12:00
Chris Forbes
fa245aaa08
introduce collection of Turrets on AttackBase, too -- turret sharing w/ recoil works again
2010-07-31 22:19:29 +12:00
Chris Forbes
d202e27f79
more tesla hax?
2010-07-31 21:34:24 +12:00
Chris Forbes
9fcc739cd5
more... Combat.GetSecondaryWeapon() dies, etc
2010-07-31 21:34:23 +12:00
Chris Forbes
b8421ba655
move more combat bits around
2010-07-31 21:34:22 +12:00
Chris Forbes
2ac261c15b
remove other param spam from CheckFire
2010-07-31 21:34:22 +12:00
Chris Forbes
2bd9cd32f6
remove WeaponInfo param from CheckFire
2010-07-31 21:34:21 +12:00
Chris Forbes
693c8d96b1
introduce a Barrel object, unhacking the local offsets.
2010-07-31 21:34:21 +12:00
Chris Forbes
42683f5966
start refactoring AttackBase
2010-07-31 21:34:20 +12:00
Paul Chote
1459ec483c
Rename ExtendedDamageState -> DamageState
2010-07-30 22:24:43 +12:00
Paul Chote
98ac5a036f
Add an `Undamaged' damagestate to simplify things related to healing.
2010-07-30 01:22:41 +12:00
Paul Chote
6fba888d45
Shift Actor.Health onto a trait.
...
Known regressions:
- cnc only
- health bar colors
- can't repair buildings
2010-07-30 00:33:44 +12:00
alzeih
526bb3e042
Use Targets
2010-07-26 12:33:54 +12:00
Paul Chote
e8adc357e9
Draw targeting lines for player-issued orders. Can force-display targets with [alt].
2010-07-26 12:01:13 +12:00