emp - circular - dgun thinger request

emp - circular - dgun thinger request

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

Moderator: Moderators

Post Reply
User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

emp - circular - dgun thinger request

Post by KaiserJ »

in anticipation of this being a lua related request for help, i will put it here.

i would like to have a script for a unit that will bind an attack to a key (similar to how the dgun works) but instead of shooting in a line; it will have a circular effect around the unit, and instead of dealing damage, it will have an EMP effect.

any suggestions are welcome; i haven't a clue of how to go about creating such a thing. a non-lua solution i suppose would be better but it doesnt seem plausible from what i know
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Re: emp - circular - dgun thinger request

Post by Guessmyname »

Non-Lua is entirely possible: Dropped Dgun weapon with a large aoe weapon that stuns.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: emp - circular - dgun thinger request

Post by Forboding Angel »

Don't want to use d-gun for it though. It would be nice if I could capture a keypress in bos and run a function from it. Is that possible?

For example, basically I have X unit, and I want a weapon to be emitted immediately upon a single keypress. Doesn't need a gui menu item or anything, just a simple, when I press this button, run this cob routine (which will emit a cannon shot - using cannon because it explodes immediately upon being emitted therefore making it perfect use for radius emp weapons).
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: emp - circular - dgun thinger request

Post by Forboding Angel »

After having various suggestions posed, it seems that there is no way to do this without lua, and because of my inability of coding lua, I wouldn't hold my breath for this particular feature. Thanks anyway :-)
SeanHeron
Engines Of War Developer
Posts: 614
Joined: 09 Jun 2005, 23:39

Re: emp - circular - dgun thinger request

Post by SeanHeron »

We have a gadget that immediately does an area stun around the unit on button click/order give (key press should be trivial to add). However it's not via a weapon fired, the stun is via the gadget as well, so maybe it's not really what you're looking for. (Adding an SFX call was something I still meant to look into - using a weapon fired was something Bob had suggested, and would certainly have advantages).

Sorry it's not in the Database yet, my bad there (my laziness and the sense of its incompleteness added up).

Edit: erm, I meant to also say I'll upload the gadget here shortly (after I've looked over it regarding requirements, etc.)
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: emp - circular - dgun thinger request

Post by CarRepairer »

1) Make the wide area emp weapon with tiny range, add it to the unit. Set unit to holdfire.
2) Make a widget function that ground-fires the weapon on point right where the unit is standing.
3) Add ActionHandler action and bind a key to it.

Would that be fine? Contact me on the lobby for more help.
SeanHeron
Engines Of War Developer
Posts: 614
Joined: 09 Jun 2005, 23:39

Re: emp - circular - dgun thinger request

Post by SeanHeron »

Durr - got sidetracked yesterday. Been busy today, so here's just the gadget straight from our repository, no fixing up whatsoever (I've not even looked over it).
Attachments
AbilityEMP.lua
(2.53 KiB) Downloaded 129 times
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: emp - circular - dgun thinger request

Post by Forboding Angel »

Thanks for all the help guys :-) I really appreciate it =D
Post Reply

Return to “Lua Scripts”