Sunflares always treated as a weapon

Issue #179 resolved
Американский Шпион created an issue

if you play with autoswitch weapons option on, every time you pick a sunflare the weapon will be changed to it

Comments (8)

  1. Frank Sapone

    Yeah, I always forget about this one. Will see if I can mess around soon to figure this one out. Should be a relatively easy thing to fix some evening.

  2. Frank Sapone

    I fixed this but there is a slight "gotcha". In Daikatana weapons have a ratings system so a higher number weapon is more important. I.e. lets say you were playing DM e2dm1 and you picked up the trident first it will never switch to the sunflare, even if you never had it before.

    However, in Quake 1 and 2 if you have never had the new weapon before it will switch to it one time. After that, the game won't autoswitch to a weapon you already have.

    I can have it set either way, or allow it to be controlled with a CVAR. It's your choice (and the communities). Previously, the game was not checking to see if you at least already had a weapon before calling the weapon switching function. I fixed that, and the game also forgot to check if you have a weapon that uses no ammo (i.e. the hades hammer). I fixed that as well, otherwise if you were holding the hammer any weapon you pick up would switch from it because it thinks you have no ammo for your current weapon.

  3. Американский Шпион reporter

    Why can't it can be both at once - q1/q2 style for single player, rating system for multiplayer?

  4. Frank Sapone

    It could be both, it could even be something like this (which I think is the best solution btw):

    cl_autoswitchweapon 1 -- weapon switching based on rating system (as it's supposed to be now, but slightly broken) cl_autoswitchweapon 2 - q1/q2 style.

    If that's an acceptable solution to you I will get to work soon on changing the auto-weapon switching in the options menu to having a drop down box.

    If this happens, dknews will have to be updated (not a problem) and the other remaining servers since they check for the presence of the weapon switching CVAR in your userinfo strings. Otherwise, they'll have the same bug we're talking about now because the weapon switching code is in the game code.

  5. Американский Шпион reporter

    Your choise is good, you can go with it. But I still think that it would be better to separate sp and mp, that was even in q2. there is not much point in classic q1/q2 scheme in mp. and weapons don't always go in order in sp, so rating system will ignore some guns

  6. Frank Sapone

    Okay. Right now I have it set this way:

    cl_autoweaponswitch "1" -- based on the rating system, as DK intended.

    cl_autoweaponswitch "2" - based on q1/q2 style

    Is this OK with you? I'll have to update the menu options to reflect the changes but I'm running out of space in the options menu so I'm looking into updating the menu to have a second page which would allow me to show boxes for some of the other new CVARs (like show_fps, etc.).

  7. Frank Sapone

    New build will be available shortly that fixes this. Also adds a separate page in the options menu so you can configure the style you want.

    Again, this is a game DLL fix, so servers that arent updated will still have the bug... but since MeisterM and I are the only ones hosting servers it shouldn't be a problem.

  8. Log in to comment