abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
1b9f23eca0
Replace AnnounceOnBuild with VoiceAnnouncement.
2018-11-03 15:09:14 +01:00
Paul Chote
7e67ce0139
Pass CaptureTypes through the INotifyCapture interface.
...
Also make it require explicit implementation.
2018-11-03 14:47:22 +01:00
Andre Mohren
cc036cfd62
Implement AnnounceOnBuildInfo.OnlyToOwner
2018-10-27 15:21:33 +02:00
Paul Chote
09d8aafddf
Add a lint test for audio notifications.
...
Only traits are linted - the UI still hardcodes
too many audio references for this to be worthwhile.
2018-09-26 13:57:05 +02:00
Zimmermann Gyula
813e53f823
Fix deathsounds regression.
2018-07-29 09:13:53 -07:00
Chris Forbes
d4ef841678
Convert masses of HashSet<string> to BitSet<DamageType>
2018-07-28 20:12:42 +01:00
reaperrr
83f100618b
Make INotifyAppliedDamage require explicit implementation
2018-04-29 11:59:49 +01:00
reaperrr
3a82b13093
Make INotifyKilled require explicit implementation
2018-04-29 11:59:49 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
RoosterDragon
85c948fd8d
Add a streaming audio playback interface.
...
This allows audio to be streamed, rather than needed to be fully loaded into memory.
2017-07-14 23:02:49 +01:00
reaperrr
1e63013eb1
Add support for random sounds to AmbientSound
2017-04-22 14:36:55 +02:00
Paul Chote
f219d40aa1
Improve support for overlapping sounds.
2017-02-11 16:19:58 +00:00
reaperrr
e23a866979
Move RandomDelay from AmbientSound to Util
2017-02-04 12:31:11 +01:00
Paul Chote
647ee841b4
Overhaul AmbientSound trait.
2017-02-03 22:01:12 +00:00
Paul Chote
ba9927d34e
Add Condition support to WithDeathAnimation / DeathSounds.
2017-01-29 18:57:36 +00:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
268ed016ab
Rename UpgradableTrait to ConditionalTrait.
2016-12-23 23:28:34 +00:00
Paul Chote
9ddfdc45b3
Introduce SoundType enum.
2016-12-23 11:34:23 +00:00
reaperrr
77a134da91
Move INotifyDamageStateChanged to mod code and require explicit implementation
2016-10-22 18:21:52 +02:00
reaperrr
a6b09342bc
Make INotifyBuildComplete require explicit implementation
2016-10-22 18:21:52 +02: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
reaperrr
c153277e8b
Add AttackSounds trait
...
This trait plays sounds when preparing to attack or attacking.
2016-07-02 16:02:00 +02:00
abcdefg30
af3d8d4860
Add support for playing a "LoseNotification" to the old owner through CaptureNotification
2016-04-17 16:17:32 +02:00
abcdefg30
a1d39b0a42
Document the existing fields in CaptureNotificationInfo
2016-04-17 15:29:27 +02:00
abcdefg30
c8cfb10ab1
Reduce the usage of different ways to determine the new owner
...
We don't need the LocalPlayer check if we only play the sound to the new owner,
and captor.Owner == newOwner in this case.
2016-04-17 15:26:53 +02:00
Matthias Mailänder
be3ea7b79e
Move audio traits into Sounds namespace.
2016-04-10 22:34:10 +02:00
Matthias Mailänder
c4475539a1
Move CaptureNotification into Sounds sub-folder.
2016-04-10 22:33:37 +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
642e213049
Fix DeathSounds not working without DeathTypes defined
2015-12-04 22:06:16 +01:00
RoosterDragon
bfe1804bf6
Fix some spellings.
2015-11-27 16:19:59 +00:00
reaperrr
bbf5a4a06d
Make AmbientSound upgradable and add customisable interval
2015-10-31 13:43:57 +01:00
RoosterDragon
262ab408b5
Speed up checks for IOccupySpace trait.
...
Eagerly load the trait (if it exists) in Actor, and use this reference to avoid having to perform self.Info.HasTraitInfo<IOccupySpaceInfo>() checks.
2015-10-14 20:46:15 +01:00
Paul Chote
ef55d646f7
Unstatic the Sound class.
2015-09-20 14:11:06 +01:00
atlimit8
8162fa27ab
Add ActorInfo.HasTraitInfo<T>() requiring ITraitInfo types
2015-09-19 09:49:24 -05:00
atlimit8
85fab45451
Remove Actor.HasTrait<T>()
2015-09-19 09:49:23 -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
penev92
bb648decc3
Rename Player.Country to Player.Faction
2015-07-15 04:06:52 +03:00
penev92
2e04fb5ddd
Rename Faction trait members
...
Rename Faction.Race to Faction.InternalName
2015-07-14 18:50:39 +03:00
atlimit8
1bcc07ce69
Add property requirements to safe traits
2015-07-12 12:44:30 -05:00
penev92
41cdc57ea5
Fix traits implementing INotifyKilled
2015-07-06 22:24:41 +03:00
Matthias Mailänder
24444d4af3
fix a crash in AmbientSound
2015-07-05 18:07:11 +02:00
Matthias Mailänder
0f8d22c9a6
rename for consistency
2015-06-20 12:11:45 +02:00
penev92
32bb70abca
Remove DamageWarhead.DeathType in favor of DamageWarhead.DamageTypes
2015-05-24 00:15:07 +03:00
reaperrr
a99f69035c
Made AnnounceOnKill and AnnounceOnBuild voices customisable.
2015-05-23 13:53:38 +02:00
reaperrr
3777a8bca9
Moved Voice-related extensions to VoiceExts.
...
Note: This is a work-around until Selectable can be moved to Mods.Common, which is when the voice extensions should be moved back to ActorExts.
Pulled phrase check before foreach in PlayVoice ActorExts.
Removed superflous actor parameter from PlayVoice/PlayVoiceLocal.
Simplified PlayVoice extensions.
variant is no longer customisable, as all current usages use self.Owner.Country.Race anyway.
2015-05-23 13:46:01 +02:00
reaperrr
5e2c781c8a
Adds PlayVoice, PlayVoiceLocal and HasVoice to ActorExts.
...
Makes Cargo unload voice customisable.
2015-05-22 01:51:55 +02:00