Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add DamageTypes to Kill() and make some traits use it. #14777
I gave it a default value of null, so it doesn't have to be defined and act like it is now without that.
This changes /kill command and Chronoshiftable to use Kill, instead of InflictDamage.
There are 2 testcases, one on Demo Truck which makes it only explode by AttackSuicides, KillsSelf(IC) or Chronoshiftable, but not direct damage. Kinda like Generals GLA Terrorist. Other one makes D2K Sardaukar only explode when crushed.
If you think another usage of Kill() may benefit from having DamageTypes, i can add that too.