This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for "_i" from 1 to 1000 do { | |
_position = [getPos player, 350, "(0.8 * meadow) * (1 - sea) * (1 - hills) * (1 - houses) * (1 - forest) * (1 - trees)", 10, 6, 0.7, true] call CTI_CO_FNC_GetRandomBestPlaces; | |
_marker = createMarkerLocal [(format ["safe_pos_%1", ([0, 400] call BIS_fnc_randomInt)]), _position]; | |
_marker setMarkerShapeLocal "ICON"; | |
_marker setMarkerTypeLocal "hd_dot"; | |
_marker setMarkerColor "ColorRed"; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--- Deal with a structure | |
if (_nearest distance _mappos < 50 && isNull _fobr && isNull _foblarger) then { | |
if (isNil {_nearest getVariable "cti_sell"}) then { | |
//--- Commander Refund | |
if (!isNil {_nearest getVariable "cti_structure_type"} && isNil{_nearest getVariable "cti_sell"}) then { | |
_nearest setVariable ["cti_sell", true, true]; | |
_var = missionNamespace getVariable format ["CTI_%1_%2", CTI_P_SideJoined, _nearest getVariable "cti_structure_type"]; | |
_label = ((_var select 0) select 1); | |
_refund = round((_var select 2) * CTI_BASE_CONSTRUCTION_REFUNDS); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (CTI_RHS_ADDON > 0) then { | |
if (CTI_FACTION_WEST == 0) then { | |
//Arid RHS | |
missionNamespace setVariable ["CTI_AI_WEST_DEFAULT_GEAR", [ | |
[["CUP_smg_MP5A5",["","","",""],["CUP_30Rnd_9x19_MP5"]],["CUP_launch_M136",["","","",""],["CUP_M136_M"]],["CUP_hgun_M9",["","","",""],["CUP_15Rnd_9x19_M9"]]], | |
[["CUP_U_B_USMC_MARPAT_WDL_RolledUp",["firstaidkit","firstaidkit","CUP_30Rnd_9x19_MP5","CUP_30Rnd_9x19_MP5","CUP_30Rnd_9x19_MP5","CUP_30Rnd_9x19_MP5"]],["CUP_V_C_Police_Holster",["CUP_30Rnd_9x19_MP5","CUP_30Rnd_9x19_MP5","CUP_30Rnd_9x19_MP5","CUP_30Rnd_9x19_MP5","",""]],["B_AssaultPack_rgr",["CUP_HandGrenade_M67","CUP_HandGrenade_M67",""]]], | |
["CUP_H_USMC_Headset_GoggleW_HelmetWDL",""],[["nvgoggles","binocular"],["itemmap","","itemradio","itemcompass","itemwatch"]]]]; | |
}; | |
if (CTI_FACTION_EAST == 0) then { | |
missionNamespace setVariable ["CTI_AI_EAST_DEFAULT_GEAR", [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
_logic = (_x) call CTI_CO_FNC_GetSideLogic; | |
_defensive_team = _logic getVariable "cti_defensive_team"; | |
//--- Make sure that AIs didn't ran out of their statics | |
{ | |
if (vehicle _x == _x) then {deleteVehicle _x}; | |
} forEach units _defensive_team; | |
} forEach CTI_PLAYABLE_SIDES; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12:36:55 "[CTI (INFORMATION)] [frameno:973265 | ticktime:21267.3 | fps:27.8746] [FUNCTION: CTI_PVF_HC_OnDefenseDelegationReceived] A Delegation request was received from the server for the static [60585600# 1875640: aa_01.p3d REMOTE] (B_static_AA_F) with AI arguments [["B_Soldier_F",B Bravo 3-3,[5993.07,12812.7,0.901566],0,true]]" | |
12:36:55 "[CTI_PVF_HC_OnDefenseDelegationReceived - benny DEBUG - START] - Defense->60585600# 1875640: aa_01.p3d REMOTE, is local?->false | assignedGunner-><NULL-object>, is local?->false | gunner -><NULL-object> is local?->false" | |
12:36:55 "[CTI (DEBUG)] [frameno:973265 | ticktime:21267.3 | fps:27.8746] [FILE: Common\Functions\Common_CreateUnit.sqf] Attempting to create a [B_Soldier_F] unit on team [B Bravo 3-3] at [[5993.07,12812.7,0.901566]] on side [0], net? [true] special? [FORM]" | |
12:36:55 Warning: Adding units to a remote group is not safe. Please use setGroupOwner to change the group owner first. | |
12:36:55 "[CTI_PVF_HC_OnDefenseDelegationReceived - benny DEBUG - END] - Defense- |