Forums » Air Combat & Civil Aviation » IL-2: Cliffs of Dover » Is it possible to make airspeed and altitude appear on-screen HUD style? Active Topics You are not logged in. [Log In] [Register User]
Page 3 of 4 < 1 2 3 4 >
Topic Options
Rate This Topic
Hop to:
#3347983 - 07/22/11 12:43 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: Freycinet]
FearlessFrog Offline
Senior Member

Registered: 01/08/09
Posts: 4328
Loc: Vancouver, BC
Originally Posted By: Freycinet
Originally Posted By: FearlessFrog

It's also easy to disable instruments and break off bits of my own plane, but that's getting more complicated and self-harm like.


Nonetheless very interesting: would be great to include in missions... stirthepot

Do you think such events can be triggered by others? - Like: passing through 1000 altitude, coolant temp indicator drops out.


Yes, anything really, i.e. if you are over a certain place, and there is someone else near you in a fighter and that you have 32% fuel left then it will disable the switching of magento 1, either that or just blow your fuel tank up, i.e.

aircraft.hitNamed(part.NamedDamageTypes.FuelTank0Exploded);

smile


Top
#3347984 - 07/22/11 12:47 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]
FearlessFrog Offline
Senior Member

Registered: 01/08/09
Posts: 4328
Loc: Vancouver, BC
Ok, to finish off the Frogbar..

Here's how to configure a wee display window to show it just like IL-2. I'll put the final script after that. Gotta run, but ask questions etc and I sure I'll be back! smile




using System;
using maddox.game;
using maddox.game.world;
using maddox.GP;
using System.Collections.Generic;


public class Mission : AMission
{
private double nextMsgTime = 0;

public override void OnTickGame()
{
{
base.OnTickGame();

if (Time.current() > nextMsgTime)
{
nextMsgTime = Time.current() + 3.0; // 3 ish seconds to next message

// Leave this in if you want to test a timer
//GamePlay.gpHUDLogCenter("Time elapsed (in seconds) = " + Time.current() +
// ", next message will be at " + nextMsgTime);

if (GamePlay.gpPlayer() != null) // check if we have a player.
{
if (GamePlay.gpPlayer().Place() != null)
{
Player me = GamePlay.gpPlayer();
Player[] all = { me };

AiActor where = me.Place();
Point3d pos = me.Place().Pos();

double height = ((pos.z + 62.5) / 306.5) * 1000;

AiAircraft aircraft = (GamePlay.gpPlayer().Place() as AiAircraft);
double ias = aircraft.getParameter(part.ParameterTypes.I_VelocityIAS, 0);
double altitude = aircraft.getParameter(part.ParameterTypes.I_Altitude, 0);
double mag_compass = aircraft.getParameter(part.ParameterTypes.I_MagneticCompass, 0);
double rep_compass = aircraft.getParameter(part.ParameterTypes.I_RepeaterCompass, 0);

double z_altitude = aircraft.getParameter(part.ParameterTypes.Z_AltitudeMSL, 0);
double z_ias = aircraft.getParameter(part.ParameterTypes.Z_VelocityTAS, 0);
double z_orientation = aircraft.getParameter(part.ParameterTypes.Z_Coordinates, 0);

GamePlay.gpLogServer(all,
"Frogbar v0.1: HDG: " +
mag_compass.ToString("0") +
" ALT: " +
height.ToString("0") +
" SPD: " +
ias.ToString("0"), null);
}
}
}
}
}
}


Probably still much to make better but it's there for people to see and play with. Hope that helps someone.

Note: Don't use these missions on-line, I've no idea what will happen. End of the world stuff I'm imagining.

Top

#3347987 - 07/22/11 12:53 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]
Freycinet Offline
Veteran

Registered: 04/15/02
Posts: 13361
OK, that is great! Not that I'd ever use such a total cheat myself, but the airquake crowd will surely appreciate... smile

Maybe instead of SPD you should call it IAS.
_________________________
My Il-2 CoD movie web site: www.flightsimvids.com

Top
#3347991 - 07/22/11 12:58 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: Freycinet]
FearlessFrog Offline
Senior Member

Registered: 01/08/09
Posts: 4328
Loc: Vancouver, BC
Originally Posted By: Freycinet
OK, that is great! Not that I'd ever use such a total cheat myself, but the airquake crowd will surely appreciate... smile

Maybe instead of SPD you should call it IAS.


Yep, more an exercise of a 'what if' rather than something I needed, i.e. helps to have a quick goal etc.

I called it SPD because that's IL-2 'Old Skool' says - gotta respect the history man smile

Top
#3348000 - 07/22/11 01:04 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]
Freycinet Offline
Veteran

Registered: 04/15/02
Posts: 13361
Very true that: SPD is heritage! - Maybe change the colour to red also then? - Wasn't it reddish/orange in Il-2?
_________________________
My Il-2 CoD movie web site: www.flightsimvids.com

Top
#3348124 - 07/22/11 07:08 AM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: Freycinet]
letterboy1 Offline
(Heterosexual)Tchaikovsky Ballet Fan
Lifer

Registered: 12/30/00
Posts: 20062
Loc: Columbus, GA USA
Originally Posted By: Freycinet
OK, that is great! Not that I'd ever use such a total cheat myself, but the airquake crowd will surely appreciate... smile


Unless that cheat comes with the game: biggrin
_________________________
The trick, William Potter, is not minding that it hurts. The trick, William Potter, is not minding that it hurts. The trick, William Potter, is not minding that it hurts. etc . . .

Top
#3349458 - 07/23/11 06:51 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]
Freycinet Offline
Veteran

Registered: 04/15/02
Posts: 13361
Ahhh, come on, showing the engine settings is not a cheat... smile

But I admit it isn't total realism either! - It is the one crutch I still use when flying in CoD. I really should get rid of it, but for the movies it is great, because others can follow with what settings I fly.
_________________________
My Il-2 CoD movie web site: www.flightsimvids.com

Top
#3349459 - 07/23/11 06:51 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]
Freycinet Offline
Veteran

Registered: 04/15/02
Posts: 13361
BTW, love your leet Paint skillz... wink
_________________________
My Il-2 CoD movie web site: www.flightsimvids.com

Top
#3349606 - 07/23/11 10:36 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]
Airdrop01 Online   grunt
Chief Pheasant Controller
Senior Member

Registered: 01/07/01
Posts: 3923
Loc: Lenexa, Kansas, USA
Frog, this is exactly what I want...But I am totally confused as to how to do it. Can you tell me like I am a three year old or, more precisely, an old man who doesn't get what to do to get that info up there on the screen?

Thanks!

Don
_________________________
"For I know the plans that I have for you," declares the Lord, "plans for welfare and not for calamity to give you a future and a hope." Jeremiah 29:11

Blessed are you when people insult you and persecute you, and falsely say all kinds of evil against you because of Me. Matthew 5:11

I will bless those who bless you, and the one who curses you I will curse; and in you all the families of the earth shall be blessed. Genesis 12:3

Ditat Deus.

Top
#3349609 - 07/23/11 10:42 PM Re: Is it possible to make airspeed and altitude appear on-screen HUD style? [Re: letterboy1]
Uriah Offline
Senior Member

Registered: 02/15/06
Posts: 3261
Loc: Kansas City, Missouri - USA
me confused too.I can get to the custom input window but after that...
_________________________
Race you to the Mucky Duck!

Top
Page 3 of 4 < 1 2 3 4 >
Topic Options
Rate This Topic
Hop to:

Moderator:  RacerGT 
 

Forum Use Agreement | Privacy Statement
Copyright 1997-2013, SimHQ Inc. All Rights Reserved.