Commit Graph

143 Commits

Author SHA1 Message Date
Oliver Brakmann
0192919501 Fix crash in Beacon ctor when it runs during instead of between ticks
Causes an exception like below, for example when calling the Lua API's Beacon.New() method.

``Exception of type `System.InvalidOperationException`: Collection was modified; enumeration operation may not execute.``
2016-05-19 23:08:01 +02:00
reaperrr
bd2a24af55 Merge pull request #11223 from Mailaender/missile-dead
Cleaned up logically dead Missile code.
2016-05-08 14:09:27 +02:00
Matthias Mailänder
5462097c42 Merge pull request #11205 from reaperrr/rangelimit-wdist
Refactored Missile.RangeLimit to be a WDist value
2016-05-07 15:10:49 +02:00
Matthias Mailänder
3d865d46e7 Removed logically dead code.
targetPassedBy is always true in this section
and - times - is +.
2016-05-05 10:19:38 +02:00
abcdefg30
c3c29ee7a2 Make the circle and arrow sequences of Beacon optional 2016-05-02 17:23:17 +02:00
Matthias Mailänder
59fbfbc851 Don't enforce beacons to be player palettes. 2016-05-01 12:29:38 +02:00
Matthias Mailänder
9f4cdb9843 Unhardcode player beacons for documentation and lint testing. 2016-05-01 12:27:02 +02:00
Matthias Mailänder
76124b7c79 Unhardcode beacon sprites for documentation and lint testing. 2016-05-01 12:21:13 +02:00
reaperrr
1258ddde7f Refactored Missile.RangeLimit from ticks to WDist
Changed default from 'unlimited' fuel to weapon range.
2016-04-30 16:02:15 +02:00
Paul Chote
59f5e24189 Simplify and fix missile turnaround facing check. 2016-04-23 17:14:56 +01:00
reaperrr
863772675b Merge pull request #11165 from pchote/fix-missile-flip
Fix missile facing check.
2016-04-23 15:15:59 +02:00
reaperrr
3dcb7bc02b Fix missiles not moving to CruiseAltitude if launched above it 2016-04-23 14:50:35 +02:00
Paul Chote
13cfd3699d Fix missile facing check. 2016-04-23 13:37:08 +01:00
reaperrr
65f8b9f63b Merge pull request #11141 from Mailaender/missile-targetedPassedBy
Removed redundant targetPassedBy check.
2016-04-21 12:30:14 +02:00
RoosterDragon
178fcfaf8c Use Contains method on Selection when possible.
This allows the set to be utilized for a fast check, rather than degrading to a linear search via LINQ.
2016-04-19 21:19:36 +01:00
Matthias Mailänder
3e536a61e6 targetPassedBy is always false here so avoid redundant check. 2016-04-17 14:30:22 +02:00
Oliver Brakmann
52d0d8781d Merge pull request #10938 from reaperrr/explo-image
Unhardcode Explosion "Image"
2016-03-22 21:58:03 +01:00
reaperrr
a83f44d907 Unhardcode Explosion "Image"
Add ExplosionCollection property to CreateEffectWarhead
2016-03-20 13:48:53 +01:00
Paul Chote
65df25b1a4 Remove lazy loading of binary map data. 2016-03-18 20:16:24 +00:00
abcdefg30
f3c8dd0397 Merge pull request #10886 from reaperrr/fix-gravitybomb
Fix GravityBomb crash when Image is null
2016-03-12 18:36:44 +01:00
reaperrr
d3ca9e1733 Fix Smoke facings to not track spawner's facing 2016-03-12 13:12:42 +01:00
reaperrr
03dd192de8 Make shadow palette of GravityBomb configurable 2016-03-12 12:16:40 +01:00
reaperrr
2378b427fe Fix GravityBomb crashing when Image is null 2016-03-06 20:04:41 +01:00
abcdefg30
b1b4c0bbd4 Merge pull request #10856 from reaperrr/smoke-facings
Added facings support to sprite trails
2016-03-06 12:18:29 +01:00
reaperrr
717a5063d9 Add facings support to projectile trails and SmokeTrailWhenDamaged 2016-03-05 13:49:07 +01:00
reaperrr
d063087de9 Add TrailSequences to Bullet
And use that instead of Sequences.
2016-03-05 13:45:06 +01:00
reaperrr
d3ab8dbd01 Add facing support to Smoke effect 2016-03-01 23:37:27 +01:00
Matthias Mailänder
a7a6815f99 Lint test the nuke missile sprites. 2016-02-28 20:54:10 +01:00
abcdefg30
85ee351d96 Merge pull request #10636 from reaperrr/missile-speed
Refactor naming of Missile's speed-related properties
2016-02-24 17:39:25 +01:00
Paul Chote
e71225496b Clarify GPL version. 2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9 Update licence header year. 2016-02-21 16:27:31 +00:00
abcdefg30
b27950b517 Unhardcode the palette the missile weapon of the NukePower uses 2016-02-14 22:32:53 +01:00
reaperrr
462b8583a2 Refactor Missile speed nomenclature 2016-02-14 13:41:27 +01:00
reaperrr
8729f39154 Fix Missile projectile crashing with NRE if it has no Image 2016-02-13 01:06:22 +01:00
Paul Chote
b0bd252343 Move Util to Mods.Common. 2016-01-19 23:35:18 +00:00
RoosterDragon
8e89a6a696 Simplify names, remove unused usings, remove redundant casts. 2016-01-17 21:35:36 +00:00
Paul Chote
3b18c7815d Remove Util.GetFacing. 2016-01-16 22:38:17 +00:00
Paul Chote
8a8368b97b Use .Yaw.Facing in Missile. 2016-01-16 22:38:17 +00:00
reaperrr
671f5af723 Unhardcode Missile freefall gravity 2016-01-01 15:52:12 +01:00
Matthias Mailänder
cd730914db Merge pull request #10119 from RoosterDragon/sort-effects-with-actors
Interleave renderables for effects and actors
2015-12-31 12:31:47 +01:00
Paul Chote
8771562e37 Reduce projectile search radius to match warheads. 2015-12-30 19:32:00 +00:00
Paul Chote
871d328c35 Fix collision detection for Missiles and Bullets. 2015-12-30 19:15:17 +00:00
reaperrr
c7b61799dc Make Bullet and Missile contrail ZOffset customizable
And give them a high default to avoid contrails "hiding" below large sprites.
2015-12-28 21:28:32 +00:00
reaperrr
2c5998e5d2 Make actor Contrail ZOffset customizable 2015-12-28 21:28:30 +00:00
RoosterDragon
e7f127976a Fix floating text ZOffset. 2015-12-28 21:28:29 +00:00
reaperrr
a7b5800d6f Make AreaBeam and LaserZap Z sorting customizable 2015-12-28 21:28:27 +00:00
Paul Chote
310222eb0e Use RgbaColorRenderer for rendering contrails. 2015-12-19 12:28:10 +00:00
Paul Chote
50dfa6df8f Fix Contrail field description. 2015-12-19 12:28:08 +00:00
atlimit8
bee590a057 Merge pull request #10208 from RoosterDragon/perf-comments
Added some performance comments
2015-12-13 20:46:07 -06:00
RoosterDragon
912a0630e2 Tweak some Render methods for efficiency. 2015-12-12 20:42:43 +00:00