atlimit8
3f6e1a608a
Added IDisableMove
2014-10-03 08:07:05 -05:00
atlimit8
83acbe0266
Extended IMove for Enter logic
2014-10-02 20:47:28 -05:00
atlimit8
8ad1140921
Reduce ICrushable trait lookup & drop -SubCell suffix.
...
Replace `a.HasTrait<ICrushable>()` with a.TraitsImplementing<ICrushable>().Any() or equivalent.
2014-08-30 04:43:57 -05:00
atlimit8
e29b9edfc1
Changes to map.cs, rename IPositionable.IsLeaving{ => Cell}, add IPositionable.GetValidSubCell
2014-08-29 23:30:16 -05:00
atlimit8
63c28ee4d7
Refactored in new enum SubCell
2014-08-29 23:00:53 -05:00
atlimit8
27ad5208fb
Fixed Mobile.SetPosition & other FixUnloadCargo touch-ups
...
Fixed Mobile.SetPosition
Finally removed old SubCell enum
Folded MobileInfo.CanEnterCell overloads into one
Renamed IPositionable.{IsMovingFrom => IsLeaving}
Changed Crate.IsLeaving to use crate lifetime
2014-08-29 23:00:53 -05:00
atlimit8
b2c9064545
Refactored [sub-]cell availability logic in IPositionable & ActorMap
...
Moved the logic from IPositionable.CanEnterCell & integrated sub-cell selection.
Added IPositionable.IsMovingFrom(CPos location, int subCell = -1) - to detect transient actors
Renamed IPositionable.{GetDesiredSubcell => GetAvailableSubcell} - since it checks for available sub-cells
Reduced IPositionable.CanEnterCell to one method that usually uses IPositionable.GetAvailableSubcell
Added actor checking to ActorMap.{HasFreeSubCell, FreeSubCell, AnyUnitsAt} - used by [sub-]cell availability logic
2014-08-29 23:00:53 -05:00
atlimit8
ff7ad53dee
Fixed UnloadCargo stacking using new subcell API exposure
2014-08-29 23:00:53 -05:00
atlimit8
fe57417aa8
Added int subCell = -1 to IMove.MoveIntoWorld & IPositionable.SetPosition(Actor self, CPos cell)
2014-08-29 23:00:53 -05:00
UberWaffe
76ccb0cf00
Changes Weapon.Impact() to use Target (from WPos).
2014-08-23 11:23:34 +02:00
Paul Chote
57ba1b54b4
Convert weapon plumbing to use integer damage modifiers.
2014-08-23 17:14:10 +12:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
84d3497e96
Convert speed modifiers to integer percentages.
2014-08-12 11:41:09 +12:00
atlimit8
43478dd500
enum SubCell => int & Dictionary<SubCell, WVec> => WVec[]
2014-08-04 18:09:26 -05:00
Curtis Shmyr
ed08bafd54
Remove TakeOff activity from ReturnToBase
2014-08-03 12:50:01 -06:00
Taryn Hill
b6fd757672
Merge pull request #6030 from UberWaffe/CustomWarheads
...
Custom Warheads refactor
2014-08-03 10:35:36 -05:00
UberWaffe
c972b39687
Custom Warheads refactor
...
Changes included:
Warhead code split out of weapon code and refactored.
Warhead functionality now split into several classes, each handling one effect/impact.
Additional custom warheads can now be defined and called via yaml.
Custom warheads inherit the abstract class Warhead,
which provides target check functions.
Custom warheads have to define their own impact functions,
and can also define their own replacement for check
functions.
2014-08-03 17:10:44 +02:00
Taryn Hill
d6931f1d05
Added flag to Mobile/AircraftInfo: MoveIntoShroud.
...
Does not change the audio feedback given.
2014-08-01 20:43:29 -05:00
ScottNZ
16a30fd6b1
Add plane repulsion logic
2014-07-29 00:18:13 +12:00
Oliver Brakmann
e97efc89cb
Make aircraft not waste their missiles by firing from outside the map
...
Fixes #6001 .
This obviously affects Yaks as well as Migs, even though Yaks had no
trouble with attacking from outside the map.
2014-07-26 11:05:41 +02:00
Matthias Mailänder
778931f650
document ReturnOnIdle
2014-07-23 07:09:07 +02:00
Matthias Mailänder
249be6d9a7
separate and document FlyAwayOnIdle
2014-07-23 07:09:07 +02:00
Squiggles211
ebc6515d73
Fixes #5054 by removing chinook's turn before landing and increasing ascend/descend speed
...
Allows for any helicopter to enable or disable the turn before landing
but sets it to default off for the chinook. (may be desireable for
single player missions visual effect like Allies01?) Also gives the
chinook a faster ascend/descend speed. Fixes #5054
2014-07-06 00:52:43 -05:00
Matthias Mailänder
1e2e7bcf42
StyleCop
2014-07-05 09:00:20 +02:00
Paul Chote
9487f49cd5
Replace WPos.ToCPos -> Map.CellContaining.
2014-06-27 23:30:40 +12:00
Paul Chote
7b52fa52b6
Replace CPos.CenterPosition -> Map.CenterOfCell.
2014-06-27 23:30:40 +12:00
Paul Chote
086ec07eb6
Add World parameter to Target.FromCell.
2014-06-27 23:30:40 +12:00
Paul Chote
e4ea012b9e
Add World parameter to Target.FromOrder.
2014-06-27 23:30:40 +12:00
Paul Chote
5560f276ca
Map: Rename IsInMap -> Contains.
2014-06-27 22:07:03 +12:00
Oliver Brakmann
aa91020790
Do not discard activity queue when FlyAttack completes. Fixes #4482 .
2014-06-22 14:03:44 +02:00
Paul Chote
887a515e14
Add MinRange plumbing to attack activities.
2014-06-15 22:48:43 +12:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
Matthias Mailänder
dac12839fd
Merge pull request #5630 from pavlos256/map-helpers
...
Move map helpers from WorldUtils to Map
2014-06-14 11:49:19 +02:00
Matthias Mailänder
b3a2f81706
Merge pull request #5470 from Kanar/AirfieldRP
...
Closes #5592
2014-06-14 11:03:17 +02:00
Pavlos Touboulidis
77fb188585
Move ClampToWorld from WorldUtils to Map
2014-06-13 13:59:40 +03:00
Pavlos Touboulidis
c282fa1077
Move GetTerrainIndex/Info from WorldUtils to Map
2014-06-13 13:57:32 +03:00
Pavlos Touboulidis
092352729f
Change terrain type from string based dictionaries to arrays
2014-06-13 11:20:54 +03:00
Kanar
6fdb9e688a
Adds RallyPoint to Airfield, queues TakeOff
2014-06-10 18:02:04 +02:00
Paul Chote
d8e5177a36
Merge pull request #5405 from RoosterDragon/min-max
...
Added MinBy, MaxBy, etc.
2014-06-09 17:42:01 +12:00
RoosterDragon
0c8bdff5be
Formatting fixes.
...
Spaces to tabs, indents, etc.
2014-05-26 18:10:59 +01:00
Kanar
b6a758494b
Small Polish: Adds voices for aircraft's stop-orders
2014-05-26 03:28:51 +02:00
RoosterDragon
0ea3509ee4
Added MinBy, MaxBy, MinByOrDefault and MaxByOrDefault methods and replaced calls of the style OrderBy[Descending]().First[OrDefault]() which is not as performant.
2014-05-23 08:23:42 +01:00
Squiggles211
0e4b1d28aa
Fixes #4955 aircraft reservation crash
...
Fixes the specific cause of the crash reported in #4955 with HeliReturn
and adds an UnReserve call while attempting to reserve spawn building in
Aircraft.cs
2014-05-22 01:38:08 -05:00
Jordan Glue
2379d6167b
closes #4779 Deploy hotkey F not repairing helis
2014-05-05 22:28:27 +10:00
Jordan Glue
ea32390700
closes #3091 Have Helis take off after repair/rearm
2014-05-05 19:31:57 +10:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Matthias Mailänder
c7ed2aacaf
check for valid targets when flying
...
closes #4972
2014-03-31 13:45:13 +02:00
Paul Chote
ac5a4589ea
Add IMove.MoveIntoWorld and IMove.VisualMove.
2014-03-19 13:40:32 +13:00
Paul Chote
116e4acda3
Fix style nits in other Attack traits (no logic changes).
2014-03-12 23:50:08 +13:00
Taryn
9c4ad15d1e
Changed most references of trait Mobile -> IMove.
...
In Mobile.cs IsMoving now has a public set as opposed to the initial internal.
Added IMoveInfo interface to go with *Info classes that require IMove.
WithRotor now uses IMove.IsMoving instead of (self.CenterPosition.Z > 0) as part of a check.
2014-02-02 15:13:49 -06:00