Helicopter Wanders Off After Player Respawns or Teleports

monsterqueen

Supporter
I wanted to report an issue I’ve been noticing with CHT2 on my server. Players are calling in attack helicopters, but when they die and respawn (especially in the same building), the helicopter will sometimes wander off and not return.

It seems to happen about half the time — the helicopter either drifts to the middle of the map and idles there or vanishes off the edge entirely. This is especially common when players respawn on the beach and then teleport home. They end up losing their helicopters mid-fight, which has been frustrating since we use an extra hard version that takes some time to bring down.

This behavior seems to have started around the recent force wipe. My plugin version is up to date, and I don’t have any other helicopter modifiers installed aside from loot-related ones. I appreciate any help. Thank you!
 
Thanks for the detailed report! Whats happening is that when a player dies the helicopter temporarily falls back to vanilla AI behavior and picks a random destination. Once you respawn you become a valid target again, but the heli needs to finish reaching that random point before it refocuses on you

That said tho I get how this can feel frustrating mid-fight, I'll definitely consider changing it so the heli sticks around the last known player position instead, makes sense (y)
 
Back
Top
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin. Parameters in < > are required, while [ ] are optional.
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Ensure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart