Commit Graph

1367 Commits

Author SHA1 Message Date
abcdefg30
6342b40bfd Merge pull request #11499 from Mailaender/damaged-by-terrain
Merged PoisonedByTiberium and DamagedWithoutFoundations into DamagedByTerrain
2016-07-10 22:22:29 +02:00
Matthias Mailänder
8df4e9e04c Merge PoisonedByTiberium and DamagedWithoutFoundations
into DamagedByTerrain.
2016-07-10 19:44:19 +02:00
Matthias Mailänder
e8aa46e0d7 Merge pull request #11474 from obrakmann/player-experience
Add foundation for player experience tracking
2016-07-10 16:08:14 +02:00
Matthias Mailänder
90439ac64c Merge pull request #11574 from obrakmann/fix_non-combatant-unitcratepickup
Prevent non-combatant players from receiving units from crate pickups
2016-07-10 15:51:32 +02:00
Emiel Suilen
c3e862b2ca Add a PlayerExperience trait 2016-07-10 15:30:17 +02:00
Oliver Brakmann
5157ac917f Cache PlayerResources in PlayerStatistics
and remove a couple of redundant fields.
2016-07-10 15:30:17 +02:00
Matthias Mailänder
da3aaf4318 Merge pull request #11620 from pchote/fly-on-unreserve
Order landed aircraft to take off if their reservation is cancelled.
2016-07-10 09:28:16 +02:00
Matthias Mailänder
c3de3a0a90 Merge pull request #11619 from pchote/fix-depot-sell
Fix service depot selling.
2016-07-09 21:17:06 +02:00
Paul Chote
b87020f93f Order landed aircraft to take off if their reservation is cancelled. 2016-07-09 12:08:48 +01:00
Paul Chote
b0c9d49d14 Fix INotifyRepair argument order. 2016-07-09 11:12:56 +01:00
Paul Chote
7325f0e733 Fix service depot animation breaking sell. 2016-07-09 11:11:31 +01:00
Zimmermann Gyula
ad0c38d352 Fix a wrong check in LeavesTrails. 2016-07-09 02:08:33 +02:00
Oliver Brakmann
b080417db3 Prevent non-combatant players from receiving units from crate pickups 2016-07-08 13:24:25 +02:00
Taryn Hill
7a0d12dd51 Implement ExitsDebugOverlay and ExitsDebugOverlayManager 2016-07-07 08:57:44 -05:00
Taryn Hill
59d97b8447 WithTextDecoration: Move exception to Info via IRulesetLoaded 2016-07-05 14:09:27 -05:00
evgeniysergeev
e83ffbec1c add RemoveSmudge function and trait 2016-07-05 12:03:04 +03:00
reaperrr
31d822bcd2 Merge pull request #11565 from Mailaender/withtextdecoration
Added WithTextDecoration
2016-07-04 18:37:28 +02:00
Oliver Brakmann
9ab2ce2362 Merge pull request #11520 from reaperrr/IdleWander
Make civilians wander around when idle
2016-07-04 11:50:35 +02:00
Matthias Mailänder
6148e8d8a3 Rename Stances to ValidStances. 2016-07-04 00:34:28 +02:00
Matthias Mailänder
a6e42823e5 Add WithTextDecoration. 2016-07-03 21:31:58 +02:00
Matthias Mailänder
9833a56e65 Merge pull request #11556 from pchote/gamespeeds
Port game speed selection to new lobby backend.
2016-07-03 20:55:09 +02:00
abcdefg30
430b654460 Merge pull request #11428 from reaperrr/attack-delay
Allow attack anims/overlays to start before weapons fire
2016-07-03 18:58:07 +02:00
Paul Chote
7caf636222 Port game speed selection to new lobby backend. 2016-07-03 15:46:08 +01:00
Taryn Hill
3f6f918b3d GivesBounty: Replace Stances with ValidStances 2016-07-03 08:50:55 -05:00
Taryn Hill
ec808ddc54 GivesExperience: Replace FriendlyFire with ValidStances 2016-07-03 08:50:54 -05:00
Matthias Mailänder
889bbcf428 Cache the palette lookup. 2016-07-03 14:41:15 +02:00
Matthias Mailänder
4325e1b400 Let pipImages tick using the appropriate interface. 2016-07-03 14:40:47 +02:00
Matthias Mailänder
3e5155fa7d Cache pipImages in the constructor. 2016-07-03 14:40:14 +02:00
Matthias Mailänder
3a7558c273 Document and lint test pips and groups. 2016-07-03 12:26:29 +02:00
reaperrr
c8012baffb Make all Attack* traits listen to Stop order 2016-07-02 16:02:00 +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
reaperrr
3b43544e2d Add start delay functionality to attack animation traits 2016-07-02 16:02:00 +02:00
reaperrr
75c49620d1 Introduce INotifyAttack.PreparingAttack
And use it to allow triggering attack animations/overlays at a different point
than the actual weapon firing.
2016-07-02 16:02:00 +02:00
reaperrr
87537d9669 Move WithAttackOverlay to Mods.Common 2016-07-02 16:02:00 +02:00
abcdefg30
4732f3767f Merge pull request #11459 from reaperrr/fix-range-check
Fix weapon min/max range and validity checks
2016-07-01 14:24:41 +02:00
reaperrr
4d90361b8b Merge pull request #11514 from abcdefg30/64ops
Fix a crash with not space occupying actors granting support powers
2016-06-30 15:35:02 +02:00
reaperrr
f5c89ae56d Merge pull request #11497 from obrakmann/stuff-for-sp-1
Add functionality requested for Shattered Paradise
2016-06-30 15:13:49 +02:00
reaperrr
09e365bc4a Fix Wanders to be usable on its own
Allows unarmed actors like civilians or harmless critters to wander around when idle.

Additionally made it upgradable.
2016-06-26 20:30:06 +02:00
Paul Chote
30dcbeb873 Remove legacy Move constructor. 2016-06-25 16:29:47 +01:00
reaperrr
c643a0abd6 Change AttackWander trait lookup
AttackMove is required and therefore can't be null, so the 'OrDefault' was redundant.
2016-06-25 12:42:42 +02:00
reaperrr
f5a0c7e425 Move AttackWander into root Traits folder
It's not really an Attack* trait, so it doesn't belong into that subfolder.
2016-06-25 12:36:35 +02:00
reaperrr
46ca650324 Fix initial Wanders delay
The previous 'fix' was apparently incomplete. This time it has been properly tested and works as intended.
2016-06-25 12:29:00 +02:00
reaperrr
38e1d409ff Make Wanders.TickIdle virtual
So inheriting traits can override it.
2016-06-24 16:43:54 +02:00
reaperrr
4eb17e1642 Fix all wandering actors wandering at first game tick
NotifyBecomingIdle is only notified at the first idle tick, so `countdown` is not set when TickIdle checks it at first game tick. Therefore, we let TickIdle return early at first game tick to avoid that.
2016-06-24 16:43:53 +02:00
abcdefg30
dd5e229886 Fix a crash with not space occupying actors granting support powers 2016-06-24 15:30:57 +02:00
reaperrr
27993729be Make attack cursor smarter
Rather than simply taking the first valid armament, regardless of available ammo and regardless of which valid armament has the highest range, the attack cursor is now chosen a) by whether the armament has ammo and b) by which valid armament has the highest range.
2016-06-23 15:09:11 +02:00
reaperrr
4f55b088eb Check if weapon without self-reloading is out of ammo when deciding validity
This should prevent attacking helicopters (or other actors) staying at the range to target of a weapon that is out of ammo and needs manual reloading at a RearmBuilding or via upgrades.
2016-06-23 14:47:41 +02:00
Oliver Brakmann
c2d4a3a8e8 Merge pull request #11470 from pchote/fix-direction-check
Fix Mobile.IsMovingInMyDirection check.
2016-06-22 22:49:03 +02:00
Paul Chote
2355ad9dd1 Move carryall code to Mods.Common. 2016-06-21 21:38:19 +01:00
Oliver Brakmann
2e07459e98 Make RejectsOrders upgradable 2016-06-21 19:13:25 +02:00