Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parachute removed after Disarming a weapon #1706

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

Maximus7474
Copy link
Contributor

Current Issue:

After using a parachute, the object is created on the players back and the gadget/weapon is given to the player.
However if the player equips another weapon and then unequips it he loses the parachute. It is implemented in Weapon.ClearAll but not Weapon.Disarm

Changes:

  • Added a check if client.parachute is not false and then equips it again after unequipping a weapon
  • Refactored the structure & functionning of client.parachute to the following:
    • Convert it from just containing the object handle but also the tint index in an array, allows the parachute to have the same tint after disarm is called

@Maximus7474
Copy link
Contributor Author

Any interest in this PR or should I close it ?

@thelindat thelindat merged commit 9f4b1a4 into overextended:main Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants