Skip to content

Commit

Permalink
Hit reactions - Improve fall down setting description (#10400)
Browse files Browse the repository at this point in the history
Co-authored-by: PabstMirror <[email protected]>
  • Loading branch information
johnb432 and PabstMirror authored Oct 14, 2024
1 parent ee2d6bd commit 92a997d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/hitreactions/functions/fnc_fallDown.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
params ["_unit", "_firer", "_damage"];

// exit if system is disabled
if (GVAR(minDamageToTrigger) == -1) exitWith {};
if (GVAR(minDamageToTrigger) < -0.5) exitWith {};

// exit if damage is disabled on unit
if !(isDamageAllowed _unit && {_unit getVariable [QEGVAR(medical,allowDamage), true]}) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/hitreactions/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ private _category = [LELSTRING(common,categoryUncategorized), QUOTE(COMPONENT_BE
[
QGVAR(minDamageToTrigger),
"SLIDER",
LSTRING(minDamageToTrigger_displayName),
[LSTRING(minDamageToTrigger_displayName), LSTRING(minDamageToTrigger_Description)],
_category,
[-1, 1, 0.1, 1],
1
Expand Down
3 changes: 3 additions & 0 deletions addons/hitreactions/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<Turkish>Düşmeyi tetikleyen min hasar</Turkish>
<Spanish>Daño mínimo para provocar la caída</Spanish>
</Key>
<Key ID="STR_ACE_HitReactions_minDamageToTrigger_Description">
<English>If a unit takes more damage than this setting's value whilst moving on foot, they will fall over.\nIf set to -1 the mechanic is turned off.</English>
</Key>
<Key ID="STR_ACE_HitReactions_weaponDropChanceArmHitPlayer_displayName">
<English>Player Weapon Drop Chance (Arm Hit)</English>
<Japanese>プレイヤーが武器を落とす確率 (腕部への被弾)</Japanese>
Expand Down

0 comments on commit 92a997d

Please sign in to comment.