武装突袭3

武装突袭3

Zombies and Demons
BIG WAVE 2016 年 12 月 6 日 下午 5:56
Zombies still kill with damage disabled?
I am running a scenario that has a large number of enemy soldiers and various zombies spawning all over the place. It's a solo scenario so I've decreased the value of the damage I take from the soldiers to make it so I don't die in a second.
I noticed that the zombies do not respond to the command and even when i disable damage entirely on my character they are still able to kill me.
Anybody have any clue as to the specific damage they enflict so I can write something around it, or another idea so I can get this working the way I wanted? Or am I just going to have to really tiptoe around them in my scenarios?

For reference I am using this code to handle the damage, but it is irrelevant because they still kill even when damage is disabled entirely.

player addeventhandler ["HandleDamage",{
_unit = _this select 0;
_selection = _this select 1;
_passedDamage = _this select 2;
_source = _this select 3;
_projectile = _this select 4;
_oldDamage = 0;
switch(_selection)do{
case("head"):{_oldDamage = _unit getHitPointDamage "HitHead";};
case("body"):{_oldDamage = _unit getHitPointDamage "HitBody";};
case("hands"):{_oldDamage = _unit getHitPointDamage "HitHands";};
case("legs"):{_oldDamage = _unit getHitPointDamage "HitLegs";};
case(""):{_oldDamage = damage _unit;};
default{};

};
_return = _oldDamage + ((_passedDamage - _oldDamage) / 10);
_return
}];
最后由 BIG WAVE 编辑于; 2016 年 12 月 6 日 下午 5:56