Air strike?

Air strike?

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

Moderator: Moderators

Post Reply
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Air strike?

Post by bobthedinosaur »

the idea: to have infantry or FAC/ spotter unit call in an airstrike via a nice build menu like gui? maybe different missions such as, bombing, close air support(anti armor), and anti air (fighter support)? the aircraft would probably have to eventually refuel/ resupply and leave after designated time or so many ground attacks

would it be difficult, and what would be the simplest way to tackle?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Just add custom commands and spawn a plane at the map edge that attacks the target point.
User avatar
Pendrokar
Posts: 658
Joined: 30 May 2007, 10:45

Post by Pendrokar »

KDR_11k wrote:Just add custom commands and spawn a plane at the map edge that attacks the target point.
Like with Unreal Tournament 2004 Bomber call weapon(Target Painter), which after painted spawns a bomber that bombs and dissapears!
EDIT: Though it could be shot down to not drop the bombs!
Last edited by Pendrokar on 18 Dec 2007, 14:15, edited 1 time in total.
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Post by bobthedinosaur »

yes, well what i had in mind is something that spawns but can also be shot down, if the enemy has emplace AA strategically enough or maybe called for fight support patrol that screens for a time period and then leaves. but yah maybe a unit that's job specifically is to be a forward air controller and has no other real weapons, hence to be teamed up and defended?
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Post by bobthedinosaur »

the more i think about it the more i like the idea of air strikes, but how would you disable the cotrols for the air you call in so it only attacks and then leaves? also balance wise for gameplay how would you limit the number of air strikes? you cant just spawn a load of FACs to call in for spam air?
User avatar
HildemarDasce
Posts: 74
Joined: 13 Nov 2005, 12:06

Post by HildemarDasce »

Maybe build the strikes Nuclear Silo style?
And I'm wondering, could you do the same sort of thing with an orbital strike? Ie. missile/beam/whatever coming down from the sky.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

You can use Spring.SetUnitNoSelect to prevent selecting and you can use Allowcommand to not let widgets issue commands either.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

Or you can make the plane a gaia unit, which is what I did in the very first (I guess) Lua custom command demo - the orbital barrage. (It's completely obsolete now, but the basic idea should be the same.)
User avatar
Zpock
Posts: 1218
Joined: 16 Sep 2004, 23:20

Post by Zpock »

imbaczek wrote:Or you can make the plane a gaia unit, which is what I did in the very first (I guess) Lua custom command demo - the orbital barrage. (It's completely obsolete now, but the basic idea should be the same.)
I guess you want only the enemy team shooting at it tough, so this won't work perfectly. Just put in a check if it's the bomber and then return 0 in allowcommand like KDR says. U have to learn quite a bit about the whole command system to understand how it works and it's quite a pain, but then the rest is easy.
Post Reply

Return to “Lua Scripts”