Jump to content
Sign in to follow this  
weirdo10o4

Strange HALO jump glitch, teleport to ground, dead. Not if I sneak off side.

Recommended Posts

Read before you comment.

Yes I did search. Well that sums it up quite well. Right after I jump out it now

decides to teleport me to the ground, subsequently killing me. It doesn't do it

if I sneak off the side of the ramp though, crouched. But it does if I crouch

off the back. o_O. No, there's nothing wrong with my scripts

Script:

1 setrain 0;
1 setfog  0;
_unit = _this select 0;
showmap false;
showgps false;

waitUntil {((getposASL _unit select 2) < 5500)};
[_unit] exec "ca\air2\halo\data\Scripts\HALO.sqs";

waitUntil {((getpos _unit select 2) < 2000)};
_unit setpos [getmarkerpos "DropZone" select 0, getmarkerpos "DropZone" select 1, getpos _unit select 2];

Searches before I realized the oddity:

---------------

EDIT:

I got it to go away somehow, but this seems completely undocumented?

Edited by Weirdo10o4

Share this post


Link to post
Share on other sites

i use a height parameter in my halo´s:

[_unit, 1000] exec "ca\air2\halo\data\Scripts\HALO_init.sqs";

here 1000 is meter in height, you can easily switch it for current height of the player:

[_unit, (getPos _unit select 2)] exec "ca\air2\halo\data\Scripts\HALO_init.sqs";

Fyi, also i see its a different version HALO script than yours, but its a ingame one.

i have Arma2 CO, unknown if its present in only A2..

Share this post


Link to post
Share on other sites

Yeah, I just switched it. Works better (I'm A-CO as well). And I use the

getposASL 'cuz it's in Takistan.

Now it keeps setting my height to like 300 after I jump:

hint "Exec";
1 setrain 0;
1 setfog  0;
_unit = _this select 0;
showmap false;
showgps false;

waitUntil {((getposASL _unit select 2) < 8998)};
[_unit, (getposASL _unit select 2)] exec "ca\air2\halo\data\Scripts\HALO_init.sqs";

_unit SetVelocity [0,-50,(velocity _unit select 2)];
waitUntil {((getpos _unit select 2) < 2000)};
_unit setpos [getmarkerpos "DropZone" select 0, getmarkerpos "DropZone" select 1, getpos _unit select 2];
waitUntil {sleep 5; getpos _unit select 2 < 2};
showmap true;
showgps true;

Edited by Weirdo10o4

Share this post


Link to post
Share on other sites
And I use the

getposASL 'cuz it's in Takistan.

you realize that if you exit the static vehicle at 1000 meter above ground, and that is above a 500m ASL high hill, getPosASL will teleport you 1500 meter up in the air, meaning, you will be 500 meter above the static c130 you exited..?

so using getPosASL instead of getPos would mess up any kind of perception of actually jumping out of the static c130.

the halo script uses height above ground to position you, not ASL.

getPosASL = height above sealevel, does not matter wich map.

getPos = height above ground, also does not matter wich map.

Share this post


Link to post
Share on other sites

I'm not getting your script at all.

Is this a HALO script?

if you are trying to trigger the halo script once the player is runing out of the plane you should change it to:

waituntil {(position player select 2) > 1};

once he is standing in the belly of the C130 is Z cord will be 0. once he get out is Z cord will be 5000 (if the plane is flying at 5000 meters).

So your script teleport the player to the ground because the waituntil is always true.

and why do you teleport the player on midair?

Share this post


Link to post
Share on other sites

Yes, demonized's solution worker, getpos, not getposASL in the HALO script.

Guilty of what I've accused you of, sorry. I failed to realize it because the

script behaved unpredictably rather than just teleporting me above the

plane in every case.

But getposASL keeps the plane and soldier at a certain altitude regardless of

terrain, which was what I was after, I just accidentally used it in all cases.

Shay, the plane flies at 10000, the player starts off at 10001, and once he

falls below 9999 he initiates the waitUntil and starts the halo script. This

script can't kill me by accident unlike the other one.

Here's what it did: http://www.youtube.com/watch?v=x4JpntOc_Ec

You can probably understand my confusion. :) Thanks everyone.

Edited by Weirdo10o4

Share this post


Link to post
Share on other sites

Ok,

The teleport thing is a little clanky try creating the plane on the same position as the drop is.

Btw take a look in there on 04:42 it will answer your question about the static C-130 and the HALO jump.

ZSefB9YpaHw

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×