Rep penalty for killing friendly resistance units
This commit is contained in:
parent
e61c31e86b
commit
3080c00676
|
@ -111,6 +111,7 @@ GRLIB_patrol_cap = 150 * GRLIB_unitcap; // Cap for enemy patrol
|
|||
KP_liberation_cr_kill_penalty = 5; // Civil Reputation penalty for killing a civilian.
|
||||
KP_liberation_cr_building_penalty = 3; // Civil Reputation penalty for destroying/damaging a building.
|
||||
KP_liberation_cr_vehicle_penalty = 2; // Civil Reputation penalty for stealing a civilian vehicle.
|
||||
KP_liberation_cr_resistance_penalty = 3; // Civil Reputation penalty for killing a friendly resistance soldier.
|
||||
KP_liberation_cr_sector_gain = 5; // Civil Reputation gain for liberate a sector.
|
||||
KP_liberation_cr_wounded_chance = 35; // Chance (0-100) that there are wounded civilians right after capturing a sector.
|
||||
KP_liberation_cr_wounded_gain = 2; // Civil Reputation gain for providing medical assistance for wounded civilians.
|
||||
|
|
|
@ -6,5 +6,6 @@ switch (_msgType) do {
|
|||
case 0: {systemChat localize "STR_CR_VEHICLEMSG";};
|
||||
case 1: {systemChat (format [localize "STR_CR_BUILDINGMSG", (_data select 0)]);};
|
||||
case 2: {systemChat (format [localize "STR_CR_KILLMSG", (_data select 0)]);};
|
||||
case 3: {systemChat (format [localize "STR_CR_RESISTANCE_KILLMSG", (_data select 0)]);};
|
||||
default {private _text = format ["[KP LIBERATION] [ERROR] [CIVREP] penaltyMsg without valid msgType"];_text remoteExec ["diag_log",2];};
|
||||
};
|
||||
|
|
|
@ -104,6 +104,10 @@ if (isServer) then {
|
|||
if (side (group _unit) == GRLIB_side_resistance) then {
|
||||
KP_liberation_guerilla_strength = KP_liberation_guerilla_strength - 1;
|
||||
if (KP_liberation_asymmetric_debug > 0) then {diag_log format ["[KP LIBERATION] [ASYMMETRIC] Guerilla unit killed by: %1", name _killer];};
|
||||
if ((GRLIB_side_friendly getFriend GRLIB_side_resistance) >= 0.6) then {
|
||||
[2, [(name _unit)]] remoteExec ["F_cr_penaltyMsg"];
|
||||
[KP_liberation_cr_resistance_penalty, true] spawn F_cr_changeCR;
|
||||
};
|
||||
};
|
||||
};
|
||||
} else {
|
||||
|
|
|
@ -4896,5 +4896,9 @@
|
|||
<Original>%1 minutes mobile respawn cooldown left.</Original>
|
||||
<German>%1 Minuten Mobiler Respawn Cooldown übrig.</German>
|
||||
</Key>
|
||||
<Key ID="STR_CR_RESISTANCE_KILLMSG">
|
||||
<Original>An allied resistance fighter named %1 was killed!</Original>
|
||||
<German>Ein verbündeter Widerstandskämpfer mit Namen %1 wurde getötet!</German>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue