new BA widget - Crawling bombs (hold fire + self-d radius)v4

new BA widget - Crawling bombs (hold fire + self-d radius)v4

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

Moderator: Moderators

Post Reply
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

new BA widget - Crawling bombs (hold fire + self-d radius)v4

Post by jamerlan »

updated to v4: Draw blow radius for adv geos too
updated to v3: Draw decloak range for Advanced Crawling Bomb
updated to v2: Advanced Crawling Bombs are cloaked by default
--
Sets crawling bombs on hold fire by default and displays self-d radius + draws adv geo blow radius

Image
unit_crawling_bomb_range.lua
(5.66 KiB) Downloaded 10 times
Project page on github


P.S. Idea of that widget belongs to klapmongool. Thanks klapmongool!
Last edited by jamerlan on 16 Jan 2015, 19:32, edited 4 times in total.
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by klapmongool »

Thanks, great stuff!
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by knorke »

Nice idea. I always do ctrl-z to select all then click the button, sucks a bit. :roll:

How about a more general version of the widget?
There are many units where I would like to use different default states than the game defines.
If one changes it in factory but then it is for all units...
So instead of having crawl_bomb_holdfire.lua and samson_auto_roam.lua and bertha_return_fire.lua and whatnot, how about one "state config widget"?
Where one can config what firestate and units use?

Say there would be a config like this:

Code: Select all

arm_rocko = {move=0, fire=2}
core_roach = {move=1, fire=2}
arm_bertha = {move=0, fire=1}
No entry means to use defaults.
Best of course also have different configs for games, like BA.lua, XTA.lua etc
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by jamerlan »

knorke, there are "Blast radius", "hold fire" and "don't move" widgets. They are more general and you can configure them to tweak a game.

Many people have issues with installing widgets. This process is complicated for them. So editing widgets is a rocket sience. And I am not so cool to create user friendly GUI for that.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by dansan »

Hmm... for me a general version would also be very useful...
Maybe cooperate with funkencool: you make the backend (settings and config-I/O) and he makes a GUI... he's into "options" atm :)
[boldly throwing work at others xD]
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by klapmongool »

knorke wrote:Nice idea. I always do ctrl-z to select all then click the button, sucks a bit. :roll:

How about a more general version of the widget?
There are many units where I would like to use different default states than the game defines.
If one changes it in factory but then it is for all units...
So instead of having crawl_bomb_holdfire.lua and samson_auto_roam.lua and bertha_return_fire.lua and whatnot, how about one "state config widget"?
Where one can config what firestate and units use?

Say there would be a config like this:

Code: Select all

arm_rocko = {move=0, fire=2}
core_roach = {move=1, fire=2}
arm_bertha = {move=0, fire=1}
No entry means to use defaults.
Best of course also have different configs for games, like BA.lua, XTA.lua etc

Would be nice. Main problem with crawling bombs however was that they don't copy the 'hold fire' order from the lab..
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by Floris »

Please add to the drawworld function:
"if Spring.IsGUIHidden() then return end"

To have a clean non-ui view of the map when pressing f5, like it should.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by jamerlan »

Floris wrote:Please add to the drawworld function:
"if Spring.IsGUIHidden() then return end"

To have a clean non-ui view of the map when pressing f5, like it should.
Sure! Will do it in the nearest future :-) Today I am drunk :-D Russia...
User avatar
albator
Posts: 866
Joined: 14 Jan 2009, 14:20

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by albator »

Can you add an option to make advanced core ones cloak when leaving factory ?
I know that is huge E-consumption, but on large scale/eco battle that will definitely fit.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: new BA widget - Crawling bombs (hold fire + self-d radiu

Post by jamerlan »

albator wrote:Can you add an option to make advanced core ones cloak when leaving factory ?
I know that is huge E-consumption, but on large scale/eco battle that will definitely fit.
Thanks for idea!

Updated to v2:
Advanced Crawling bombs are cloaked by default (you can configure using "cloakAdvCrawlingBombs" variable) + hide circles when GUI is hidden
Last edited by jamerlan on 31 Dec 2013, 17:48, edited 1 time in total.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: new BA widget - Crawling bombs (hold fire and self-d rad

Post by jamerlan »

updated to v3: Draw decloak range for Advanced Crawling Bomb
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: new BA widget - Crawling bombs (hold fire + self-d radiu

Post by jamerlan »

Updated to v4: Draw blow radius for adv geos too
Post Reply

Return to “Lua Scripts”