Jump to content

Holstering Hatchet when Crouching


axeman

Recommended Posts

oh there are few similar instances of bugs/weird happening with holstering or picking up something. But I suspect again, that some of them are due to Bugemia being Bugemia. For instance, have you noticed, that when sprinting and pressing B to pick up rangefinder/binoculars character goes prone, starts sliding, picks up binos/rangefinder and then stands up and continues sprinting with rangefinder in hands? And it is all in one weird animation :D pretty funny

Link to comment
Share on other sites

I think this and other bugs have been noticed with the Epoch Holster feature since Arma 3 added the weapon switching while moving. 

This is the code we use to make Holstering a "feature" of Epoch:
https://github.com/EpochModTeam/Epoch/blob/experimental/Sources/epoch_code/compile/interface_event_handlers/EPOCH_KeyDown.sqf#L141-L154

It is sort of a hack as I am using the action "switchWeapon" command and it is not documented to work this way but I found it to work to holster a weapon provided the additional logic and current weapon variable tracked and used for the unholster part.

player action["switchWeapon", player, player, 100];

Maybe a solution would be to add some restrictions to when you can holster, like speed and stance?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...