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
emp - circular - dgun thinger request
Moderator: Moderators
- Guessmyname
- Posts: 3301
- Joined: 28 Apr 2005, 21:07
Re: emp - circular - dgun thinger request
Non-Lua is entirely possible: Dropped Dgun weapon with a large aoe weapon that stuns.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: emp - circular - dgun thinger request
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).
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).
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: emp - circular - dgun thinger request
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 

Re: emp - circular - dgun thinger request
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.)
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.)
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: emp - circular - dgun thinger request
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.
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.
Re: emp - circular - dgun thinger request
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
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: emp - circular - dgun thinger request
Thanks for all the help guys
I really appreciate it =D
