Dgun Helper v1.2

Dgun Helper v1.2

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

Moderator: Moderators

Post Reply
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Dgun Helper v1.2

Post by TheFatController »

Just throwing this out here I put it together in about an hour and have not really used any proper engine maths or code optimization however it seems about right..!

You get circles to show where to dgun and it turns your com in the direction of your mouse pointer using CMD.ATTACK (or if you're moused over a unit it uses CMD.RECLAIM or CMD.REPAIR as applicable)
Image

Download v1.2: http://pw3n.net/widgets/unit_dgunhelper.lua

If anyone wants to go ahead and improve this feel free I just wanted to make a quick widget cause the idea popped into my head but I didn't want to spend hours perfecting it :)
Last edited by TheFatController on 07 Feb 2009, 01:55, edited 2 times in total.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Dgun Helper BETA1

Post by Gota »

LOL.
Just in time.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Dgun Helper BETA1

Post by imbaczek »

you'd be exiled from the intertubes if you did it for quake or cs ^^ nice.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Dgun Helper BETA1

Post by REVENGE »

http://www.moddb.com/mods/mercury-missi ... r#imagebox

Circle/line shows you where to aim. Pretty neat. :P
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Dgun Helper BETA1

Post by TheFatController »

Oh the line would be a cool addon.

I need to make it so it doesn't decloak a cloaked com too, so a quick update is in the works ;)
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Dgun Helper BETA1

Post by Argh »

Super-cool. Two thumbs up :lol:
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Dgun Helper BETA1

Post by REVENGE »

TheFatController wrote:Oh the line would be a cool addon.

I need to make it so it doesn't decloak a cloaked com too, so a quick update is in the works ;)
What the...

:twisted:

But seriously, nice work!
YHCIR
Posts: 190
Joined: 12 Aug 2006, 23:06

Re: Dgun Helper BETA1

Post by YHCIR »

Get this error quite often:
Image
http://www.zen23322.zen.co.uk/images/fo ... rerror.PNG
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Dgun Helper BETA1

Post by TheFatController »

I think if you download it again I ninja updated it to fix that one :p
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: Dgun Helper 1.2

Post by TheFatController »

Updated (same link)

I don't have permission to update it on the Springdownloader list tho, I guess someone else added it.
User avatar
marciolino
Posts: 268
Joined: 06 Sep 2010, 22:59

Re: Dgun Helper v1.2

Post by marciolino »

No more working for me since Spring-87 :(
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Dgun Helper v1.2

Post by jamerlan »

marciolino, I fixed it but not sure that it works as it should.
I did not use it before so I don't know how it worked before spring 85.

Could you please test attached version?
Attachments
unit_dgunhelper.lua
dgun helper for 87 spring - first attempt
(3.94 KiB) Downloaded 151 times
User avatar
marciolino
Posts: 268
Joined: 06 Sep 2010, 22:59

Re: Dgun Helper v1.2

Post by marciolino »

Thanks jamerlan, it is working again! ;)
Maybe lines could be a bit thicker?
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Dgun Helper v1.2

Post by very_bad_soldier »

One question: In current BA the Dgun helper stuff functionality is included in "Attack AoE" and is working fine for me. Are there any differences to this version?
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Dgun Helper v1.2

Post by jamerlan »

1) it turns your commander to look at your mouse cursor - dgunning without delays
2) It highlights enemy and shows where to shoot with prediction
Attachments
dgunhelper.png
(938.37 KiB) Downloaded 3 times
Post Reply

Return to “Lua Scripts”