Smart Antinuke Ranges widget

Smart Antinuke Ranges widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Smart Antinuke Ranges widget

Post by Floris »

Displays the range of all antinukes.
- displays red color when empty
- orange-yellowish when it has 1 missile stocked
- yellow when at least 2 missiles stocked

Will only display ranges when you have a high camera distance.

Optional glow with /antiranges_glow (default enabled)


KNOWN BUG: sometimes won't render range for some anti's (after changes to LOS)


Image
Attachments
gui_anti_ranges.lua
24 january 2015
(9.62 KiB) Downloaded 25 times
screen00059.jpg
(127.64 KiB) Downloaded 1 time
Last edited by Floris on 25 Jan 2015, 05:14, edited 2 times in total.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Smart Antinuke Ranges widget

Post by Jools »

This is a very nice idea and it's things like these that greatly help make the game better. Before you had to check the unit for stockpile, to include that information in range circle is genius. :)
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Smart Antinuke Ranges widget

Post by Jools »

Why is there a check for LOS for antis? Aren't own (or allied) antis always within LOS (except for maybe when they are cloaked ?).

And can you get info about enemy units stockpile anyway?
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Smart Antinuke Ranges widget

Post by jamerlan »

Updated widget here: https://github.com/jamerlan/gui_mobile_ ... ence_range
+ probably fixed "LOS" bug
this widget is still in testing :-)
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Smart Antinuke Ranges widget

Post by jamerlan »

Floris fixed compatibility with spring 100 engine here: https://github.com/jamerlan/gui_mobile_ ... ses/tag/v4
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Smart Antinuke Ranges widget

Post by Floris »

Eh I was misunderstood, I meant i fixed a bug i created when adding purple range color for anti's that were unfinished. I wasnt very clear, my bad. (The nil error wasnt comparable with one red_ui_console had)
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Smart Antinuke Ranges widget

Post by jamerlan »

Anyway)) Just a new version of widget then :-)
Post Reply

Return to “Lua Scripts”