Skip to content

Commit 2912a49

Browse files
authored
reload: Fix regression from #656 (#676)
Reverts the change in the reload command name to "Reload weapon" and check for existing binds on start, to respect player bind customization via the MTA settings.
1 parent e63b332 commit 2912a49

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

[gameplay]/reload/reload_c.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
local reloadKey = "r"
2-
local reloadCmd = "reload"
1+
local reloadCmd = "Reload weapon"
2+
local reloadKey = getKeyBoundToCommand("Reload weapon")
3+
if not reloadKey then
4+
reloadKey = "r"
5+
end
36

47
local blockedTasks = {
58
["TASK_SIMPLE_JUMP"] = true,

0 commit comments

Comments
 (0)