I noticed that when a player opens the locked crate on an oil rig, the siren goes on but soon goes off and no chinook with green scientists will come.
Is this related to this plugin?
Is this related to this plugin?
mod1:
private Vector3 CH47EmptyDestination = new Vector3(0,0,0);
mod2:
if (entity.OwnerID == 0 && config.ch47.disableDefault && entity.landingTarget==CH47EmptyDestination)
razorfishsl
ok i got this fixed......
This is mainly for "programmers", this is a "DIRTY" fix, in that it only checks for a set destination in the CH47..., it gets 99% of cases ,unless other plugins are fooling with it, normally the Dest. is empty & the AI stears the chopper, but for the rigs the game engine sets a dest.
The "completely" correct fix is to pull the locations of the rigs, then sphere check them against the destination settings of the CH47.
again.... if some other plugin fools with the settings, then that is a boundry case.mod1: private Vector3 CH47EmptyDestination = new Vector3(0,0,0); mod2: if (entity.OwnerID == 0 && config.ch47.disableDefault && entity.landingTarget==CH47EmptyDestination)
so what do i need to do then
It would be very nice if that could be included in https://github.com/UltraRust/CargoShip-no-scientists-bug-fixrazorfishsl
The "fix" relies on a situation that when THIS copter is spawned by the server for the rig it has no spawner... BUT does have a landing area , unlike other CH47 that just fly....
In the region:add mod 1#region Vars
in the area :privatevoidOnEntitySpawned(CH47HelicopterAIControllerentity){if (entity.OwnerID == 0 && config.ch47.disableDefault)
change the line to:if (entity.OwnerID == 0 && config.ch47.disableDefault && entity.landingTarget==CH47EmptyDestination)
it is an oil rig fix... not for the cargoship.
it's also real dirty.......
razorfishsl
it is an oil rig fix... not for the cargoship.
it's also real dirty.......
I accidentally linked the wrong one. He also has a chinook fix.
I can also confirm that this does fix the issue, but is completely pointless due to the fact that I want this plugin to be able to control that part of the event. There should be a section for oil rig CH47's and the actual CH47 that roams around the map and drops crates at various monuments. @Orange can you chime in on what we should do in the mean time? Is there a way to actually fix this and still allow this plugin to control the CH47's spawning?