Fandom

World in Conflict Tool for ArmA2 Wiki

HALO jumps

32pages on
this wiki
Add New Page
Comments0 Share

Version 3.5 introduces HALO jumps (thanx to www.kylania.com).

Version 4.0 is implementing them through fabulous F2 framework. All files you need to modify are in: f\common\.


-- Activating teleport during gameplay --

In init.sqf file find (and make) this :

// F2 - Mission Maker Teleport

// Credits: Please see the F2 online manual (http://www.ferstaberinde.com/f2/en/)

f_missionMakerTeleport = 1;

[] execVM "f\common\f_missionMakerTeleport.sqf";


I modified f_missionMakerTeleport.sqf

// ====================================================================================

// CHECK IF COMPONENT SHOULD BE ENABLED
// We end the script if it is not running on a player's machine, or if debug mode is
// not enabled, or if the global variable f_missionMakerTeleport has not been set to 
// the value 1 in init.sqf.

if (!isDedicated) then
{
	if (f_missionMakerTeleport == 0) then
	{
		_currentState = f_missionMakerTeleport;
		waitUntil {not(f_missionMakerTeleport == _currentState)};
		// ====================================================================================

		// SET KEY VARIABLES

		_textAction = localize "STR_f_mapClickTeleportAction";

		// ====================================================================================

		// ADD TELEPORT ACTION TO PLAYER ACTION MENU
		// Whilst the player is alive we add the teleport action to the player's action menu.
		// If the player dies we wait until he is alive again and re-add the action.

		while {true} do
		{
			F2_mapClickTeleportAction = player addaction [_textAction,"f\common\f_mapClickTeleport.sqf","", 0, false, true];
			waitUntil {!alive player};
			waitUntil {alive player};
			sleep 0.01;
		};
	}
	else
	{

		// ====================================================================================

		// SET KEY VARIABLES

		_textAction = localize "STR_f_mapClickTeleportAction";

		// ====================================================================================

		// ADD TELEPORT ACTION TO PLAYER ACTION MENU
		// Whilst the player is alive we add the teleport action to the player's action menu.
		// If the player dies we wait until he is alive again and re-add the action.

		while {true} do
		{
			F2_mapClickTeleportAction = player addaction [_textAction,"f\common\f_mapClickTeleport.sqf","", 0, false, true];
			waitUntil {!alive player};
			waitUntil {alive player};
			sleep 0.01;
		};
	};
};

if teleport is not active it waits for it to be active, then starts adding teleport actions.


-- Making HALO instead of Teleport --

I used above mentioned HALO snippet&nbsp to make a HALO in f_mapClickTeleport.sqf and I changed associated text in stringtable.xml.

Here is the change in f_mapClickTeleport.sqf

titletext [_textSelect,"plain", 0.4];
onMapSingleClick "player setPos _pos; [player, 800] exec 'ca\air2\halo\data\Scripts\HALO_init.sqs'; f_telePositionSelected = true";
waitUntil {f_telePositionSelected};
titletext [_textDone,"plain", 0.3];

This will add one HALO jump in the action menu of all players. And that’s it. Just don’t forget to open your chute!


-- Preventing player from activating triggers --

If I don't want my player that HALOed to activate the trigger, the solution I've come around is this:

((vehicle player) in thislist) and (((getPosATL (vehicle player)) select 2) < 3)

which means that player in the vehicle will be able to activate the trigger only if his altitude is below 3m, in other words he will be able to do it in jeep or in helicopter that is on the ground, but not in the air.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.