abc013
8fede9d6ba
Add ValidStances checks to BlocksProjectiles and Gate.
2021-05-27 21:37:37 +02:00
teinarss
6b74093c04
Add readonly to structs
2021-03-14 15:17:57 +01:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
554486fb0b
Replace projectile, WithShadow, WithParachute shadows with tint effects.
2021-02-20 02:08:40 +01:00
Paul Chote
fb0031d34a
Rename remaining Stance references to PlayerRelationship.
2021-02-04 23:14:09 +01:00
abcdefg30
aac3174efc
Rename Stances to Relationships in the yaml api
2020-12-11 17:13:02 +01:00
abcdefg30
10f645bf77
Replace usage of the Stances dict by a method call
2020-11-14 11:04:41 +00:00
abcdefg30
eda9966d27
Rename Stance to PlayerRelationship
2020-11-14 11:04:41 +00:00
Paul Chote
3aaaa95618
Apply range modifiers to Missile RangeLimit.
2020-11-05 19:15:13 +01:00
Matthias Mailänder
b4670345dd
Don't crash when the bullet bounces outside of the map.
2020-11-04 10:59:55 +01:00
abc013
bb71b59e18
Improve explosion determination.
2020-10-31 14:55:13 +01:00
abc013
f2797c711c
Add InvalidBounceTerrain parameter to Projectile.
2020-10-31 14:55:13 +01:00
Paul Chote
cd9bf53e1a
Use nameof() to reference image fields.
2020-09-12 17:52:46 +02:00
Paul Chote
7803686aec
Rewrite sequence linting / missing file handling.
...
- Distinguish between missing sequences and missing sprites
- Lint default sequences as well as maps
- Improved performance
- Correctly handle null images
2020-09-12 17:52:46 +02:00
Matthias Mailänder
4d46464bc6
Fix an invalid target crash
...
target.CenterPosition is referenced in warhead orientation later
2020-09-06 12:21:15 +01:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
Paul Chote
ef69a3de66
Use nameof() in PaletteReference.
2020-08-15 13:41:45 +02:00
Andre Mohren
006a87692a
Removed unused imports.
2020-07-28 18:22:51 +02:00
Matthias Mailänder
0b03aca104
Fix linter for player palettes.
2020-07-19 10:44:55 +02:00
Paul Chote
ac975f4139
Convert yaml-exposed facings to WAngle.
2020-07-19 10:41:05 +02:00
reaperrr
8513a83331
Add ImpactOrientation to WarheadArgs
...
Allows to pass the horizontal facing/yaw
and vertical angle/pitch of the carrier
projectile to warheads for further use.
Add ImpactPosition to WarheadArgs
InflictDamage doesn't pass the impact pos
directly, and the very point of WarheadArgs
is to avoid adding more and more arguments
to the warhead methods.
2020-07-12 19:52:55 +02:00
Pavel Penev
8c394a4cb5
Created FlashPaletteEffectWarhead and removed the hardcoded flashing from NukeLaunch
...
Not actually hardcoded, but there was a hard dependency in NukeLaunch on FlashPaletteEffect and explicit flashing checks.
2020-07-10 13:22:54 +02:00
Pavel Penev
2e7bd4de4b
Fixed a bug with the NukeLaunch's Player palette
2020-07-10 13:22:54 +02:00
abcdefg30
7d630e63e7
Let Railgun implement ISync
2020-07-05 18:10:14 +02:00
Pavel Penev
d866286f82
Added back the DescAttributes on projectiles' Inaccuracy fields
2020-07-05 13:04:18 +02:00
Pavel Penev
76dfda164e
Moved projectile inaccuracy calculations to Common.Util
...
Also moved the InaccuracyType enum there. This also quietly adds the RangeModifiers to the calculations for all projectiles, while they were only used on Bullet so far, which seemed very wrong.
2020-07-05 13:04:18 +02:00
Pavel Penev
134d47e48c
Added InaccuracyType.Absolute to projectiles
2020-07-05 13:04:18 +02:00
Pavel Penev
c27412c83a
Added InaccuracyType enum and updated projectiles accordingly
...
Also updated the inaccuracy calculations to account for the new inaccuracy type - either based on distance up to a max defined inaccuracy at max range (old style) or based on distance with each cell (1024 range) increasing the inaccuracy with a set step.
2020-07-05 13:04:18 +02:00
Pavel Penev
4143aba595
Added syncing to some Railgun projectile fields
2020-07-05 13:04:18 +02:00
Paul Chote
7b81b9e806
Bullet Facing -> WAngle.
2020-06-01 21:34:32 +02:00
Paul Chote
a93aea3e4e
AreaBeam Facing -> WAngle.
2020-06-01 21:34:32 +02:00
Paul Chote
2cfacc2c7d
ProjectileArgs facing -> WAngle.
2020-06-01 21:34:32 +02:00
Matthias Mailänder
8f558d2b47
Add a bullet bounce sound.
2020-05-21 14:44:13 +02:00
Paul Chote
552bceb07c
SpriteEffect facing -> WAngle.
2020-05-09 10:20:23 -05:00
Paul Chote
fe58ed1283
Animation facing -> WAngle.
2020-05-09 10:20:23 -05:00
abcdefg30
d2db0913ac
Fix the missle jamming chance calculation
2020-03-08 16:33:23 +01:00
reaperrr
9dcba8710b
Add turret-linking support to HitShape
...
Allows to link a HitShape to the
position and facing of a turret.
2020-01-25 13:38:35 +01:00
Pavel Penev
b00154e2bc
Created ShakeScreenWarhead and removed the hardcoded shaking from NukeLaunch and MadTank
2020-01-24 13:09:37 +01:00
reaperrr
6220d7e62e
Introduce WarheadArgs
...
- Passes additional arguments to warheads on impact
- Uses that to reduce parameter count of DoImpact by 1
2020-01-21 19:31:34 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
7937383bf4
Replace scaleSizeWithZoom with SpriteAnnotation.
2019-10-20 23:46:33 +02:00
reaperrr
701b1524e5
Fix InstantHit crashing if blockable and target is dead
...
If the weapon has TargetActorCenter, the projectile is Blockable
and the target dies the same tick the projectile is fired but before
the 'blocked' check is performed, the target.CenterPosition lookup
would crash since the target has become invalid.
Work around this by ignoring TargetActorCenter and using
args.PassiveTarget position instead if the target is already dead.
2019-07-12 22:09:14 +02:00
Paul Chote
ebf2ce32c0
Make sure braces for multi-line statements are on their own lines.
2019-06-08 19:26:53 +02:00
Paul Chote
dabc7ec8dd
Remove unnecessary this. references.
2019-06-08 13:19:27 +02:00
reaperrr
666169e9b9
Add LockOnInaccuracy to Missile
2019-05-28 22:13:38 +02:00
reaperrr
71995dbcbe
Fix Bullet contrails
2019-05-26 13:02:54 +02:00
Paul Chote
78a70be0d4
Fix and enable SA1133, SA1134 style rules.
2019-05-24 10:47:57 +02:00
reaperrr
a2775a5c0f
Fix DivideByZero crashes in Railgun projectile
2019-05-19 16:56:49 +02:00
reaperrr
90325305d6
Minor projectile clean-ups and perf optimizations
2019-05-19 16:56:49 +02:00