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

Zeus - Fix remote control breaking Racks and resetting custom PTTs #1305

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mrschick
Copy link
Contributor

@mrschick mrschick commented Nov 29, 2023

When merged this pull request will:

  • Fix Racks being broken for the Zeus Player when remote controlling AI in vehicles, which resolves Zeus - Exiting remote control while the AI character is inside a vehicle breaks racks and intercom #1267:
    It was caused by the sys_rack/fnc_rackPFH.sqf PFH being started when entering that AI and not terminated when exiting it, resulting in the PFH constantly disconnecting the player from his Racks. My fix works by limiting Rack initialization and PFH launch to only player units entering a vehicle, effectively preventing use of Racks by RCd AI entirely.
  • Fix custom PTT assignments being reset when using a remote controlled unit's radios:
    A minor bug I encountered some time ago, happened because there was only a single DVAR(ACRE_ASSIGNED_PTT_RADIOS) that stored custom PTT assignments, when controlling a unit and using its radios sys_core/fnc_handleMultiPttKeyPress.sqf would check for the custom PTT radios to be present, not find them on the AI and reset the list. Now there are 2 DVARs to remember custom PTT assignments on the player and last controlled AI unit.

Previously, PTT customization would be reset after using a remote controlled AI's radios.
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.

Zeus - Exiting remote control while the AI character is inside a vehicle breaks racks and intercom
1 participant