Commit Graph

179 Commits

Author SHA1 Message Date
Paul Chote
0424b56af1 Add WithHarvestAnimation for TS and D2K harvester animations. 2013-06-22 19:25:10 +12:00
Paul Chote
80c3cf479d Remove harvester dependency on RenderUnit. 2013-06-22 16:58:40 +12:00
Paul Chote
fc33c56d61 Use NormalizeSequence in RenderBuildingWall. 2013-06-20 21:53:31 +12:00
Paul Chote
5734131310 Remove unnecessary fields from RenderBuilding*. 2013-06-20 18:29:20 +12:00
Paul Chote
e99d0a0b43 RenderBuildingRefinery -> WithResources. 2013-06-20 18:28:33 +12:00
Paul Chote
c5337cdcf3 Reimplement voxel rendering with a FBO. 2013-06-15 19:31:52 +12:00
Paul Chote
7fb643f962 Add render trait for Mammoth Mk II. 2013-06-04 20:40:25 +12:00
Paul Chote
5cfde95358 Add a basic set of voxel render traits. 2013-06-04 20:40:24 +12:00
Paul Chote
c149898592 Separate IBodyOrientation from render traits. 2013-05-28 22:37:06 +12:00
Paul Chote
53aa698491 Rename LocalCoordinatesModel -> BodyOrientation. 2013-05-28 22:34:59 +12:00
Paul Chote
e7aa6ce998 Change traits to use RenderSprites directly. 2013-05-28 22:34:58 +12:00
Paul Chote
07f3c0171d Allow turret recoil to be disabled. 2013-05-28 22:34:58 +12:00
Paul Chote
1d5f67cb6a Allow turrets to have a different facing count to the actor body. 2013-05-28 22:34:58 +12:00
Paul Chote
a11e403084 Draw turrets, spinners, rotors at ZOffset +1 relative to the body. 2013-05-24 18:18:47 +12:00
Paul Chote
25dd8d9fa7 Fix aircraft shadow render order. 2013-05-23 21:25:11 +12:00
Paul Chote
f7aca32e0e Fix unit turret vs War Factory roof rendering. 2013-05-19 11:10:04 +12:00
Paul Chote
4d8dd2db7d Convert Corpse to world coordinates. 2013-05-17 18:12:29 +12:00
Paul Chote
ca5f2c3785 Split Renderable into an IRenderable interface and SpriteRenderable implementation. 2013-05-17 18:12:28 +12:00
Paul Chote
462478afdf Convert building rendering to world coordinates. 2013-05-17 18:12:27 +12:00
Paul Chote
fe716e76a7 Convert AnimationWithOffset to world coords.
Animations (via Actor.CenterPosition) now
understand Altitude, so there is potential for
mis-positioned animations if any existing altitude
hacks were missed.
2013-05-17 18:12:27 +12:00
Paul Chote
d878c96343 Change Renderable to take centered positions. 2013-05-17 18:12:26 +12:00
Paul Chote
d103a187f6 Make the guts of Renderable private. 2013-05-17 18:12:26 +12:00
Paul Chote
cca784752b Make WithSpinner consistent with WithTurret. 2013-05-15 19:17:33 +12:00
Paul Chote
c91f0dfd2f Merge the 3 turret rendering traits into WithTurret. 2013-05-15 19:17:32 +12:00
Matthias Mailänder
520bb19e44 fixes #2660 damaged silos placed by mappers using wrong sprites 2013-04-19 11:27:34 +02:00
Paul Chote
7b54bbf0b2 Convert RenderUnitSpinner -> RenderUnit + WithSpinner.
Also sets correct offsets for the units that use it.
2013-03-31 23:43:34 +13:00
Paul Chote
41dcb11030 Convert WithRotor to world coords. 2013-03-31 21:35:37 +13:00
Paul Chote
34a9675744 Remove unnecessary PPos.FromWPosHackZ() usage. 2013-03-31 21:35:30 +13:00
Paul Chote
2f80cd5f92 Pass WorldRenderer to AnimationWithOffset.OffsetFunc. 2013-03-31 19:56:11 +13:00
Paul Chote
9127d0dcf4 Support a maximum building range (Fixes #2156).
This also implements support for a per-provider
cooldown between placing structures, allowing mods
with multiple structure queues to rate-limit
placement around a single provider.

An initial delay parameter is included to
support units that deploy into a base provider and
require an initial setup time (e.g. the Surveyor
unit from C&C TW).

The range and time restrictions are not applied to
walls as a balance choice.
2013-03-30 23:00:26 +13:00
Paul Chote
5e74d3c54e Remove legacy turret/muzzle positioning code. 2013-03-29 22:04:21 +13:00
Paul Chote
bb6a1ed6e0 Introduce world offsets for turrets & armaments. 2013-03-29 20:42:56 +13:00
Matthias Mailänder
0a82bfe552 format TODO: uniformly to auto-generate task list in MonoDevelop 2013-03-27 09:45:17 +01:00
Paul Chote
0167bbfbaa Move weapon/turret definitions out of AttackBase.
Weapons are now defined with the Armament trait
and turret parameters live in Turreted.
This has the side effect of allowing any number
and distribution of weapons and turrets.
2013-03-24 11:58:45 +13:00
Paul Chote
3a11aeb434 Cache PaletteReference in RenderSimple. 2013-02-26 09:35:41 +13:00
Paul Chote
fa5cf96f40 Ditto for Corpse. 2013-02-26 09:24:43 +13:00
Paul Chote
3380817865 Pass WorldRenderer to Render(). 2013-02-25 21:11:33 +13:00
Paul Chote
000a5eaa56 Pass WorldRenderer to IRenderModifiers and replace more palette lookups. 2013-02-24 15:45:03 +13:00
Paul Chote
48d713aafd Pass a PaletteReference to RenderPreview. 2013-02-24 15:43:20 +13:00
Paul Chote
f0ba0ce2e8 Wrap palette references with a PaletteRef object. 2013-02-24 15:43:15 +13:00
Scott_NZ
11c45e4388 Start unbreaking ScaredyCat 2013-01-08 22:44:08 +13:00
Matthias Mailänder
85678de9f0 made silos more flexible for d2k mod 2012-07-24 08:29:18 +12:00
Chris Forbes
3dc39b2c9d fixed #2167 -- silly inconsistency between InfDeath and dieN sequence numbering 2012-07-02 09:42:20 +12:00
Matthias Mailänder
d498ff1085 +RenderBuildingSeparateTurret 2012-06-28 13:10:40 +12:00
James Dunne
9c49143534 New types for cell and pixel coordinate position/vectors. 2012-06-21 15:36:59 -05:00
Chris Forbes
2cdd1f7376 fix #2126 - crash on spawning a corpse for an actor which has already been destroyed 2012-06-21 09:50:02 +12:00
unknown
21ab0b461c Added straightforward hover behavior for all units. Give a unit a nonzero Altitude: in its Mobile: block and the WithShadow: trait to make it hover. 2012-06-18 20:53:38 +12:00
Chris Forbes
ff32864b47 #2160 fixed - RenderCargo support for relative altitude 2012-05-22 19:42:51 +12:00
Chris Forbes
10c1b996ed tidy up disabled handling 2012-04-06 19:34:43 +12:00
Chris Forbes
11f322a758 Fix smoke being triggered by healing as well as damage 2012-03-04 12:54:35 +13:00