reaperrr
84246d287d
Merge two ifs into one in SpawnActorOnDeath
2020-09-05 17:16:00 +01:00
reaperrr
6d0fbfa21f
Explodes performance optimization
...
Cache armaments on creation, avoid LINQ.
Also merge and put first the DamageThreshold == 0
check in Damaged, because the common default IS 0,
so most of the time the IsTraitDisabled and
IsInWorld checks are redundant.
2020-09-05 17:16:00 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +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
tovl
434c46058f
Disallow units idling on service depot.
2020-01-04 16:04:27 +00:00
abcdefg30
baa50c9c53
Pass DamageTypes in Explodes
2019-12-28 10:54:27 +01:00
Paul Chote
6eaf615798
Fix conditional traits that incorrectly override INotifyCreated.
2019-07-14 00:41:59 +02:00
Paul Chote
78a70be0d4
Fix and enable SA1133, SA1134 style rules.
2019-05-24 10:47:57 +02:00
abcdefg30
1bb319425b
Add Sound.Play overloads that play a random sound from a list
2019-04-20 01:22:30 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
807a40c209
Remove IExplodeModifier interface.
2018-11-22 22:16:56 +01:00
Andre Mohren
b1a44086a0
Removed unused using directives.
2018-11-17 17:23:22 +00:00
Andre Mohren
640078a2b1
Refactored Health usage to IHealth.
2018-09-29 18:12:40 +02:00
Chris Forbes
d4ef841678
Convert masses of HashSet<string> to BitSet<DamageType>
2018-07-28 20:12:42 +01:00
Zimmermann Gyula
e9c3927b0c
Filter Explodes->DeathTypes when Threshold is above 0.
2018-07-26 13:10:50 +01:00
Mustafa Alperen Seki
6073de52ca
Add DamageSource to Explodes
2018-07-26 13:04:59 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Arular101
30acee38c9
Cast to long to avoid overflow when multiplying by the health
2018-01-13 17:32:34 +01:00
Raffael Zica
f2b5040d30
YamlException is now thrown if WeaponInfo can not be found in Ruleset.Weapons
...
Removed invalid spacing at the end of the line 36 in ThrowsShrapnel
Prevented NullReferenceException in cases where weapons aren't optional
2017-10-14 14:12:08 +02:00
reaperrr
fdb3866238
Remove FootprintUtils
2017-07-13 17:43:41 +02:00
reaperrr
faf9f7cede
Change Explodes.Weapon default to null
...
FieldLoader.Require makes the default pointless, so it makes more sense to change it to null.
2017-07-02 16:03:40 -05:00
reaperrr
a6b9bab033
Make Explodes conditional
2017-07-02 16:03:40 -05:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
9ddfdc45b3
Introduce SoundType enum.
2016-12-23 11:34:23 +00:00
reaperrr
a0934418cf
Add support for footprint explosions to Explodes
2016-12-10 13:45:12 +01:00
reaperrr
2d194b077d
Make some Explodes property descs a bit more precise
2016-12-10 13:45:12 +01:00
reaperrr
1b3884de23
Make Explodes implement interfaces explicitly
2016-12-10 13:45:12 +01:00
Zimmermann Gyula
cf8fff2b99
Remove passing the warheads from DamageWarhead to AttackInfo.
...
Added a Damage class to pass damage value and damage(types) instead.
This removes a great amount of overhead and longterm opens possibilities to have damagetypes without warheads.
2016-07-12 10:09:49 +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
RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
abcdefg30
4a4608e1f3
Rename DeathType to DeathTypes of Explodes
2015-11-11 21:23:40 +01:00
abcdefg30
a5aff66848
Polish the documentation in Explodes.cs
2015-11-11 21:23:27 +01:00
DArcy Rush
c0850e44f4
Explodes trait has new 'DamageThreshold' property.
...
An actor will explode when its health is below the
defined percentage of its max health.
2015-10-24 23:02:42 +01:00
atlimit8
49d7604bd9
Cache WeaponInfo look-ups
2015-10-03 22:29:40 -05:00
Paul Chote
ef55d646f7
Unstatic the Sound class.
2015-09-20 14:11:06 +01:00
atlimit8
33915fb271
DeathType Count check in Explodes
2015-09-09 18:35:55 -05:00
atlimit8
8250f223c4
More HashSet trait fields & Lint support
2015-09-05 16:59:30 -05:00
RoosterDragon
901e604cf3
Replace arrays with sets.
...
In places where arrays were being treated as a set, just create a set directly. This reveals the intention of such collections better, and also improves performance by allowing set based methods to be used.
2015-09-03 20:09:24 +01:00
reaperrr
3ae75f870c
Add Explodes safeguards
...
Accept both null and empty string to disable explosion weapons.
Throw specific exception if weapon was not found.
Require Weapon (EmptyWeapon stays optional).
2015-08-17 20:11:38 +02: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
penev92
41cdc57ea5
Fix traits implementing INotifyKilled
2015-07-06 22:24:41 +03:00
penev92
32bb70abca
Remove DamageWarhead.DeathType in favor of DamageWarhead.DamageTypes
2015-05-24 00:15:07 +03:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
reaperrr
d07db9c6a9
Move Guard, CashTrickler, Explodes, SelfHealing, Sellable and Crushable to Mods.Common.
...
Extract Guardable trait from Guard into own file.
2015-01-04 18:12:08 +01:00