ezquake-source icon indicating copy to clipboard operation
ezquake-source copied to clipboard

BUG: CTF hook no longer working with certain settings

Open BLooD-DoG opened this issue 4 years ago • 2 comments

A few issues with the hook I just noticed after installing a server (also tested on london.badplace.eu, same behavior there).

This happens with or without cl_pext_serversideweapon.

1- With cl_weaponpreselect 4, you cannot switch to the hook with weapon 22 and fire it. Other values of weaponpreselect behave slightly differently, for example if you keep holding down +attack then press the weapon 22 bind it might fire the hook and return to sg. cl_weaponpreselect 0 behaves ok.

2- $weaponnum doesn't get set to 22 when you switch to the hook, it stays at 0. It works for other weapons and is useful for certain weapon scripts.

3- I'm 99% sure +hook used to work, but it's no longer recognized.

BLooD-DoG avatar Aug 23 '21 18:08 BLooD-DoG

Hi @BLooD-DoG can you try this again, I've reverted all the ssws stuff if that ever broke it. Can you also test on ezquake 3.2 and see if it worked in the old days? I can't find +hook in the history of ezQuake or ktx, so I don't know how to help you there, maybe it was a config alias?

(<rant about people relying on $weaponnum removed>... I don't think 22 will ever be valid unless you change what it does to work it out by the filename of the viewmodel instead of STAT_ACTIVEWEAPON, and I can hear Spike puking as I type this)

meag avatar Nov 01 '21 22:11 meag

Sorry for the delay, was traveling and only playing sporadically from a laptop.

I tried the latest 3.6-alpha10 connected to london.badplace.eu. With cl_weaponpreselect 0, the hook works fine with weapon 22 followed by +attack. Alternatively, you can select the hook by pressing the axe (weapon 1) bind twice. Also alternatively, you can fire with +fire 22.

However, any other value of cl_weaponpreselect never changes to the hook with weapon 22. And trying the axe trick has weird behavior: pressing it once or twice (or more) still shows you carrying the axe. +attack will fire the axe first, then another +attack will fire the hook, then back to axe, alternating indefinitely. However, you can still fire the hook with +fire 22.

I then tried 3.2.3 and the behavior seemed the same... Works with cl_weaponpreselect 0, not with higher values. Double axe behavior weird, and +fire 22 is working.

BLooD-DoG avatar Dec 04 '21 08:12 BLooD-DoG