Jump to content

[CONTINUED] blckeagls' AI Mission Version 7.06 Build 239


Ghostrider-GRG

Recommended Posts

Just now, Ghostrider-DbD- said:

The lines beginning with diag_log were commented out just to reduce uneccessary logging.

The deleteMarker was commented out accidentally at one point, causing issues; I replaced it as you can see but now see that I had it twice. Too little sleep was the probable cause of this issue.

I see, just curious. :)

BTW, I've been meaning to ask...

Will the mission vehicles be sellable sometime in the future?

Thanks.

Link to comment
Share on other sites

Just now, Hux said:

I see, just curious. :)

BTW, I've been meaning to ask...

Will the mission vehicles be sellable sometime in the future?

Thanks.

I believe you can sell them at blackmarket traders if you wish. There are a few posts by Grahame around on this topic. It is not advisable to sell them at epoch traders as the game is configured. If Epoch were to be able to distiguish persistant from non-persistant vehicles then this would not cause any problems.

Link to comment
Share on other sites

Just now, Ghostrider-DbD- said:

I believe you can sell them at blackmarket traders if you wish. There are a few posts by Grahame around on this topic. It is not advisable to sell them at epoch traders as the game is configured. If Epoch were to be able to distiguish persistant from non-persistant vehicles then this would not cause any problems.

Oh really. I have BM traders and was unable to sell.

I'll check the class names to be sure they're in trader menu.

Thank you.

Link to comment
Share on other sites

I just tried it with the Ifrit  O_MRAP_02_hmg_F and I just get a message that I'm trying to sell it twice. I do see it in the trader menu though when I'm selling.

I checked the class name in my trader menu list.

Link to comment
Share on other sites

21 minutes ago, Hux said:

I just tried it with the Ifrit  O_MRAP_02_hmg_F and I just get a message that I'm trying to sell it twice. I do see it in the trader menu though when I'm selling.

I checked the class name in my trader menu list.

I have seen that message too. I am not sure why. I suggest that you take a look in the thread for that script.

Link to comment
Share on other sites

On 7/21/2017 at 10:36 AM, Hux said:

I just tried it with the Ifrit  O_MRAP_02_hmg_F and I just get a message that I'm trying to sell it twice. I do see it in the trader menu though when I'm selling.

I checked the class name in my trader menu list.

Hey Hux

you need to edit HS_playertraderequest.sqf regarding the vehicle slot check  to be able to sell the vehicles to the black market trader.

 

Spoiler

/*

	a3 epoch trader
	HS_playertraderequest.sqf
	by Halv & Suppe

	
*/

_arr = _this select 0;
_player = _this select 1;
_type = _this select 2;


_message = "";

switch(_type)do{
	case 1:{
		//[classname,price,tax,config,txt,libtxt,pic,bis1,bis2(,vehicle)]
		_return = 0;
		{
			_obj = _x select 9;
			
			if((owner _obj) isEqualTo (owner _player))then{
		//damage price reductions, the price is divded by this number
				_damagepricereduction = switch(true)do{
							//damaged over 90%
					case ((damage _obj) > 0.9):{10};
							//damaged over 75%
					case ((damage _obj) > 0.75):{5};
							//damaged over 50%
					case ((damage _obj) > 0.5):{3};
							//damaged over 25%
					case ((damage _obj) > 0.25):{1.5};
					default {1};
				};
				_vehSlot=_obj getVariable["VEHICLE_SLOT","ABORT"];
				_isrental = _obj getVariable ["HSHALFPRICE",0];
				if(!(_vehSlot isEqualTo "ABORT") && !(_isrental in [1,2]))then{
					_message = _message + format["%1 is OK to sell, dam: %2 pricemod: %3 || ",_x select 4,damage _obj,_damagepricereduction];
					removeFromRemainsCollector[_obj];
					deleteVehicle _obj;
					_vehHiveKey=format["%1:%2",(call EPOCH_fn_InstanceID),_vehSlot];
					_VAL=[];
					["Vehicle",_vehHiveKey,_VAL]call EPOCH_fnc_server_hiveSET;
					EPOCH_VehicleSlots pushBack _vehSlot;
					EPOCH_VehicleSlotCount=count EPOCH_VehicleSlots;
					publicVariable "EPOCH_VehicleSlotCount";
					_cost = ((_x select 1)/_damagepricereduction);
					_return = _return + _cost;
				}else{
					//if(_isrental > 0)then{
						_message = _message + format[" || %1 'Rental/Mission Vehicle' is OK to sell, dam: %2 pricemod: %3",_x select 4,damage _obj,_damagepricereduction];
						removeFromRemainsCollector[_obj];
						_obj setVariable["VEHICLE_SLOT","ABORT",true];
						_obj setVariable["HSHALFPRICE",0,true];
						_obj call HALV_PurgeObject;
						_cost = ((_x select 1)/_damagepricereduction);
						_return = _return + _cost;
					/*
					}else{
						//_message = _message + format[" || - ERROR Attempt to sell %1 twice -",_x select 4,_player];
					}; 
					*/
				};
			}else{
				_message = _message + format[" || %1 Not yours (get in as driver to sell)",_x select 4];
			};
//			diag_log format["[HSBlackmarket] %1 | %2",_player,_x];
		}forEach _arr;
		if(_return > 0)then{
			[_player,round _return]call HALV_server_takegive_crypto;
		};
		_message = format["Return: %3 Crypto (%1) %2",_return,_message,_player];
		diag_log format["[HSBlackmarket] %1 selling %2",_player,_arr];
	};
	case 2:{
		if(EPOCH_VehicleSlotCount <= 0)exitWith{
			_message = format["Could not buy a %1, too many vehicles on the map!",_arr select 4];
		};
		_spot = nearestObjects [_player, ["Land_HelipadCivil_F","Land_HelipadCircle_F","Land_HelipadEmpty_F","Land_HelipadSquare_F"],400];
//		_spot = nearestObjects [_player, ["Land_HelipadCivil_F","Land_HelipadCircle_F","Land_HelipadEmpty_F","Land_HelipadSquare_F","Land_JumpTarget_F"],400];
		_nospace = false;
		if(count _spot < 1)then{
			_canbewwater = if((_arr select 0) isKindOf "Ship")then{1}else{0};
			_spot = [getPos _player,5,125,0,_canbewwater,2000,0] call BIS_fnc_findSafePos;
			if(_spot distance _player > 125)exitWith{_nospace = true;};
		}else{
			_spot = getPosATL (_spot select 0);
		};
		if(_nospace)exitWith{_message = format["Could not buy a %1, not enough space nearby!",_arr select 4];};
		_slot=EPOCH_VehicleSlots select 0;
		EPOCH_VehicleSlots = EPOCH_VehicleSlots - [_slot];
		EPOCH_VehicleSlotCount = count EPOCH_VehicleSlots;
		publicVariable "EPOCH_VehicleSlotCount";
		_veh = createVehicle[(_arr select 0),_spot,[],0,"NONE"];
		_veh call EPOCH_server_setVToken;
		addToRemainsCollector[_veh];
		_veh disableTIEquipment true;
		clearWeaponCargoGlobal _veh;
		clearMagazineCargoGlobal _veh;
		clearBackpackCargoGlobal _veh;
		clearItemCargoGlobal _veh;
		_veh lock true;
		_lockOwner=getPlayerUID _player;
		_plyrGroup=_player getVariable["GROUP",""];
		if !(_plyrGroup isEqualTo "")then{
			_lockOwner=_plyrGroup;
		};
		_vehLockHiveKey=format["%1:%2",(call EPOCH_fn_InstanceID),_slot];
		["VehicleLock",_vehLockHiveKey,EPOCH_vehicleLockTime,[_lockOwner]]call EPOCH_fnc_server_hiveSETEX;
		_colorsConfig=configFile >> "CfgVehicles" >> (_arr select 0) >> "availableColors";
		if(isArray(_colorsConfig))then{
			_textureSelectionIndex=configFile >> "CfgVehicles" >> (_arr select 0) >> "textureSelectionIndex";
			_selections=if(isArray(_textureSelectionIndex))then{getArray(_textureSelectionIndex)}else{[0]};
			_colors=getArray(_colorsConfig);
			_textures=_colors select 0;
			_color=floor(random(count _textures));
			_count=(count _colors)-1;
			{
				if(_count >=_forEachIndex)then{
					_textures=_colors select _forEachIndex;
				};
				_veh setObjectTextureGlobal[_x,(_textures select _color)];
			}forEach _selections;
			_veh setVariable["VEHICLE_TEXTURE",_color];
		};
		_veh setVariable["VEHICLE_SLOT",_slot,true];
		_veh call EPOCH_server_save_vehicle;
		_veh call EPOCH_server_vehicleInit;
		_veh call HS_weaponsrestriction;

		_itemWorth = (_arr select 1);
		_itemTax = (_arr select 2);
		_tax = _itemWorth * (EPOCH_taxRate + _itemTax);
		_calced = ceil(_itemWorth + _tax);

		[_player,_calced*-1]call HALV_server_takegive_crypto;

		_message = format["You Bought a %1",_arr select 4];
		diag_log format["[HSBlackmarket] %1 | %2",_player,_arr];
	};
	case 3:{
		_spot = nearestObjects [_player, ["Land_HelipadCivil_F","Land_HelipadCircle_F","Land_HelipadEmpty_F","Land_HelipadSquare_F","Land_JumpTarget_F"],100];
		_nospace = false;
		if(count _spot < 1)then{
			_canbewwater = if((_arr select 0) isKindOf "Ship")then{1}else{0};
			_spot = [getPos _player,5,125,0,_canbewwater,2000,0] call BIS_fnc_findSafePos;
			if(_spot distance _player > 125)exitWith{_nospace = true;};
		}else{
			_spot = getPosATL (_spot select 0);
		};
		if(_nospace)exitWith{_message = format["Could not buy a %1, not enough space nearby!",_arr select 4];};
		_veh = createVehicle[(_arr select 0),_spot,[],0,"NONE"];
		_veh call EPOCH_server_setVToken;
		addToRemainsCollector[_veh];
		_veh disableTIEquipment true;
		clearWeaponCargoGlobal _veh;
		clearMagazineCargoGlobal _veh;
		clearBackpackCargoGlobal _veh;
		clearItemCargoGlobal _veh;
		_veh lock true;
		_colorsConfig=configFile >> "CfgVehicles" >> (_arr select 0) >> "availableColors";
		if(isArray(_colorsConfig))then{
			_textureSelectionIndex=configFile >> "CfgVehicles" >> (_arr select 0) >> "textureSelectionIndex";
			_selections=if(isArray(_textureSelectionIndex))then{getArray(_textureSelectionIndex)}else{[0]};
			_colors=getArray(_colorsConfig);
			_textures=_colors select 0;
			_color=floor(random(count _textures));
			_count=(count _colors)-1;
			{
				if(_count >=_forEachIndex)then{
					_textures=_colors select _forEachIndex;
				};
				_veh setObjectTextureGlobal[_x,(_textures select _color)];
			}forEach _selections;
			_veh setVariable["VEHICLE_TEXTURE",_color];
		};
		_veh call EPOCH_server_vehicleInit;
		_veh call HS_weaponsrestriction;
		_veh addEventHandler ["GetIn",{
			HalvPV_player_message = ["titleText", ["[Warning]:\nnThis vehicle is a rental and will disappear on server restart!", "PLAIN DOWN"]];
			owner(_this select 2) publicVariableClient "HalvPV_player_message";
		}];
		_veh setVariable["HSHALFPRICE",1,true];
		_itemWorth = ((_arr select 1)/2);
		_itemTax = (_arr select 2);
		_tax = _itemWorth * (EPOCH_taxRate + _itemTax);
		_calced = ceil(_itemWorth + _tax);
		[_player,_calced*-1]call HALV_server_takegive_crypto;
		_message = format["You Rented a Temporary %1 untill next restart\nIt is 'unlocked' so watch out for thieves!",_arr select 4];
		diag_log format["[HSBlackmarket] %1 | %2",_player,_arr];
	};
};

if !(_message isEqualTo "")then{
	HalvPV_player_message = ["titleText", [_message, "PLAIN DOWN"]];
	(owner _player) publicVariableClient "HalvPV_player_message";
}else{
	HalvPV_player_message = ["titleText", ["== HS Trader ERROR ==", "PLAIN DOWN"]];
	(owner _player) publicVariableClient "HalvPV_player_message";
};

 

hope it helps

cheers

natoed

Link to comment
Share on other sites

3 hours ago, natoed said:

Hey Hux

you need to edit HS_playertraderequest.sqf regarding the vehicle slot check  to be able to sell the vehicles to the black market trader.

 

  Hide contents


/*

	a3 epoch trader
	HS_playertraderequest.sqf
	by Halv & Suppe

	
*/

_arr = _this select 0;
_player = _this select 1;
_type = _this select 2;


_message = "";

switch(_type)do{
	case 1:{
		//[classname,price,tax,config,txt,libtxt,pic,bis1,bis2(,vehicle)]
		_return = 0;
		{
			_obj = _x select 9;
			
			if((owner _obj) isEqualTo (owner _player))then{
		//damage price reductions, the price is divded by this number
				_damagepricereduction = switch(true)do{
							//damaged over 90%
					case ((damage _obj) > 0.9):{10};
							//damaged over 75%
					case ((damage _obj) > 0.75):{5};
							//damaged over 50%
					case ((damage _obj) > 0.5):{3};
							//damaged over 25%
					case ((damage _obj) > 0.25):{1.5};
					default {1};
				};
				_vehSlot=_obj getVariable["VEHICLE_SLOT","ABORT"];
				_isrental = _obj getVariable ["HSHALFPRICE",0];
				if(!(_vehSlot isEqualTo "ABORT") && !(_isrental in [1,2]))then{
					_message = _message + format["%1 is OK to sell, dam: %2 pricemod: %3 || ",_x select 4,damage _obj,_damagepricereduction];
					removeFromRemainsCollector[_obj];
					deleteVehicle _obj;
					_vehHiveKey=format["%1:%2",(call EPOCH_fn_InstanceID),_vehSlot];
					_VAL=[];
					["Vehicle",_vehHiveKey,_VAL]call EPOCH_fnc_server_hiveSET;
					EPOCH_VehicleSlots pushBack _vehSlot;
					EPOCH_VehicleSlotCount=count EPOCH_VehicleSlots;
					publicVariable "EPOCH_VehicleSlotCount";
					_cost = ((_x select 1)/_damagepricereduction);
					_return = _return + _cost;
				}else{
					//if(_isrental > 0)then{
						_message = _message + format[" || %1 'Rental/Mission Vehicle' is OK to sell, dam: %2 pricemod: %3",_x select 4,damage _obj,_damagepricereduction];
						removeFromRemainsCollector[_obj];
						_obj setVariable["VEHICLE_SLOT","ABORT",true];
						_obj setVariable["HSHALFPRICE",0,true];
						_obj call HALV_PurgeObject;
						_cost = ((_x select 1)/_damagepricereduction);
						_return = _return + _cost;
					/*
					}else{
						//_message = _message + format[" || - ERROR Attempt to sell %1 twice -",_x select 4,_player];
					}; 
					*/
				};
			}else{
				_message = _message + format[" || %1 Not yours (get in as driver to sell)",_x select 4];
			};
//			diag_log format["[HSBlackmarket] %1 | %2",_player,_x];
		}forEach _arr;
		if(_return > 0)then{
			[_player,round _return]call HALV_server_takegive_crypto;
		};
		_message = format["Return: %3 Crypto (%1) %2",_return,_message,_player];
		diag_log format["[HSBlackmarket] %1 selling %2",_player,_arr];
	};
	case 2:{
		if(EPOCH_VehicleSlotCount <= 0)exitWith{
			_message = format["Could not buy a %1, too many vehicles on the map!",_arr select 4];
		};
		_spot = nearestObjects [_player, ["Land_HelipadCivil_F","Land_HelipadCircle_F","Land_HelipadEmpty_F","Land_HelipadSquare_F"],400];
//		_spot = nearestObjects [_player, ["Land_HelipadCivil_F","Land_HelipadCircle_F","Land_HelipadEmpty_F","Land_HelipadSquare_F","Land_JumpTarget_F"],400];
		_nospace = false;
		if(count _spot < 1)then{
			_canbewwater = if((_arr select 0) isKindOf "Ship")then{1}else{0};
			_spot = [getPos _player,5,125,0,_canbewwater,2000,0] call BIS_fnc_findSafePos;
			if(_spot distance _player > 125)exitWith{_nospace = true;};
		}else{
			_spot = getPosATL (_spot select 0);
		};
		if(_nospace)exitWith{_message = format["Could not buy a %1, not enough space nearby!",_arr select 4];};
		_slot=EPOCH_VehicleSlots select 0;
		EPOCH_VehicleSlots = EPOCH_VehicleSlots - [_slot];
		EPOCH_VehicleSlotCount = count EPOCH_VehicleSlots;
		publicVariable "EPOCH_VehicleSlotCount";
		_veh = createVehicle[(_arr select 0),_spot,[],0,"NONE"];
		_veh call EPOCH_server_setVToken;
		addToRemainsCollector[_veh];
		_veh disableTIEquipment true;
		clearWeaponCargoGlobal _veh;
		clearMagazineCargoGlobal _veh;
		clearBackpackCargoGlobal _veh;
		clearItemCargoGlobal _veh;
		_veh lock true;
		_lockOwner=getPlayerUID _player;
		_plyrGroup=_player getVariable["GROUP",""];
		if !(_plyrGroup isEqualTo "")then{
			_lockOwner=_plyrGroup;
		};
		_vehLockHiveKey=format["%1:%2",(call EPOCH_fn_InstanceID),_slot];
		["VehicleLock",_vehLockHiveKey,EPOCH_vehicleLockTime,[_lockOwner]]call EPOCH_fnc_server_hiveSETEX;
		_colorsConfig=configFile >> "CfgVehicles" >> (_arr select 0) >> "availableColors";
		if(isArray(_colorsConfig))then{
			_textureSelectionIndex=configFile >> "CfgVehicles" >> (_arr select 0) >> "textureSelectionIndex";
			_selections=if(isArray(_textureSelectionIndex))then{getArray(_textureSelectionIndex)}else{[0]};
			_colors=getArray(_colorsConfig);
			_textures=_colors select 0;
			_color=floor(random(count _textures));
			_count=(count _colors)-1;
			{
				if(_count >=_forEachIndex)then{
					_textures=_colors select _forEachIndex;
				};
				_veh setObjectTextureGlobal[_x,(_textures select _color)];
			}forEach _selections;
			_veh setVariable["VEHICLE_TEXTURE",_color];
		};
		_veh setVariable["VEHICLE_SLOT",_slot,true];
		_veh call EPOCH_server_save_vehicle;
		_veh call EPOCH_server_vehicleInit;
		_veh call HS_weaponsrestriction;

		_itemWorth = (_arr select 1);
		_itemTax = (_arr select 2);
		_tax = _itemWorth * (EPOCH_taxRate + _itemTax);
		_calced = ceil(_itemWorth + _tax);

		[_player,_calced*-1]call HALV_server_takegive_crypto;

		_message = format["You Bought a %1",_arr select 4];
		diag_log format["[HSBlackmarket] %1 | %2",_player,_arr];
	};
	case 3:{
		_spot = nearestObjects [_player, ["Land_HelipadCivil_F","Land_HelipadCircle_F","Land_HelipadEmpty_F","Land_HelipadSquare_F","Land_JumpTarget_F"],100];
		_nospace = false;
		if(count _spot < 1)then{
			_canbewwater = if((_arr select 0) isKindOf "Ship")then{1}else{0};
			_spot = [getPos _player,5,125,0,_canbewwater,2000,0] call BIS_fnc_findSafePos;
			if(_spot distance _player > 125)exitWith{_nospace = true;};
		}else{
			_spot = getPosATL (_spot select 0);
		};
		if(_nospace)exitWith{_message = format["Could not buy a %1, not enough space nearby!",_arr select 4];};
		_veh = createVehicle[(_arr select 0),_spot,[],0,"NONE"];
		_veh call EPOCH_server_setVToken;
		addToRemainsCollector[_veh];
		_veh disableTIEquipment true;
		clearWeaponCargoGlobal _veh;
		clearMagazineCargoGlobal _veh;
		clearBackpackCargoGlobal _veh;
		clearItemCargoGlobal _veh;
		_veh lock true;
		_colorsConfig=configFile >> "CfgVehicles" >> (_arr select 0) >> "availableColors";
		if(isArray(_colorsConfig))then{
			_textureSelectionIndex=configFile >> "CfgVehicles" >> (_arr select 0) >> "textureSelectionIndex";
			_selections=if(isArray(_textureSelectionIndex))then{getArray(_textureSelectionIndex)}else{[0]};
			_colors=getArray(_colorsConfig);
			_textures=_colors select 0;
			_color=floor(random(count _textures));
			_count=(count _colors)-1;
			{
				if(_count >=_forEachIndex)then{
					_textures=_colors select _forEachIndex;
				};
				_veh setObjectTextureGlobal[_x,(_textures select _color)];
			}forEach _selections;
			_veh setVariable["VEHICLE_TEXTURE",_color];
		};
		_veh call EPOCH_server_vehicleInit;
		_veh call HS_weaponsrestriction;
		_veh addEventHandler ["GetIn",{
			HalvPV_player_message = ["titleText", ["[Warning]:\nnThis vehicle is a rental and will disappear on server restart!", "PLAIN DOWN"]];
			owner(_this select 2) publicVariableClient "HalvPV_player_message";
		}];
		_veh setVariable["HSHALFPRICE",1,true];
		_itemWorth = ((_arr select 1)/2);
		_itemTax = (_arr select 2);
		_tax = _itemWorth * (EPOCH_taxRate + _itemTax);
		_calced = ceil(_itemWorth + _tax);
		[_player,_calced*-1]call HALV_server_takegive_crypto;
		_message = format["You Rented a Temporary %1 untill next restart\nIt is 'unlocked' so watch out for thieves!",_arr select 4];
		diag_log format["[HSBlackmarket] %1 | %2",_player,_arr];
	};
};

if !(_message isEqualTo "")then{
	HalvPV_player_message = ["titleText", [_message, "PLAIN DOWN"]];
	(owner _player) publicVariableClient "HalvPV_player_message";
}else{
	HalvPV_player_message = ["titleText", ["== HS Trader ERROR ==", "PLAIN DOWN"]];
	(owner _player) publicVariableClient "HalvPV_player_message";
};

 

hope it helps

cheers

natoed

Hey thanks natoed, I didn't expect a solution. I had tried a few things I found in the BM thread but had no success.

Works great now .

Link to comment
Share on other sites

  • 2 weeks later...
5 hours ago, Sneer said:

I updated to the current version and doing missions I eventually get an overflow error spamming rpt. Also the mission markers stay on the map.

Please be sure you also update the files in the debug folder in your mission.pbo. In a recent, prior release there was an error in one of them that caused these sorts of problems.

Link to comment
Share on other sites

2 hours ago, Ghostrider-DbD- said:

Please be sure you also update the files in the debug folder in your mission.pbo. In a recent, prior release there was an error in one of them that caused these sorts of problems.

I did make sure. The colored circles remain whether you complete the mission or it times out.

Link to comment
Share on other sites

1 hour ago, Ghostrider-DbD- said:

Please give this build a try.

 

https://github.com/Ghostrider-DbD-/blckeagles-revisited-RC/tree/Version-6.59-Build-65

 

Github is giving me heartburn tonight for some reason.

ok, Thanks but I still don't see any changes on git.

I also found why the colored circles weren't disappearing, line 11 of deleteMarker.sqf was commented out.

Link to comment
Share on other sites

2 hours ago, Ghostrider-DbD- said:

Thanks, I did know that. Sounds like I need to merge the corrected builds with the master ... as I said, Github is giving me headaches lately.

Is the master good to go - looks like the updates are there? If so I will download and install on my three servers and test...

Link to comment
Share on other sites

@Grahame, I think so, unless I made a silly end of week error from fatigue. I'd run it on a test server. We have been running the serverside code for a few weeks now without any errors in the logs or player complaints. I am pretty sure the client-side stuff is OK but did not have a chance to rigorously confirm that the issues on the Master were addressed. The changes were mostly merging some bug-fixed versions with the Master and removing a few instances of diag_log and other lines that were commented out.

Link to comment
Share on other sites

2 hours ago, Ghostrider-DbD- said:

I just checked the master Version 6.60 now Build 69 on an EpochExperimental server and it seemed to be fine.

Adding the option to spawn multiple heli's, figher's, or UAV to add the the drama hehe for Verision 6.61.

That sounds great.

Is it possible to have the support aircraft spawn a distance away from mission so it has to travel to it and surprise the players doing the mission?

Link to comment
Share on other sites

9 minutes ago, Ghostrider-DbD- said:

The fighters roam around quite a bit. Testing this now.

I mean spawn far away like in WAI missions (They spawn in SW corner of the map and travel to mission).

Also I wanted to ask about a strange bug. Sometimes the AI at missions seem to be frozen in place. They seem to be dead but are still standing and aiming their rifles...very strange.

Thanks.

Link to comment
Share on other sites

The frozen bug is related to using dynamic simulation I think. Not sure how to handle it yet.

[EDIT] The issue is that if they are to drop paratroops on the mission then it is pretty much impossible the way Arma waypoints work to get the heli over the center of the mission during the fly-in. However, aircraft that are not dropping AI could be spawned 3-4k out from the mission and that should work fine. The way the waypoints are managed the aircraft would just fly from whereever it spawned to the first mission waypoint then start its patrol. I will have to re-work the code a bit.

 

Out of curiosity, when would a player arrive at the mission at the time helis are spawning other than using teleport functions?

 

 

Link to comment
Share on other sites

Just found this in my rpt build 58, not sure if its a prob in the newer or was already mentioned or fixed but better tell ya again :) 

 

19:52:18 Error in expression <["wpDir",0];
_group setVariable["wpArc",_arc];
_group setVariable["soldierType",>
19:52:18   Error position: <_arc];
_group setVariable["soldierType",>
19:52:18   Error Undefined variable in expression: _arc
19:52:18 File q\addons\custom_server\Compiles\Groups\GMS_fnc_setupWaypoints.sqf, line 38

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...