Author |
Message |
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Dual Weapon Mode Template *Obsolete!
Heh, with the new build out this is quite obsolete. However, if you post what you have, I can try to resolve the issue.
I might write up a little tutorial on how to get multiple weapon modes later on (when pie menus get fixed) (although it's quite easy anyways).
|
Fri Aug 19, 2011 2:02 pm |
|
|
Gotcha!
Joined: Tue Apr 01, 2008 4:49 pm Posts: 1972 Location: The Netherlands
|
Re: Dual Weapon Mode Template *Update - Extremely Reliable
If you would I'd be eternally in your debt (euh.. which I already am I think). This version has all lua files changed to your latest template: http://avatar.home.xs4all.nl/downloads/ ... _v100a.rarI double checked all non-lua parts. I didn't try to make custom changes to the lua files like last time. Important to know. The .lua files are in /Devices/Lua The non-lua bits are in /Devices/Ammo.ini and Standard Weapons.ini, but I am positive they're fine. I wouldn't mind waiting for this new and easy way if you can't find it though.
|
Fri Aug 19, 2011 2:57 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Dual Weapon Mode Template *Obsolete
The problem seems to be with the template itself. Build 25 seems to have broken it.
|
Sun Aug 21, 2011 5:49 am |
|
|
Gotcha!
Joined: Tue Apr 01, 2008 4:49 pm Posts: 1972 Location: The Netherlands
|
Re: Dual Weapon Mode Template *Obsolete
Aw. Ah well. Hopefully another solution will turn up soon. Thanks for your help once again.
|
Sun Aug 21, 2011 3:09 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Dual Weapon Mode Template *Working
Got these working for build 25. They're a hell of a lot easier to implement now, and bug free.
|
Tue Aug 23, 2011 6:42 am |
|
|
Gotcha!
Joined: Tue Apr 01, 2008 4:49 pm Posts: 1972 Location: The Netherlands
|
Re: Dual Weapon Mode Template *Working
They work like a charm. It does switch to the next weapon in your inventory upon changing fire mode, but you will have the alternate fire mode gun in your inventory as well. Not that much of a problem. Thank you so bloody much for this.
|
Tue Aug 23, 2011 5:00 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Dual Weapon Mode Template *Working
Gotcha! wrote: It does switch to the next weapon in your inventory upon changing fire mode, but you will have the alternate fire mode gun in your inventory as well. Not that much of a problem. I've managed to solve that issue, but I'm not sure how stable this is. If you want to give it a thorough test, here's the updated version: (DL moved to OP)
|
Tue Aug 23, 2011 8:18 pm |
|
|
Gotcha!
Joined: Tue Apr 01, 2008 4:49 pm Posts: 1972 Location: The Netherlands
|
Re: Dual Weapon Mode Template *Working
Seems really perfect so far. I'll change the rest of the scripts and will test it some more tonight. Thanks!
|
Tue Aug 23, 2011 8:44 pm |
|
|
Pantera1993
Joined: Wed Jul 06, 2011 5:11 pm Posts: 226
|
Re: Dual Weapon Mode Template *Working
This method is only really useful if you only have the one weapon in your inventory which can be pretty useless when it switches to some other weapon that isn't the one you wanted to use. Is there an update that fixes this on the horizon?
|
Wed Aug 24, 2011 3:36 am |
|
|
Gotcha!
Joined: Tue Apr 01, 2008 4:49 pm Posts: 1972 Location: The Netherlands
|
Re: Dual Weapon Mode Template *Working
2 posts above you.
|
Wed Aug 24, 2011 10:24 am |
|
|
Pantera1993
Joined: Wed Jul 06, 2011 5:11 pm Posts: 226
|
Re: Dual Weapon Mode Template *Working
That's the one I used :/ EDIT: Oh, I got it working! Great stuff as usual!
|
Wed Aug 24, 2011 11:34 pm |
|
|
Pantera1993
Joined: Wed Jul 06, 2011 5:11 pm Posts: 226
|
Re: Dual Weapon Mode Template *Working
To my experience, this doesn't work with grenades. Am I doing something wrong or is it not supposed to work with grenades?
|
Thu Sep 08, 2011 3:34 am |
|
|
Gotcha!
Joined: Tue Apr 01, 2008 4:49 pm Posts: 1972 Location: The Netherlands
|
Re: Dual Weapon Mode Template *Working
Should work with grenades as well. Just be sure not to forget this: Code: function Create(self)
self.switchToWeapon = "Grenade"; self.switchToClass = "HDFirearm"; <---------------------- change to TDExplosive self.switchPhase = 0;
end
|
Thu Sep 08, 2011 3:44 am |
|
|
Pantera1993
Joined: Wed Jul 06, 2011 5:11 pm Posts: 226
|
Re: Dual Weapon Mode Template *Working
I found the problem! The grenades need to be GetsHitByMOs = 1. I guess it's a simple fix, but my first test made the grenades in my actors inventory explode once I threw one and it blew up. I guess this can just be a super special secret feature
|
Thu Sep 08, 2011 6:23 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Dual Weapon Mode Template *Pie
Posted the most recent version of this in the OP, for those who prefer the old gun-switching method instead of mag-switching.
|
Sun Sep 18, 2011 6:43 pm |
|
|
|