Author Topic: AirInstrumentHUD - Flying a plane is now 99.99% easier.  (Read 3786 times)

Oh, it's THIS project again.

I am working on angle of ascent. Also, this is impossible client-sided, because vehicle rotation and position are locked out.

Brian Smith had a child?  :cookieMonster:


Lol, you don't get it. But..

because vehicle rotation and position are locked out.

Is not true.

Is not true.
It's a very obfuscated function, so it's sort of defacto locked out.
« Last Edit: January 03, 2013, 02:33:54 AM by Axolotl2 »

ServerConnection.getControlOb ject().player.getObjectMount().rotation/position
Something like that (on phone)

Headcrab Zombie told me about using the arctangent. Of course, I wrote this myself. Yes, %vehicle.pos100MSago is defined somewhere in the script.
Code: [Select]
%p1_x = getword(%vehicle.pos100msago, 0);
%p1_y = getword(%vehicle.pos100msago, 1);

%p2_x = getword(%vehicle.position, 0);
%p2_y = getword(%vehicle.position, 1);

%xdist = %vehicle.p2_x - %vehicle.p1_x;
%ydist = %vehicle.p2_y - %vehicle.p1_y;

%runvector = msqrt( (%xdist * %xdist) + (%ydist * %ydist) ); //pythagorean theorem


%angle = mRadToDeg(mAtan(%ydist, %runvector));

ServerConnection.getControlObject().player.getObjectMount().rotation/position
Something like that (on phone)
Code: [Select]
==>echo(ServerConnection.getControlObject().player.getObjectMount().rotation);

<input> (0): Unable to find object: '' attempting to call function 'getObjectMount'
BackTrace: ->ConsoleEntry::eval


==>echo(ServerConnection.getControlObject().getObjectMount().rotation);

==>echo(ServerConnection.getControlObject().getObjectMount().position);


/facepalm
« Last Edit: January 03, 2013, 01:47:11 PM by Axolotl2 »

Holy crap a HUD. I suggested this once. My clan'd Sponsor this if you want.

seeing how you locked your axocity thread, god be with you this time


seeing how you locked your axocity thread, god be with you this time
I'm releasing it. It is at a point where all vital parts are now made, and that the warning system itself will be added in another update.



What's the joke?
The joke is that Brian Smith hardly ever finishes anything and that you have given up on your cityRPG what? twice now?