mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed support for custom damage types
This commit is contained in:
parent
6f4b53ed9e
commit
b267a52ec6
@ -16,7 +16,6 @@
|
||||
private ["_typeOfProjectile","_typeOfInjury"];
|
||||
_typeOfProjectile = _this select 0;
|
||||
_typeOfInjury = switch (true) do {
|
||||
case (_typeOfProjectile isKindOf "Backblast"): {"backblast"};
|
||||
case (_typeOfProjectile iskindof "BulletBase"): {"Bullet"};
|
||||
case (_typeOfProjectile iskindof "GrenadeCore"): {"Grenade"};
|
||||
case (_typeOfProjectile iskindof "TimeBombCore"): {"Explosive"};
|
||||
@ -29,7 +28,7 @@ _typeOfInjury = switch (true) do {
|
||||
case (_typeOfProjectile iskindof "BombCore"): {"Explosive"};
|
||||
case (_typeOfProjectile iskindof "Grenade"): {"Grenade"};
|
||||
case (_typeOfProjectile == "VehicleCrash"): {"VehicleCrash"};
|
||||
default {"Unknown"};
|
||||
default {_typeOfProjectile};
|
||||
};
|
||||
// TODO replace the capitalization on the switch results instead..
|
||||
toLower _typeOfInjury;
|
||||
|
Loading…
Reference in New Issue
Block a user