[Added] r3829 WRF_NOSWITCH behaviour?

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Re: r3829 WRF_NOSWITCH behaviour?

Postby Enjay » Sat Jan 19, 2013 6:01 am

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").
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: r3829 WRF_NOSWITCH behaviour?

Postby Gez » Thu Jan 24, 2013 2:36 pm

Winter's Fury is affected by the problem.
Gez
 
 
 
Joined: 06 Jul 2007

Re: r3829 WRF_NOSWITCH behaviour?

Postby Enjay » Fri Jan 25, 2013 9:43 am

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?
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: r3829 WRF_NOSWITCH behaviour?

Postby Graf Zahl » Fri Jan 25, 2013 9:47 am

I think it's obvious from the changelog that Randy was preparing some more changes but hadn't had time yet to finish them.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: r3829 WRF_NOSWITCH behaviour?

Postby Enjay » Fri Jan 25, 2013 10:44 am

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.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: r3829 WRF_NOSWITCH behaviour?

Postby Enjay » Tue Jan 29, 2013 1:23 pm

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:
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: r3829 WRF_NOSWITCH behaviour?

Postby randi » Mon Feb 04, 2013 9:28 pm

r4062 adds the WRF_DISABLESWITCH, which reimplements the WRF_NOSWITCH semantics from r4024. I believe that should be what you want, yes, Enjay?
User avatar
randi
Site Admin
 
Joined: 09 Jul 2003

Re: r3829 WRF_NOSWITCH behaviour?

Postby Enjay » Tue Feb 05, 2013 12:53 pm

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.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Previous

Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests