ElderHank462 / Wynatia

Open world RPG
1 stars 0 forks source link

Ranged weapon breaking when game is reloaded #34

Closed ElderHank462 closed 11 months ago

ElderHank462 commented 11 months ago

When picking up and equipping ranged weapon everything seems to work fine.

When the game is reloaded with the ranged weapon still equipped, mousing down immediately releases an arrow that stays stuck in the air, has collision enabled, and can't be picked up. These floating arrows can be picked up upon reloading, though.

This issue doesn't occur if, once the game is reloaded, the player unequips and then re-equips the bow and arrow.

ElderHank462 commented 11 months ago

Screenshots of PlayerCombatAgent and PlayerEquipment when functioning correctly

Screenshot 2023-11-10 at 11 55 04 AM Screenshot 2023-11-10 at 11 55 44 AM
ElderHank462 commented 11 months ago

Screenshots of PlayerCombatAgent and PlayerEquipment when malfunctioning

Screenshot 2023-11-10 at 11 57 20 AM Screenshot 2023-11-10 at 11 57 51 AM
ElderHank462 commented 11 months ago

Both appear exactly the same :/

ElderHank462 commented 11 months ago

The issue was that the hold interaction on the Ranged Attack input action was being overriden when the bindings were loaded from the JSON file, causing the "fire" action to call at the same time as the "draw" action and messing up the sequence of things.

Fixed by having the ControlManager reapply the hold interaction.