Skip to content

Commit

Permalink
HotFix intel manager
Browse files Browse the repository at this point in the history
my fault
  • Loading branch information
Apricot-ale committed Jun 19, 2024
1 parent 33e40f3 commit 6c53617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Missionframework/scripts/client/actions/intel_manager.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ while {true} do {
_near_intel = player nearEntities [KPLIB_intelObjectClasses, 5];
{
if (!(_x in _actionned_captive_units) && !(_x getVariable ["ACE_isUnconscious", false]) && !(_x getVariable ["KPLIB_prisonner_captured", false]) && (_x getVariable ["KPLIB_prisonner_surrendered", false])) then {
_x addAction ["<t color='#FFFF00'>" + localize "STR_SECONDARY_CAPTURE" + "</t>",{(_this # 0) setVariable ["KPLIB_prisonner_captured", true, true];(_this # 0) setVariable ["KPLIB_prisonner_whois", _this # 1, true];},"",-850,true,true,"","!(_x getVariable ["ace_captives_isHandcuffed", false];) && !(_x getVariable ["KPLIB_prisonner_captured", false];) && (vehicle player == player) && (side group _target != KPLIB_side_player) && (captive _target)"];
_x addAction ["<t color='#FFFF00'>" + localize "STR_SECONDARY_CAPTURE" + "</t>",{(_this # 0) setVariable ["KPLIB_prisonner_captured", true, true];(_this # 0) setVariable ["KPLIB_prisonner_whois", _this # 1, true];},"",-850,true,true,"","!(_x getVariable ['ace_captives_isHandcuffed', false]) && !(_x getVariable ['KPLIB_prisonner_captured', false]) && (vehicle player == player) && (side group _target != KPLIB_side_player) && (captive _target)"];
_actionned_captive_units pushback _x;
};
} forEach _near_people;
Expand Down

5 comments on commit 6c53617

@lhmngwy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure which of your commits today did it, but if you start a new campaign now it will spawn you on a random island so I'd guess there's a syntax error somewhere.

Also, thanks very much for your work! I'm working on a customised version to play with my brother and friends!

@Apricot-ale
Copy link
Owner Author

@Apricot-ale Apricot-ale commented on 6c53617 Jun 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't encountered such a bug (player random spawn on island), but the syntax error message may be caused by multiple mobile respawn trucks.
Try changing the player build preset item to an Array.
KPLIB_b_mobileRespawn = "B_Truck_01_medical_F";
to
KPLIB_b_mobileRespawn = ["B_Truck_01_medical_F", "B_T_Truck_01_medical_F", "rhsusf_m1152_sicps_usarmy_wd"]; (max 3) no, it's now can use 10+ vehs
and rewrite vehSupport mobile respawn class to like this:

KPLIB_b_vehSupport = [
    [(KPLIB_b_mobileRespawn select 0),250,250,250,""],
    [(KPLIB_b_mobileRespawn select 1),250,250,250,""],
    [(KPLIB_b_mobileRespawn select 2),250,250,250,""],
...............

We will make this backwards compatible in the future.

@Apricot-ale
Copy link
Owner Author

@Apricot-ale Apricot-ale commented on 6c53617 Jun 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure which of your commits today did it, but if you start a new campaign now it will spawn you on a random island so I'd guess there's a syntax error somewhere.

Also, thanks very much for your work! I'm working on a customised version to play with my brother and friends!

I'm just update the project now, It's add backwards compatible to preset, you can use old preset as is. try this!

@lhmngwy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I will try it tonight and let you know!

@lhmngwy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That fixed the problem, thanks!

Please sign in to comment.