Page 2 of 2

Re: r3829 WRF_NOSWITCH behaviour?

Posted: Sat Jan 19, 2013 5:01 am
by Enjay
Thanks. I keep forgetting that "wait" even exists.

I've attached an easier to use WAD example with the pistol replaced with one that plays misc/chat when deselected (ie similar to the above example but using "wait").

Re: r3829 WRF_NOSWITCH behaviour?

Posted: Thu Jan 24, 2013 1:36 pm
by Gez
Winter's Fury is affected by the problem.

Re: r3829 WRF_NOSWITCH behaviour?

Posted: Fri Jan 25, 2013 8:43 am
by Enjay
I notice that r4039 reverts things to the old behaviour (which certainly makes sense given the number of mods that have been adversely affected by r4024). It seems that doing this has fixed the sound-looping-when-lowering-a-weapon problem too.

I'm hoping that this thread not yet being moved to closed bugs indicates that some way of having the behaviour that I wanted is also being considered?

Re: r3829 WRF_NOSWITCH behaviour?

Posted: Fri Jan 25, 2013 8:47 am
by Graf Zahl
I think it's obvious from the changelog that Randy was preparing some more changes but hadn't had time yet to finish them.

Re: r3829 WRF_NOSWITCH behaviour?

Posted: Fri Jan 25, 2013 9:44 am
by Enjay
That's good. I saw a bunch of changes that seemed to be in this area but I wasn't sure if they were preparing the groundwork for something or were part of something else like a tidy up or whatever. Thanks for putting them into context for me.

Re: r3829 WRF_NOSWITCH behaviour?

Posted: Tue Jan 29, 2013 12:23 pm
by Enjay
Just thought I'd update with a little info here just in case it helps. When the ZDoom code changed initially I added A_WeaponReady(WRF_NOSWITCH) to the ready state sequence of my Minigun (and it worked as I wanted - as reported earlier). With the current code, the Minigun now half does what I wanted: once the weapon is selected, you cannot deselect it by pressing another weapon button. However, once you have pressed the button for another weapon, the Minigun no longer works properly. Even with the fire button held down, the gun only fires in short bursts (I assume it is going through its fire sequence right to the end before repeating rather than restarting when the fire sequence gets to A_Refire).

I know that the feature has not been fully addressed yet - and I'm not nagging - but I thought the information might be useful. In the spoiler is the code for the weapon concerned but there is quite a bit going on there so it might not be the best example. If a simpler example to work with is required, let me know.
Spoiler:

Re: r3829 WRF_NOSWITCH behaviour?

Posted: Mon Feb 04, 2013 8:28 pm
by randi
r4062 adds the WRF_DISABLESWITCH, which reimplements the WRF_NOSWITCH semantics from r4024. I believe that should be what you want, yes, Enjay?

Re: r3829 WRF_NOSWITCH behaviour?

Posted: Tue Feb 05, 2013 11:53 am
by Enjay
Yes, it seems to work perfectly. Thank you very much and sorry for the flurry of "X mod doesn't work any more" posts that were spawned because of the initial report and change.