Skip to content

The Combat Code Cleanup Part 1

Rob Nelson requested to merge pull/13061/wake_me_ into Bleeding-Edge

Created by: unid15

We're never going to have martians if we don't clean up this carcinogenic mess

  • Added combat.dm files to mob code. They contain procs like unarmed_attack_mob(), disarm_mob(), disarmed_by(), etc...

  • Standardized a lot of combat code

  • Aliens can now grab aliens

  • Monkeys can now grab monkeys

  • Humans can now punch cyborgs

  • Horror form changelings and other species with powerful punches will now send all mobs flying on punch, instead of just humans

  • Melee attacks vs simple mobs now work the same as melee attacks vs any other mob (you can miss, there's a sound, etc...)

ALSO a lot of number changes that may or may not be noticeable The most significant one (I believe) is that aliens do 15-30 melee damage to borgs (same as to every other mob) instead of 10-20.

Some of the major mechanics changes:

  • Humans: new knockdown chance calculations (previously the chance was never stated anywhere and it was a big clusterfuck).

    • Chance is no longer increased by species damage. Base chance is 8% per hit. Hulk adds 12, boxing gloves/knuckles/spiked knuckles add 12/17/25. The resulting percentage is then modified depending on whether the victim is a monkey, human or a xeno
    • Xeno: chance multiplied by 0.25 (base 2%, hulk 5%, maximum 11.25%) <- always 5% before
    • Human: chance not modified (base 8%, hulk 20%, maximum 45%) <- ROUGHLY THE SAME AS BEFORE
    • Monkey: chance multiplied by 2 (base 16%, hulk 40%, maximum 90%) <- always 40% before
  • Humans: When getting disarmed while holding a gun, the gun may "go off during struggle", firing in a random direction. Previously this only happened when they were disarmed by a human, now it applies to xenomorphs and other mobs as well

BEFORE

AFTER

Merge request reports