Commit Graph

18 Commits

Author SHA1 Message Date
Joonas Rikkonen 84e3c062a6 Merge branch 'ai-overhaul'
Conflicts:
	Barotrauma/Source/Characters/Attack.cs
2017-06-29 17:02:37 +03:00
Joonas Rikkonen 03670d735d Crawlers and mantises can attach to ice walls when idling 2017-06-22 20:05:19 +03:00
Joonas Rikkonen e090806d3a - Charybdis's and coelanths can eat other creatures.
- Split charybdis's tail into several parts, the single stiff tail limb made it too difficult for it to turn around.
- Option to override the torque that's used to rotate the mainlimb of swimming creatures to the correct direction.
- The scale of the characters' limbs is taken into account in EditCharacterScreen.
2017-06-22 18:16:00 +03:00
Joonas Rikkonen de00eb2ab4 Some fixes to attachable items (buttons, signal items, etc):
- Syncing the attached/detached state of the items. This should fix the "received a position update for an item with no physics body " errors: midround-joining clients didn't get notified if an item had been detached, causing the error to appear every time it receives a position update.
- Detached items can be picked up just like any other item, instead of having to use a wrench and wait for the item to "detach".
- Wires can't be connected to items with a physics body (such as detached buttons).
2017-06-21 20:45:33 +03:00
Joonas Rikkonen 4ac9aa09c6 Eaten characters disappear, tweaked the movements of the eater a bit 2017-06-21 16:55:56 +03:00
Joonas Rikkonen f0873bdae6 Progress on making creatures eat each other, waists of humanoid characters can't be severed from the torso because they're used to anchor colliders to dead characters 2017-06-20 21:16:42 +03:00
Joonas Rikkonen 06e23ffe6d Some tweaks to make enemy attacks less likely to miss:
- Option to select which limbs attack force is applied to (e.g. husks and crawlers now lunge forward when attacking).
- Enemies attack towards the closest limb of their target instead of the main limb.
2017-06-14 20:49:03 +03:00
Joonas Rikkonen 242da11e3f Attack configs determine whether an attack can sever limbs (instead of the amount of damage), new blood particles 2017-06-14 19:24:49 +03:00
Joonas Rikkonen 65db119158 Strong attacks can sever limbs (railguns now cut crawlers in half and threshers can rip off limbs) 2017-06-13 21:36:40 +03:00
Joonas Rikkonen 12731a8137 New waterblood particle 2017-06-13 18:20:38 +03:00
Joonas Rikkonen 4d8da85956 Configured combat strengths for all enemy types, tweaked attack priorities & movement parameters 2017-06-13 17:10:44 +03:00
Joonas Rikkonen c5ce1be6c2 Running speed can be adjusted from the character configs, added a parameter for the "running speed" in water (characters now swim faster when holding shift).
TODO: make AI-controlled monsters run/swim faster in specific situations (fleeing, attacking, etc).
2017-06-12 20:07:50 +03:00
Joonas Rikkonen ed0a5f0f66 - Enemies with the "attack when provoked" setting only start attacking humans and structures if the attacker is a non-AI character or has a HumanAIController.
- Characters that launch a turret get assigned as the user of the projectile (-> shooting watchers with a railgun makes them attack).
- Increased watchers' attack range.
2017-06-12 18:56:33 +03:00
Joonas Rikkonen c7d22ecb47 Option to make AI characters flee when their health is below a specific threshold 2017-06-12 18:50:15 +03:00
Joonas Rikkonen 0ba11e1fb6 Merge branch 'master' into ai-overhaul 2017-06-11 20:47:45 +03:00
CommanderMark cc6e220691 Moved the execution of the save coroutine to JobNamePreferences' setter.
Juanjp pointed out that it would run the coroutine if you modified changes in the settings without yet pressing "Apply".

Also reworded the job descriptions.
2017-06-10 23:24:51 -04:00
CommanderMark ed5039c43c The ordering of job preferences in net lobby are saved in config.xml.
- Added a coroutine which will save the current settings to the config.xml file if no further changes to the preferences are applied after 10 seconds.

-The default ordering is now Engineer, Mechanic, Captain, Security, Doctor and Assistant.
2017-06-10 22:17:16 -04:00
Regalis 94c6a8ea1b Renamed project folders from Subsurface to Barotrauma 2017-06-04 15:00:53 +03:00