BSDocking for the plugin
Locked
FLHook Development
-
//carrier not docked
look for thatPrintUserCmdText(iClientID, L"x %f",g_Vlaunch.x);
PrintUserCmdText(iClientID, L"y %f",g_Vlaunch.y);
PrintUserCmdText(iClientID, L"z %f",g_Vlaunch.z);
Server.PlayerLaunch(iShip, iClientID);that is calling the launch process and g_Vlaunch
at that point is loaded with the coords
it should then call LaunchPosHook
basicly it should be called auto in the Server.PlayerLaunch(iShip, iClientID);basicly on load up wee need to replace the original with owers
like i say it aint geting called so its failing -
namespace HkIEngine { EXPORT bool __stdcall LaunchPosHook(uint iSpaceID, struct CEqObj &p1, Vector &p2, Matrix &p3, int iDock) { if(g_bInPlayerLaunch) { p2 = g_Vlaunch; p3 = g_Mlaunch; } p1.launch_pos(p2,p3,iDock); returncode = SKIPPLUGINS_NOFUNCTIONCALL; // we handled the command, return immediatly } } ```Sorry, but I could not find it.
-