Announcement

Collapse
No announcement yet.

gawddawm observer mode dosent come quietly, where are they?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by golden_boy View Post
    I do.

    I followed the vote tutorial, and I'm confused about SetNewParms() versus SetNewParms2().

    It's clear that the former should be called on client connect, and the latter on respawn.

    However, in our mod, the original SetNewParms() is only called from SetChangeParms() - NO other place. So Bam is incorrect when he says that SetNewParms() is called from other places in client.qc AFTER you make all the listed changes to SetNewParms2().

    Even in your own poq_votable progs, SetNewParms() isn't called at all anymore. o_O

    Please clear up in which function the original SetNewParms() should be called, and which other functions should call SetNewParms2().

    Second question: In observer.qc, in ObserverEnd(), I guess I should use SetNewParms2() because it's not a new client, right?

    gb
    I'm not good enough at QuakeC to be able to answer a question with a curve it in (you know more than me). Although Bam or Zop would be able to do so easily ...

    That being said, here is what the vote-map code is doing so you can adapt it.

    When someone respawns, it needs to preserve their voting state instead of simply resetting everything, so

    void ()
    SetNewParms2 =
    {
    parm1 = IT_SHOTGUN | IT_AXE;
    parm2 = 100;
    parm3 = 0;
    parm4 = 25;
    parm5 = 0;
    parm6 = 0;
    parm7 = 0;
    parm8 = 1;
    parm9 = 0;
    parm10 = self.pflag;
    };
    [/quote]

    This is preserving their "do they already have binds?" state.

    So just make sure that whatever you are doing and however this is being stored in Quake Remake that

    1. the "binds sent" state is being preserved upon respawn
    2. the "binds sent" state is being reset upon connect/disconnect
    3. Gets carried over across a map change.
    4. That the state does get checked so that a new connection gets the binds.

    By the way, in listen mode and single player ... this code tends to be difficult to test.
    Quakeone.com - Being exactly one-half good and one-half evil has advantages. When a portal opens to the antimatter universe, my opposite is just me with a goatee.

    So while you guys all have to fight your anti-matter counterparts, me and my evil twin will be drinking a beer laughing at you guys ...

    Comment


    • #17
      Remake sets its own parm10 and parm11, so I just made this one parm12.

      Apparently, SetNewParms is a global - does this mean it's called automatically? No wonder then.

      Now, after removing the call to that, when I enter "e1m1rq" it switches to the chainsaw (weapon 1). So, it does transform "e1m1" to "impulse 1". Accordingly, "e1m3" gives me "no weapon" in DM.

      Looks like the interruption mechanic doesn't work right, in W_WeaponFrame. I do get from there to ImpulseCommands, but somehow it just sends impulse 1 etc. instead of impulse 97 and then impulse 1.

      This is driving me up the wall.

      I am testing with a dedicated server on the same machine. I tried setting up a server on my other machine, but I ran into NET_GetMessage failed. Yes, I know what that means, but can I be arsed to fuck with my Linux firewall right now?

      Argh. I'll cut it for now. This is so frustrating. :-(
      Scout's Journey
      Rune of Earth Magic

      Comment


      • #18
        Originally posted by golden_boy View Post
        Remake sets its own parm10 and parm11, so I just made this one parm12.

        Apparently, SetNewParms is a global - does this mean it's called automatically? No wonder then.

        Now, after removing the call to that, when I enter "e1m1rq" it switches to the chainsaw (weapon 1). So, it does transform "e1m1" to "impulse 1". Accordingly, "e1m3" gives me "no weapon" in DM.

        Looks like the interruption mechanic doesn't work right, in W_WeaponFrame. I do get from there to ImpulseCommands, but somehow it just sends impulse 1 etc. instead of impulse 97 and then impulse 1.

        This is driving me up the wall.

        I am testing with a dedicated server on the same machine. I tried setting up a server on my other machine, but I ran into NET_GetMessage failed. Yes, I know what that means, but can I be arsed to fuck with my Linux firewall right now?

        Argh. I'll cut it for now. This is so frustrating. :-(
        Vote-map is the icing on the cake for a completed mod.

        And remember, it is the icing. Not the cake. And icing comes last and pales in importance to the cake.
        Quakeone.com - Being exactly one-half good and one-half evil has advantages. When a portal opens to the antimatter universe, my opposite is just me with a goatee.

        So while you guys all have to fight your anti-matter counterparts, me and my evil twin will be drinking a beer laughing at you guys ...

        Comment

        Working...
        X