Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hit reactions - Improve fall down setting description #10400

Merged
merged 3 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) exitWith {};
johnb432 marked this conversation as resolved.
Show resolved Hide resolved

// 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 a negative value, this mechanic is turned off.</English>
johnb432 marked this conversation as resolved.
Show resolved Hide resolved
</Key>
<Key ID="STR_ACE_HitReactions_weaponDropChanceArmHitPlayer_displayName">
<English>Player Weapon Drop Chance (Arm Hit)</English>
<Japanese>プレイヤーが武器を落とす確率 (腕部への被弾)</Japanese>
Expand Down
Loading