BlastRadius / GhostSite / UnitMarker

BlastRadius / GhostSite / UnitMarker

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

Moderator: Moderators

Post Reply
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

BlastRadius / GhostSite / UnitMarker

Post by very_bad_soldier »

These are the widgets split up from DefenseRange:

Blast Radius
-Shows the blast radius of currently selected units (Select units, then hold SPACE+X)
-Shows blast radius of a building while placing it (hole SPACE while placing). Blast radii for multiple buildings (building blocks) are not supported currently

Ghost Site
-Adds ghosted buildings for buildings under construction (in green)
-Adds ghosted features (like DragonTeeth/FortificationWall)

Unit Marker
Marks special buildings or units of interest on sight.
You can put a unit list into the widget for each mod, so adding your own units or mods is easy. By default, BA's and CA's Nukes and AntiNukes get marked.
When multiple players in one game use this, the marker is only placed once.

You can download them in SpringDownloader or use the web-interface:
http://spring.vsync.de/luaManager/
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: BlastRadius / GhostSite / UnitMarker

Post by Neddie »

GhostSite and UnitMarker - For Dicks.

I'm just being harsh, good work very_bad.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: BlastRadius / GhostSite / UnitMarker

Post by REVENGE »

Nice. Back in August, I pirated your defensive range widget and made my own unit marking widget. Might dump this and make a custom version again. :P

And neddie is right btw, admins pretty much wanted to kick me when I had scouts marked XD.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: BlastRadius / GhostSite / UnitMarker

Post by TheFatController »

Gonna add this to these for the next BA:

Code: Select all

function widget:GameStart()
  for i, widget in ipairs(widgetHandler.widgets) do
    if (widget:GetInfo().name == 'Defense Range') then
      local version = tonumber(string.match(widget:GetInfo().desc,'%d+%.%d+'))
      if version and (version < tonumber("6")) then
        widgetHandler:RemoveWidget(widget)
      end
    end
  end
end
This way if someone has an older Defense Range in their /luaui/ folder the functionality wont be reproduced.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: BlastRadius / GhostSite / UnitMarker

Post by Jazcash »

Could the unit marker be modified to tag decoy Coms?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: BlastRadius / GhostSite / UnitMarker

Post by Beherith »

Commander nametags already does that :wink:
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: BlastRadius / GhostSite / UnitMarker

Post by lurker »

On enemy units? Are you misreading the question or has a bug cropped up in the unitdef hiding that I missed.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: BlastRadius / GhostSite / UnitMarker

Post by REVENGE »

lurker wrote:On enemy units? Are you misreading the question or has a bug cropped up in the unitdef hiding that I missed.
No, fucker got my hopes up too. :(
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: BlastRadius / GhostSite / UnitMarker

Post by manolo_ »

help me again, why isnt it working with xta?
Attachments
unit_marker.lua
(7.04 KiB) Downloaded 16 times
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: BlastRadius / GhostSite / UnitMarker

Post by very_bad_soldier »

Cause this line clears the whole table and you have it in the code after filling the table:

Code: Select all

local unitList = {}
This line is only needed once before filling the table.
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: BlastRadius / GhostSite / UnitMarker

Post by manolo_ »

thx,

include xta for the next time, so i dont have to ask :D
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: BlastRadius / GhostSite / UnitMarker

Post by manolo_ »

could the unit marker stop to spam more than one mark per object (if several players have the same units within the widget)?
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: BlastRadius / GhostSite / UnitMarker

Post by very_bad_soldier »

could you take the time and test it with me?
User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: BlastRadius / GhostSite / UnitMarker

Post by manolo_ »

very_bad_soldier wrote:could you take the time and test it with me?
sure
Post Reply

Return to “Lua Scripts”