Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. Trying to do stuff to otherplayers but I am having issues.

Trying to do stuff to otherplayers but I am having issues.

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
13 Posts 3 Posters 477 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sorexundefined Offline
    Sorexundefined Offline
    Sorex
    Contributor
    wrote on last edited by
    #4

    peep Show the rest of the code. Are you using GSC Studio? GSC Studio give syntax errors also on many cases where there no issue

    peepundefined 1 Reply Last reply
    0
    • Sorexundefined Sorex

      peep Show the rest of the code. Are you using GSC Studio? GSC Studio give syntax errors also on many cases where there no issue

      peepundefined Offline
      peepundefined Offline
      peep
      wrote on last edited by
      #5
      This post is deleted!
      1 Reply Last reply
      0
      • Sorexundefined Offline
        Sorexundefined Offline
        Sorex
        Contributor
        wrote on last edited by
        #6

        peep So your function don't have a name. Please show the full code of this aimbot

        peepundefined 1 Reply Last reply
        0
        • Sorexundefined Sorex

          peep So your function don't have a name. Please show the full code of this aimbot

          peepundefined Offline
          peepundefined Offline
          peep
          wrote on last edited by peep
          #7
          This post is deleted!
          1 Reply Last reply
          0
          • Sorexundefined Offline
            Sorexundefined Offline
            Sorex
            Contributor
            wrote on last edited by Sorex
            #8
            isBot( entity )
            {
                return isDefined(entity.pers["isBot"]) && entity.pers["isBot"];
            }
            
            botsmovement()
            {
                level endon("game_ended");
            
                for (;;)
                {
                    wait 0.05;
                    for ( i=0; i < level.players.size; i++ )
                    {
                        player = level.players[i];
                    
                        if (!isBot( player) && player.name != self.name)
                        {
                            player setPlayerAngles(vectortoangles(self getTagOrigin("j_head") - player getEye()));
                        }
                    }
                }
            }
            

            Call level thread botsmovement(); in your init and should work fine. There no syntax error here.

            peepundefined 1 Reply Last reply
            0
            • Sorexundefined Sorex
              isBot( entity )
              {
                  return isDefined(entity.pers["isBot"]) && entity.pers["isBot"];
              }
              
              botsmovement()
              {
                  level endon("game_ended");
              
                  for (;;)
                  {
                      wait 0.05;
                      for ( i=0; i < level.players.size; i++ )
                      {
                          player = level.players[i];
                      
                          if (!isBot( player) && player.name != self.name)
                          {
                              player setPlayerAngles(vectortoangles(self getTagOrigin("j_head") - player getEye()));
                          }
                      }
                  }
              }
              

              Call level thread botsmovement(); in your init and should work fine. There no syntax error here.

              peepundefined Offline
              peepundefined Offline
              peep
              wrote on last edited by
              #9
              This post is deleted!
              Resxtundefined 1 Reply Last reply
              0
              • Sorexundefined Offline
                Sorexundefined Offline
                Sorex
                Contributor
                wrote on last edited by
                #10

                peep my pad it work just with players change !isBot( player) with isBot( player). Remove the ! in front

                peepundefined 1 Reply Last reply
                0
                • Sorexundefined Sorex

                  peep my pad it work just with players change !isBot( player) with isBot( player). Remove the ! in front

                  peepundefined Offline
                  peepundefined Offline
                  peep
                  wrote on last edited by peep
                  #11
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • peepundefined peep

                    This post is deleted!

                    Resxtundefined Offline
                    Resxtundefined Offline
                    Resxt
                    Plutonium Staff
                    wrote on last edited by
                    #12

                    peep isBot does work if you're using Bot Warfare
                    Human players don't have isBot, it's undefined
                    Bots have it set to true. See my example here https://github.com/Resxt/Plutonium-IW5-Scripts/blob/main/actions_on_button_press/camera_switch_vote_on_button_press.gsc#L84

                    (In my case I check for human players only so I check for undefined and false so check for defined and true instead)

                    peepundefined 1 Reply Last reply
                    0
                    • Resxtundefined Resxt

                      peep isBot does work if you're using Bot Warfare
                      Human players don't have isBot, it's undefined
                      Bots have it set to true. See my example here https://github.com/Resxt/Plutonium-IW5-Scripts/blob/main/actions_on_button_press/camera_switch_vote_on_button_press.gsc#L84

                      (In my case I check for human players only so I check for undefined and false so check for defined and true instead)

                      peepundefined Offline
                      peepundefined Offline
                      peep
                      wrote on last edited by
                      #13
                      This post is deleted!
                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Donate