It's a funny one that there isn't a speed/altitude bar.
As Mrs Frog is watching TV and I'm back from work (those tadpoles don't feed themselves you know - wow, I regret this metaphor already, as I think that's wrong about tadpoles and I'm only in the second sentence - right, carry on, I don't think they noticed).
This bit of script is a start. I present a really bad speedbar!
Here's the wee script
public class Mission : AMission
private double nextMsgTime = 0;
public override void OnTickGame()
if (Time.current() > nextMsgTime)
nextMsgTime = Time.current() + 10.0; // 10 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();
AiActor where = me.Place();
Point3d pos = me.Place().Pos();
GamePlay.gpHUDLogCenter("Where? x:" +
" y: " +
" z: " +
Next step will be to convert the virtual units into a real altitude and then perhaps remember coordinates to calculate speed. I've no idea if that'll work, but hey, it's all free so far right?
A really (really) quick way to use a script like this:
1. Read my point (5) as it's important, but then come back here.
2. Make test mission, called it 'whatever-you-like.mis'.
3. Make a text file and copy this text into it, but call it 'whatever-you-like.cs', i.e. the c and s bit stand for c ('see) sharp (or sometimes googled as c#). Save that file next to where the mission file loads from.
4. Play the mission and this text will appear both annoying centered and largely inaccurate. It updates every 10 seconds.
5. Scripts in CoD can do *anything*, so if you download them from places you don't trust then it's worth being careful - think of it like a program you download from the internet. It's up to you, but I thought it worth mentioning.
Also, anyone is very welcome to take this ball and run with it, as I'm off out soon but I thought I could kick things off.