Announcement

Collapse
No announcement yet.

Adding Godmode to a Bot-Only Deathmatch

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

  • Adding Godmode to a Bot-Only Deathmatch

    Hi, I'm still (really) new to Quake C, and how to add functions in, well any of the code.

    My question is: How do you make god mode activate every time I type impulse 15 or whatever. What should it look like and should I put it in Clent.qc or what?

    I saw FL_GODMODE in defs.qc, but I also wanted it to work when I play against bots. (Seeing how you can't add the damn things in single player)
    Also, I'm ONLY using them against bots, as I only play quake on a psp, so it's not like I'm playing against Real People or anything.

    I've seen mods much like the Killer QCBot, where they type impulse 12 and it turns god mode ON. So whoever answers this question, could you be specific enough on how to accomplish this? Or if someone has a tutorial on how to add god mode in deathmatch, that would be great, too!

    Thanks,
    Jastolze

  • #2
    I can't help you sorry.
    -BUMP.
    ----------------------------------------
    NIXON'S BACK!!

    Comment


    • #3
      Heheheh.
      Want to get into playing Quake again? Click here for the Multiplayer-Startup kit! laissez bon temps rouler!

      Comment


      • #4
        Hello jastolze,

        Cheats are disabled in deathmatch mode.
        You have to enable them first via "sv_cheats 1".
        Then you can use the "god" cheat.

        Of course this only works on your own server.
        When you play offline on your own computer against bots in deathmatch mode.

        Have fun,
        Seven

        Comment


        • #5
          Originally posted by Seven View Post
          Hello jastolze,

          Cheats are disabled in deathmatch mode.
          You have to enable them first via "sv_cheats 1".
          Then you can use the "god" cheat.

          Of course this only works on your own server.
          When you play offline on your own computer against bots in deathmatch mode.

          Have fun,
          Seven
          If I have this correct, then sv_cheats is a quakeworld only command
          and I'm using a non-quakeworld clent. (glquake)
          I'm asking how to put it in source code, and what It should look like in qc format. Thanks for your help

          Comment


          • #6
            Originally posted by jastolze View Post
            If I have this correct, then sv_cheats is a quakeworld only command
            and I'm using a non-quakeworld clent. (glquake)
            I'm asking how to put it in source code, and what It should look like in qc format. Thanks for your help
            How did you get QW out of anything posted here?
            QW is a pimple on the ass of quake and I wish it would POP!!!!!
            WARNING
            May be too intense for some viewers.
            Stress Relief Device
            ....BANG HEAD HERE....
            ---------------------------
            .
            .
            .
            .
            .--------------------------

            Comment


            • #7
              Originally posted by bluntz View Post
              How did you get QW out of anything posted here?
              QW is a pimple on the ass of quake and I wish it would POP!!!!!
              because when I try sv_cheats in quake, then it says unknown command. But when I try it in quakeworld clients, it works, so I'm not sure why :/
              Edit: Okay, I tried this:

              void (entity player) AliasInit =
              {
              stuffcmd (player, "alias godon\"impulse 12\";\n");
              stuffcmd (player, "alias godoff\"impulse 13\";\n");
              };

              But I'm not sure if it's the right place to put it...
              Should I put it in client.qc, or what? Again, any help is appreciated!
              Last edited by jastolze; 11-08-2011, 08:20 AM.

              Comment


              • #8
                godmode is just a player.flags flag. The cheat command simply toggles it.
                Some Game Thing

                Comment


                • #9
                  Originally posted by Spike View Post
                  godmode is just a player.flags flag. The cheat command simply toggles it.
                  Yes, BUT when I type god in a deathmatch game, it says nothing, and doesn't do anything! I know it works in a SP game, but bots don't spawn in Single player...
                  Edit: Nevermind... The above code worked while compiling it and didn't return any errors.
                  Now to test in-game. (crosses fingers)
                  Edit2: YEAH!!! Got it to turn god mode on! I had to define what impulse 113 was, which in this case, I put (in weapons.qc)
                  if ((self.impulse == 113))
                  {
                  self.takedamage = DAMAGE_NO;
                  sprint (self, "God mode ON\n");
                  }
                  Last edited by jastolze; 11-08-2011, 09:48 AM.

                  Comment

                  Working...
                  X