Speedometer, etc.

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Speedometer, etc.

Post by Red Devil »

this was on my wishlist/to do list, so this my crude first attempt. thought of changing the shape to something like the hull/ammo shapes, but thought that might be confusing.

Image
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Speedometer, etc.

Post by General BlackDragon »

Neat. Although for some reason on my firefox, there's no scroll bar across the bottom, the right half of the image simply gets cut off.

I had to right click > copy image location, and paste it into a new tab to view.
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
DarkCobra262
Sabre
Posts: 275
Joined: Sat Feb 25, 2012 9:13 pm
Contact:

Re: Speedometer, etc.

Post by DarkCobra262 »

As did I :/
Modding/Modelling like a noob...
User avatar
Axeminister
Sabre
Posts: 442
Joined: Sat Feb 19, 2011 4:03 pm
Location: Texas, USA
Contact:

Re: Speedometer, etc.

Post by Axeminister »

Same here but with IE. By the way, I like it.
He who does not advance themselves, endlessly becomes themselves.

http://www.reverbnation.com/tunepak/3606640
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Speedometer, etc.

Post by Red Devil »

weird, not with me :? were you logged in?
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
User avatar
MrTwosheds
Recycler
Posts: 3059
Joined: Sat Feb 19, 2011 8:37 am
Location: Outer Space
Contact:

Re: Speedometer, etc.

Post by MrTwosheds »

The lellowish BG colour looks non native. It would also be nice to use a display capable of telling you just how ridiculously fast your unit is now going under unusual circumstances. (thinks of UEP DF mode)
The Silence continues. The War Of Lies has no end.
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Speedometer, etc.

Post by General BlackDragon »

I agree, the BG should be light blue to match the rest of the UI.

And, MrTwosheds, I believe the bottom number under the bar will indicate actual speed, even if it goes beyond the bar...
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Speedometer, etc.

Post by Red Devil »

this would not have been possible without Nathan adding the callback, so thanks and a tip of the hat to him for it :-)

been 'experimentating' with color, so i used that.

i have version i use for my fast test units which i could upload. here's the dll code i am using now:

top of .cpp file:
Vector CraftVelocity;


inside execute:

CraftVelocity = GetVelocity(m_Player);
f_PlayerVectorx = CraftVelocity.x;

IFace_SetInteger("options.instant.int31", abs(int(f_PlayerVectorx)));


(yes, i could condense everything into a line or two, but i cherish readability, especially now.)


cfg

(embedded it in the weapon cfg instead of its own so i didn't have to add a call for it)

edit: i originally made it to just show the speed in numbers, without the graph.

thanks, rs
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
User avatar
Red Spot
Attila
Posts: 1629
Joined: Mon Feb 21, 2011 6:14 pm
Location: The Netherlands

Re: Speedometer, etc.

Post by Red Spot »

Red Devil wrote:cfg
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Speedometer, etc.

Post by Red Devil »

i should have mentioned that that was for IA; probably want to make that a member varb fro MP.
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Speedometer, etc.

Post by Red Devil »

thuggin' in G66 IA:

Image
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: Speedometer, etc.

Post by Nielk1 »

Might I suggest you try isolating the local left, right, forward, and back magnitudes and apply it to a + shaped gauge alignment? The method you use now gives the absolute velocity.

Also, if you haven't, try reading the top speed from the ODF, add some too it, and then scale the gauge % and set the marker numbers on it appropriately.

I take it you set this to always be visible in the CFG. I have been trying to get the DLL to load extra CFGs on demand, but the issue comes when you try to DLL create vars that already exist, DLL access vars that don't, or exec a CFG only once (when first needed) and then display it at the right times.

The speedometer probably only has a good place in racing maps though. If you make sure its a separate CFG, you can allow people to more easily customize it.
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Speedometer, etc.

Post by Red Devil »

successfully duplicated the activity in Natty's vid :twisted:
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Speedometer, etc.

Post by General BlackDragon »

link?
Battlezone Classic Public Forums
*****General BlackDragon*****
Post Reply