Dgun Command fire For Non TA games

Dgun Command fire For Non TA games

Requests for features in the spring code.

Moderator: Moderators

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

Dgun Command fire For Non TA games

Post by bobthedinosaur »

Can we make an alternative Dgun like command fire weapon work for non "Disintegrator" weapons, since many games do not have them?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Dgun Command fire For Non TA games

Post by zwzsg »

Like the Byte's minelauncher or the Pointer's NX flag in KP, you mean?
SeanHeron
Engines Of War Developer
Posts: 614
Joined: 09 Jun 2005, 23:39

Re: Dgun Command fire For Non TA games

Post by SeanHeron »

Thanks for the heads up Z! I'll admit I'm not familiar enough with KP to have thought of that otherwise. Good to know where I can grab stuff from - will probably rip code from the minelauncher (couldn't find the NX Flag's code at a glance).

However Bobs request was broader I think - ie have a tag to set weapons (other than the dgun) to not fire by default / fire only once for each specific attack order. I think this is still a valid request.
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: Dgun Command fire For Non TA games

Post by bobthedinosaur »

I don't care about a new tag. it would just be nice to not reserve that feature for TA mods only. i'll take a look at your code Zwzsg, it will probably work for what i want.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Dgun Command fire For Non TA games

Post by FLOZi »

used to be commandfire=1; and still is.
SeanHeron
Engines Of War Developer
Posts: 614
Joined: 09 Jun 2005, 23:39

Re: Dgun Command fire For Non TA games

Post by SeanHeron »

Oh! Coolio :P. Thanks for saving us a lot of trouble Flozi, and sorry for me and Bobs shallow knowledge of the topic..
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Dgun Command fire For Non TA games

Post by FLOZi »

Much worse, it's an OTA tag and bob should know better. :P
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Dgun Command fire For Non TA games

Post by Pxtl »

zwzsg wrote:Like the Byte's minelauncher or the Pointer's NX flag in KP, you mean?
I distinctly remember either you or KDR saying you couldn't get the d-gun behavior of "select D-gun, click target" and the weapon fires only under those conditions to work - all solutions either perma-locked the weapon or made the weapon fire like any other secondary weapon.

I take it this issue was resolved?
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: Dgun Command fire For Non TA games

Post by bobthedinosaur »

commandfire=1; doesnt do crap. I was asking for a specific weapon button. If I tell a unit to attack any small thing it will waste a "dgun" like attack on the unit unless it has a dgun button/ hotkey designator.

i'll probably just look at KDR's code and see if that works. so dont worry about it. i was just pointing out another coddling for TA


edit: proper credits
Last edited by bobthedinosaur on 19 Jan 2010, 05:55, edited 1 time in total.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Dgun Command fire For Non TA games

Post by zwzsg »

bobthedinosaur wrote:i'll probably just look at Z's code
KDR's code. Afaik, it was a custom command with a custom button. See \LuaRules\Gadgets\specialattack.lua
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Dgun Command fire For Non TA games

Post by Pxtl »

zwzsg wrote:
bobthedinosaur wrote:i'll probably just look at Z's code
KDR's code. Afaik, it was a custom command with a custom button. See \LuaRules\Gadgets\specialattack.lua
So in other words, the actual, literal "D-Gun" command that has a default keybind associated with it is still pretty much only useful for TA, and nobody can make use of it in non-TA mods.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Dgun Command fire For Non TA games

Post by FLOZi »

bobthedinosaur wrote:commandfire=1; doesnt do crap. I was asking for a specific weapon button. If I tell a unit to attack any small thing it will waste a "dgun" like attack on the unit unless it has a dgun button/ hotkey designator.

i'll probably just look at Z's code and see if that works. so dont worry about it. i was just pointing out another coddling for TA
Ah, now i see. :P

Having a quick grep through the code suggests canDGun for the unitdef. It's not immediately clear if that is tied to only work with DISINTEGRATOR type weapons, though (Doesn't seem to be at a glance). In any case if you want multiple dgun-type weapons then yeah, lua is the only way to go currently. :oops:
SeanHeron
Engines Of War Developer
Posts: 614
Joined: 09 Jun 2005, 23:39

Re: Dgun Command fire For Non TA games

Post by SeanHeron »

Well - no worries. I thought it sounded too good to be true :P. I shouldn't have been lazy and actually tried what you were saying before replying... guess we're sorted for the moment.

The request as such is still valid though!
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Dgun Command fire For Non TA games

Post by imbaczek »

KP's NX pointer attack still seems to be pretty much what you want. Can't point you to a specific file but you can grep gadgets for "pointer".
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Dgun Command fire For Non TA games

Post by zwzsg »

imbaczek wrote:KP's NX pointer attack still seems to be pretty much what you want. Can't point you to a specific file but you can grep gadgets for "pointer".
zwzsg wrote:See \LuaRules\Gadgets\specialattack.lua
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Dgun Command fire For Non TA games

Post by KDR_11k »

I believe any commandfire weapons on a canDGun unit will be bound to the dgun button, IIRC I had that mixed on a SimBase EDIT commander that had both a regular weapon and a vlaunch missile.
Post Reply

Return to “Feature Requests”