Hi all!
I wanted to write about the OnReloadMagazine hook
It does not work properly because when I reload any weapons on with a regular ammo on explosive ammo, it does not consider it as explosive cartridges
My first experiment
1) I have guns for AK-47 it has standard 4 regular 5.56 ammo
2) I reload it by pressing the "R" button (I have 100 explosive 5.56 ammo in my inventory)
3) I get the following from the console
22:57 [Info] [Nexus Item Block] ammo_rifle.item
My second experiment
1) I have guns for AK-47 it has standard 4 regular 5.56 ammo
2) i reload weapon with the delay I press the key "R" button and select specifically for discontinuous
3) I get the following from the console
22:57 [Info] [Nexus Item Block] ammo_rifle_explosive.item
That is, the second experiment is correct and the first one should work the same way
The same situation with the OnReloadWeapon hook
[DOUBLEPOST=1508584086][/DOUBLEPOST]Help solve this problem, I want to make a plugin prohibiting the loading of explosive ammo into weapons
Blocking certain types of ammo?
Discussion in 'Rust Development' started by DEUSNEXUS, Oct 21, 2017.