Commit Graph

551 Commits

Author SHA1 Message Date
Paul Chote
a0c256173b Merge pull request #8851 from penev92/bleed_rename
Some more renaming from "race" to "faction"
2015-08-02 15:34:41 +01:00
Oliver Brakmann
1a83304f28 Merge pull request #8765 from reaperrr/arty-expl
Improved Explodes trait and how artillery explodes
2015-08-02 16:00:09 +02:00
Oliver Brakmann
9e2f06aa2d Merge pull request #8876 from pchote/music
Refine the music playlist code.
2015-08-02 15:49:13 +02:00
Oliver Brakmann
4b6c37f90f Merge pull request #8878 from pchote/fix-cratebadger-spawn
Fix crate drop aircraft spawn height.
2015-08-02 14:51:42 +02:00
Paul Chote
5f2c62634c Merge pull request #8817 from penev92/bleed_cleanups
Touch up a few files
2015-08-02 09:30:43 +01:00
Paul Chote
1d307bfe07 Disable music auto-play unless tracks are installed. 2015-08-01 23:05:09 +01:00
Paul Chote
9b3ef9e7f7 Move MusicPlaylist to Mods.Common. 2015-08-01 22:56:07 +01:00
Paul Chote
180f6e83d4 Fix crate drop aircraft spawn height. 2015-08-01 20:01:45 +01:00
Taryn Hill
6fa1f757b0 Add Map.DistanceAboveTerrain(WPos) and Actor.IsAtGroundLevel() extension method 2015-08-01 11:48:47 -05:00
reaperrr
c3d996cb62 Adds WithReloadingTurret render trait to TD mod 2015-08-01 17:15:34 +02:00
Paul Chote
3dda305524 Make NukePower fields readonly. 2015-08-01 14:19:12 +01:00
Paul Chote
6f60b16f06 Make SmokeTrailWhenDamaged fields readonly. 2015-08-01 14:19:12 +01:00
Paul Chote
60305face7 Make WithVoxelBody fields readonly. 2015-08-01 14:19:11 +01:00
Paul Chote
a127c6b050 Make WithVoxelBarrel fields readonly. 2015-08-01 14:19:11 +01:00
Paul Chote
322d941332 Make WithProductionOverlay fields readonly. 2015-08-01 14:19:11 +01:00
Paul Chote
038e8018b9 Make WithBuildingPlacedOverlay fields readonly. 2015-08-01 14:19:11 +01:00
Paul Chote
4e27ac9aac Make WithTurret fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
d20819735c Make WithRotor fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
f91b28a2a0 Make WithRepairOverlay fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
bb092ec07b Make WithRepairAnimation fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
c5becaab9b Make WithIdleOverlay fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
a2d069ce55 Make WithHarvestOverlay fields readonly. 2015-08-01 14:19:09 +01:00
Paul Chote
8e6b764284 Make WithBuildingPlacedAnimation fields readonly. 2015-08-01 14:19:09 +01:00
Paul Chote
0065d27c68 Make WithBuildingExplosion fields readonly. 2015-08-01 14:19:09 +01:00
Paul Chote
6a586fe501 Make RenderVoxels fields readonly. 2015-08-01 13:28:56 +01:00
Paul Chote
c6ecd772c4 Make RenderRangeCircle fields readonly. 2015-08-01 13:28:19 +01:00
Paul Chote
4b4cc52aa0 Make RenderDetectionCircle fields readonly. 2015-08-01 13:27:57 +01:00
Paul Chote
080f1880b9 Make RenderBuildingTurreted fields readonly. 2015-08-01 13:27:40 +01:00
Paul Chote
ef619a186c Make ExternalCapturableBar fields readonly. 2015-08-01 13:27:09 +01:00
reaperrr
5941914ced Fix WithProductionDoorOverlay namespace 2015-07-31 21:08:25 +02:00
Pavel Penev
10c5b82ef0 Rename BuildableInfo.ForceRace 2015-07-31 05:41:19 +03:00
Pavel Penev
a8dae72409 Clean ProvidesPrerequisite.cs of "race" 2015-07-31 05:38:49 +03:00
Pavel Penev
1e9cc50805 Clean Production.cs of "race" 2015-07-31 05:38:43 +03:00
reaperrr
c205afcf4d Add descriptions and LoadedChance to Explodes trait
'Chance' only allows to control whether the actor explodes at all.
'LoadedChance' allows to control how likely the actor will explode violently using Weapon, and otherwise falls back to EmptyWeapon.
2015-07-30 21:23:55 +02:00
Oliver Brakmann
439bc4ab34 Revert "HACK: Testcase for edge clamping."
This reverts commit fb84f1157e.
2015-07-30 16:36:40 +02:00
Paul Chote
fb84f1157e HACK: Testcase for edge clamping.
Remove before merging!
2015-07-30 08:18:45 +01:00
reaperrr
398f02c5db Remove redundant ISync and ITick from Attack* traits
ISync is implemented by AttackBase, so there's no need for other Attack traits to implement it again.
AttackTurreted inherits AttackFollow, which already implements ITick.
2015-07-29 17:45:30 +02:00
Oliver Brakmann
eada254ad3 Fix crates dying while not in the world
On large maps, it can take the delivery aircraft longer than the crate's
lifetime to reach the paradrop location, so the crate will be destroyed while it's still in the aircraft, leading to an attempt to get a trait from a destroyed object in the Paradrop trait.

This fixes the lifetime logic of crates so that the lifetime will only be increased when the crate is actually in the world. This will probably also better reflect the intention behind the Lifetime property, which I assume was meant to be the time the crate would be on the map available for pickup, rather than the lifetime of the actor itself.
2015-07-29 12:35:58 +02:00
Oliver Brakmann
dff56f6c20 Merge pull request #8781 from pchote/heightmap-shroud
Add plumbing for heighmap-aware shroud and map bounds checks.
2015-07-28 15:35:51 +02:00
Pavel Penev
7701980b76 Simple code style cleanups 2015-07-28 14:21:17 +03:00
Pavel Penev
9801d89e75 Merge pull request #8813 from pchote/fix-bounds-checks
Replace map.Contains with proper array bounds checks.
2015-07-28 04:27:53 +03:00
Matthias Mailänder
9fefc1f7b7 Merge pull request #8816 from reaperrr/common-armor
Moved Armor trait to Mods.Common
2015-07-27 22:04:29 +02:00
reaperrr
89f3718aa7 Move Armor trait to Mods.Common 2015-07-27 21:12:03 +02:00
Paul Chote
86ba26e013 Convert shroud calculations and rendering to PPos. 2015-07-27 19:34:50 +01:00
Paul Chote
e8794032e0 Introduce initial PPos plumbing.
PPos is best thought of as a cell grid applied in
screen space.  Multiple cells with different
terrain heights may be projected to the same PPos,
or to multiple PPos if they do not align with the
screen grid.

PPos coordinates are used primarily for map edge
checks and shroud / visibility queries.
2015-07-27 19:34:49 +01:00
Paul Chote
a8c6a1aa97 Correct Contains check in DomainIndex. 2015-07-27 19:06:20 +01:00
Paul Chote
3a7300810c Correct Contains check in BridgeLayer. 2015-07-27 19:06:20 +01:00
Paul Chote
0b5b612757 Correct Contains check in BuildingInfluence. 2015-07-27 18:43:51 +01:00
Matthias Mailänder
3b25a2029a Merge pull request #8805 from obrakmann/fix8802_enemy-unit-selection
Fix not being able to select enemy units
2015-07-27 19:38:37 +02:00
Oliver Brakmann
618ba6342c Fix not being able to select enemy units 2015-07-27 13:07:07 +02:00