Skip to content

Commit c3c7038

Browse files
committed
Fix #511
*Changed Heli mission type from 4 to 9 (Circle Destination)
1 parent 493b802 commit c3c7038

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Solution/source/Submenus/VehicleOptions.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* (at your option) any later version.
99
*/
1010
#include "VehicleOptions.h"
11+
#include "..\Util\FileLogger.h"
1112

1213
namespace sub
1314
{
@@ -834,11 +835,12 @@ namespace sub
834835
{
835836
ScrHandle tsk;
836837
OPEN_SEQUENCE_TASK(&tsk);
837-
838+
838839
if (bRandDestinationMode) {
839840
TASK_VEHICLE_DRIVE_WANDER(0, vehicle.Handle(), speed, drivingStyle);
840841
}
841842
else {
843+
addlog(ige::LogType::LOG_DEBUG, "Driving to: " + std::to_string(destination.x) + ", " + std::to_string(destination.y) + ", " + std::to_string(destination.z));
842844
TASK_VEHICLE_DRIVE_TO_COORD_LONGRANGE(0, vehicle.Handle(), destination.x, destination.y, destination.z, speed, drivingStyle, 7.0f);
843845
}
844846
CLOSE_SEQUENCE_TASK(tsk);
@@ -855,8 +857,9 @@ namespace sub
855857
{
856858
ScrHandle tsk;
857859
OPEN_SEQUENCE_TASK(&tsk);
860+
addlog(ige::LogType::LOG_DEBUG, "Heli Flying to: " + std::to_string(destination.x) + ", " + std::to_string(destination.y) + ", " + std::to_string(destination.z));
858861

859-
TASK_HELI_MISSION(0, vehicle.Handle(), 0, 0, destination.x, destination.y, destination.z, 4, speed, 50.0f, -1.0f, 100, 200, 0xbf800000, 0);
862+
TASK_HELI_MISSION(0, vehicle.Handle(), 0, 0, destination.x, destination.y, destination.z, 9, speed, 250.0f, -1.0f, 100, 200, 0xbf800000, 0);
860863

861864
CLOSE_SEQUENCE_TASK(tsk);
862865
TASK_PERFORM_SEQUENCE(myPed.Handle(), tsk);
@@ -874,6 +877,7 @@ namespace sub
874877
{
875878
ScrHandle tsk;
876879
OPEN_SEQUENCE_TASK(&tsk);
880+
addlog(ige::LogType::LOG_DEBUG, "Plane Flying to: " + std::to_string(destination.x) + ", " + std::to_string(destination.y) + ", " + std::to_string(destination.z));
877881

878882
TASK_PLANE_MISSION(0, vehicle.Handle(), 0, 0, destination.x, destination.y, destination.z, 4, speed, 50.0f, -1.0f, 100.0f, 200.0f, false);
879883

@@ -897,6 +901,7 @@ namespace sub
897901
TASK_VEHICLE_DRIVE_WANDER(0, vehicle.Handle(), speed, drivingStyle);
898902
}
899903
else {
904+
addlog(ige::LogType::LOG_DEBUG, "Sailing to: " + std::to_string(destination.x) + ", " + std::to_string(destination.y) + ", " + std::to_string(destination.z));
900905
TASK_BOAT_MISSION(0, vehicle.Handle(), 0, 0, destination.x, destination.y, destination.z, 4, speed, 786469, 10.0f, 1071);
901906
}
902907
CLOSE_SEQUENCE_TASK(tsk);

Solution/source/Submenus/VehicleSpawner.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* (at your option) any later version.
99
*/
1010
#include "VehicleSpawner.h"
11+
#include "..\Util\FileLogger.h"
1112

1213
namespace sub
1314
{

0 commit comments

Comments
 (0)