RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
RoosterDragon
bcfa0c9ae9
Review StyleCop rules.
...
- Enforce SA1604 ElementDocumentationShouldHaveSummary.
- Enforce SA1629 DocumentationTextShouldEndWithAPeriod.
- Turn off some rules covered by IDExxxx rules.
- Remaining rules are treated as part of OpenRA style.
2023-03-18 12:46:10 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
dnqbob
ac92162825
Weapon checks valid frozen actor
2022-11-22 21:49:12 +01:00
dnqbob
a25558b550
Weapon doesn't check warheads in IsValidAgainst
2022-11-22 21:49:12 +01:00
dnqbob
e8d9e2dfa9
Make weapon can target attacker itself an option.
2022-11-22 21:49:12 +01:00
penev92
c21bf31ebc
Fixed weapon docs not including WeaponInfo
...
Also made some code cleanups in the weapon docs export code.
2022-09-02 20:56:55 +02:00
abcdefg30
82692b9d7f
Fix crashes in WeaponInfo when warheads or projectiles cannot be created
2022-06-26 23:46:51 +01:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Matthias Mailänder
07815143f1
Fix CA1825 warnings on empty array initialisation.
2021-12-06 13:19:28 +01:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
53b781960c
Change FieldLoader.LoadUsing to use nameof
2021-02-28 18:43:51 +01:00
teinarss
13581c030d
Use in parameter for Target
2020-11-06 22:02:24 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01: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
reaperrr
0e81abc21b
Fix weapons not accounting for Air
...
If a weapon was aiming at a target position rather
than an actor target, it would always check target types
of the terrain below, ignoring altitude (and therefore ignoring
"InvalidTargets: Air").
2020-06-12 21:00:53 +02:00
Paul Chote
2cfacc2c7d
ProjectileArgs facing -> WAngle.
2020-06-01 21:34:32 +02:00
reaperrr
2b4035979b
Make all warheads use WarheadArgs
...
Instead of passing damageModifiers directly.
2020-05-02 03:09:18 +03:00
abcdefg30
aeacc86028
Remove a loop closure guard variable
2020-02-09 12:18:09 +01:00
abcdefg30
5c4ec1bf0e
Fix a crash when a SourceActor does not occupy space
2020-02-09 12:18:09 +01:00
abcdefg30
e3f545cae9
Make WarheadArgs.Source nullable
2020-02-09 12:18:09 +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
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
reaperrr
28c89920ac
Add dynamic muzzle LaunchEffect facing plumbing
2018-09-28 21:32:34 +02:00
RoosterDragon
5bd5a384b7
Use a BitSet for representing target types.
...
- Rename Bits<T> to BitSet<T>.
- Implement set based helpers for BitSet<T>.
- When representing TargetTypes of ITargetable in various traits, use a BitSet<TargetableType> instead of HashSet<string> for better performance & reduced memory usage.
- Fix FieldLoader to trim input values when generating a BitSet<T>.
- Require T in BitSet<T> and BitSetAllocator<T> to be a class since it's just a marker value. This allows the JIT to instantiate generic code for these classes once, as they don't benefit from specialized code for T. (Typically JITs will generate shared code for all reference types, and unique code for every value type encountered).
2018-03-21 12:07:44 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
reaperrr
834a40b18d
Refactor BurstDelay to BurstDelays
...
Allowing to set custom per-burst delays.
2017-08-20 20:48:25 +02:00
reaperrr
afa8d3522c
Add strafing support to weapons
2017-07-13 19:12:16 +02:00
reaperrr
edffaa4987
Introduce Weapon.TargetActorCenter and adapt projectiles
...
This also fixes issues with attackers that don't have their own Attack
trait.
2017-06-24 11:24:17 +01:00
reaperrr
b8c251cf41
Add StartBurstReport to WeaponInfo
...
The FS Juggernaut firing sound already contains 3 shots, so without this, players would hear a total of 9(!) shots per salvo.
2017-05-14 11:49:38 +01:00
Andre Mohren
d68bc48ba5
Added ReloadSound and ReloadSoundDelay to weapon declarations.
2017-04-30 22:43:32 +02:00
Paul Chote
b803034cef
Resolve yaml removals in weapon definitions.
2017-01-24 22:19:17 +00:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Ori Bar
fabe799907
Remove DelayedAction from WeaponInfo and replace it with the more serialization friendly DelayedImpact
2016-11-04 02:24:43 +02:00
Matthias Mailänder
71743b3b4a
Only sync projectiles and future synced effects.
2016-06-13 14:35:28 +02: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
reaperrr
56ab3f43da
Remove bitrotted WeaponInfo.Charges
...
There is no logic attached anymore (or never was).
2016-01-24 12:58:39 +01:00
RoosterDragon
21292061f9
Added "PERF: Avoid LINQ." comments.
2015-12-12 21:05:13 +00:00
RoosterDragon
0fab3ec1b2
Remove LINQ in some performance critical AutoTarget paths.
2015-12-12 20:55:18 +00:00
RoosterDragon
dcf375a412
Store Targetables in Actor.
...
This can be used to avoid several lookups for these traits, as well as allow Actor to provide specialised methods to deal with target types efficiently. This also reduces some code duplication.
2015-12-12 20:55:17 +00:00
Paul Chote
03693a06eb
Add CurrentSource parameter to ProjectileArgs.
2015-12-01 07:47:39 +02:00
atlimit8
74a9dc6793
Added IRangeMultiplier
2015-09-24 16:37:43 -05:00
atlimit8
fadfd179cb
Cache FrozenActor ITargetable.TargetTypes union
2015-09-02 23:19:00 -05:00
atlimit8
f5c3575c5a
Support multiple ITargetable traits
2015-09-02 23:14:40 -05:00
RoosterDragon
2f9ca36506
Update WeaponInfo to use HashSets for some fields directly.
2015-08-27 21:48:12 +01:00
Matthias Mailänder
7447e0bf93
rename WRange to WDist
2015-07-09 10:55:38 +02:00
penev92
fe94b7686e
Introduce IWarhead and move Warhead to Mods.Common
2015-07-06 22:24:20 +03:00