Arkensor / DayZCommunityOfflineMode

A community made offline mod for DayZ Standalone
Other
362 stars 194 forks source link

Turn Off Unlimited Ammo. #381

Open bigniiggaa opened 9 months ago

bigniiggaa commented 9 months ago

Why is Unlimited Ammo turned on and how do i turn it off...

griha41 commented 9 months ago

Why is Unlimited Ammo turned on and how do i turn it off...

Because this mission was made not for a single player. So if you're developer and creating weapons (models/configs), you'll anyway will reach the testing stage (the damage for the barrel, speed of realoading between shots and lots more) for that reason there's a bind on R (reloading mag), that keybind checks is mag empty and if so - it will fill it to the full state.

You can disable it manually, search for key bind: DayZCommunity...../core/modules/ComKeybinds/COMKeyBinds.c

Method: override void RegisterKeyMouseBindings()

Comment next lines: reload.AddBinding( "kR" ); RegisterKeyMouseBinding( reload );

Or simply reassign the bind from kR to any other letter you want, for example "kBackSpace" (reloading if you'll click the Backspace keyb button.

Wish you luck.