So I am currently trying to get humanity working well as there are many humanity boosting methods open, but I cannot figure what to do from here. This is what I've worked up to so far. If anyone could direct me in the correct direction, it would be appreciated.
_HFKiller = _this select 0;
_HFVictim = _this select 1;
if (!alive _HFKiller) exitWith {};
_humanityK = _HFKiller getVariable ["humanity",0];
_humanityV = _HFVictim getVariable ["humanity",0];
switch true do {
case ((_humanityK > 5000) AND (_humanityV > 5000)): {
_HFKiller setVariable ["humanity",(_humanityK - 200),true];
}; // hero vs hero
case ((_humanityK < -5000) AND (_humanityV > 5000)): {
_HFKiller setVariable ["humanity",(_humanityK - 200),true];
}; // bandit vs hero
case ((_humanityK > 5000) AND (_humanityV < -5000)): {
_HFKiller setVariable ["humanity",(_humanityK + 200),true];
}; // hero vs bandit
case ((_humanityK < -5000) AND (_humanityV < -5000)): {
_HFKiller setVariable ["humanity",(_humanityK + 200),true];
}; // bandit vs bandit
case ((_humanityK > -5000) AND(_humanityK < 5000) AND (_humanityV > 5000)): {
_HFKiller setVariable ["humanity",(_humanityK + 200),true];
}; // civilian vs hero
case ((_humanityK > -5000) AND(_humanityV < 5000) AND (_humanityV < -5000)): {
_HFKiller setVariable ["humanity",(_humanityK + 200),true];
}; // civilian vs bandit
case ((_humanityV > -5000) AND(_humanityV < 5000) AND (_humanityK > 5000)): {
_HFKiller setVariable ["humanity",(_humanityK - 200),true];
}; // hero vs civilian
case ((_humanityV > -5000) AND(_humanityV < 5000) AND (_humanityK < -5000)): {
_HFKiller setVariable ["humanity",(_humanityK - 200),true];
}; // bandit vs civilian
case ((_humanityV > -5000) AND(_humanityV < 5000) AND (_humanityK > -5000) AND (_humanityK < 5000)): {
_HFKiller setVariable ["humanity",(_humanityK - 200),true];
}; // civilian vs civilian
default (true);
};
Question
Shawn
So I am currently trying to get humanity working well as there are many humanity boosting methods open, but I cannot figure what to do from here. This is what I've worked up to so far. If anyone could direct me in the correct direction, it would be appreciated.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now