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

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. gun roate script IW5

gun roate script IW5

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
10 Posts 5 Posters 369 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.
  • SimplyCodyundefined Offline
    SimplyCodyundefined Offline
    SimplyCody
    Contributor
    wrote on last edited by
    #1

    Hello I am trying to make a gun rotate script for infected and I am having trouble with having it count down and switching weapons this is what I have done so far #include maps\mp\gametypes_hud_util;

    init()
    {
    level thread onPlayerConnect();
    level thread doInfo();
    wait 1.0;
    }

    onPlayerConnect()
    {
    for(;;)
    {
    level waittill( "connnected", player );
    player thread onPlayerSpawned();
    }

    }

    onPlayerSpawned()
    {
    self endon("disconnect");
    for(;;)
    {
    self waittill("spawned_player");
    }
    }

    doinfo()
    {
    self endon("disconnect");
    displayText = self createServerFontString( "objective", 0.8 );
    i = 0;
    for( ;; )
    {
    if(i == -1300)
    {
    i = 1300;
    }

                displayText setPoint( "TOPLEFT", "TOPELEFT", 6, 106);
                displayText setText("Roating Gun 30 Seconds");
                wait .03;
                i--;
        }
    

    }

    Resxtundefined Kalitosundefined 2 Replies Last reply
    0
    • Clippyundefined Offline
      Clippyundefined Offline
      Clippy
      wrote on last edited by
      #2

      what does roate mean?

      1 Reply Last reply
      0
      • SimplyCodyundefined Offline
        SimplyCodyundefined Offline
        SimplyCody
        Contributor
        wrote on last edited by
        #3

        Sorry I meant Rotate

        1 Reply Last reply
        0
        • SimplyCodyundefined SimplyCody

          Hello I am trying to make a gun rotate script for infected and I am having trouble with having it count down and switching weapons this is what I have done so far #include maps\mp\gametypes_hud_util;

          init()
          {
          level thread onPlayerConnect();
          level thread doInfo();
          wait 1.0;
          }

          onPlayerConnect()
          {
          for(;;)
          {
          level waittill( "connnected", player );
          player thread onPlayerSpawned();
          }

          }

          onPlayerSpawned()
          {
          self endon("disconnect");
          for(;;)
          {
          self waittill("spawned_player");
          }
          }

          doinfo()
          {
          self endon("disconnect");
          displayText = self createServerFontString( "objective", 0.8 );
          i = 0;
          for( ;; )
          {
          if(i == -1300)
          {
          i = 1300;
          }

                      displayText setPoint( "TOPLEFT", "TOPELEFT", 6, 106);
                      displayText setText("Roating Gun 30 Seconds");
                      wait .03;
                      i--;
              }
          

          }

          Resxtundefined Online
          Resxtundefined Online
          Resxt
          Plutonium Staff
          wrote on last edited by
          #4

          avatar kora I don't have time to take a look at it right now but this could help you switching weapons
          https://github.com/Resxt/Plutonium-IW5-Scripts/tree/main/replace_weapon_on_spawn

          SimplyCodyundefined 1 Reply Last reply
          0
          • SimplyCodyundefined Offline
            SimplyCodyundefined Offline
            SimplyCody
            Contributor
            wrote on last edited by
            #5

            ok thanks

            1 Reply Last reply
            0
            • Resxtundefined Resxt

              avatar kora I don't have time to take a look at it right now but this could help you switching weapons
              https://github.com/Resxt/Plutonium-IW5-Scripts/tree/main/replace_weapon_on_spawn

              SimplyCodyundefined Offline
              SimplyCodyundefined Offline
              SimplyCody
              Contributor
              wrote on last edited by
              #6

              Resxt Is it lua or gsc?

              1 Reply Last reply
              0
              • coder x64undefined Offline
                coder x64undefined Offline
                coder x64
                Contributor
                wrote on last edited by
                #7

                Its GSC

                1 Reply Last reply
                0
                • SimplyCodyundefined Offline
                  SimplyCodyundefined Offline
                  SimplyCody
                  Contributor
                  wrote on last edited by
                  #8

                  Oh ok some of the funtions didnt work

                  1 Reply Last reply
                  0
                  • SimplyCodyundefined SimplyCody

                    Hello I am trying to make a gun rotate script for infected and I am having trouble with having it count down and switching weapons this is what I have done so far #include maps\mp\gametypes_hud_util;

                    init()
                    {
                    level thread onPlayerConnect();
                    level thread doInfo();
                    wait 1.0;
                    }

                    onPlayerConnect()
                    {
                    for(;;)
                    {
                    level waittill( "connnected", player );
                    player thread onPlayerSpawned();
                    }

                    }

                    onPlayerSpawned()
                    {
                    self endon("disconnect");
                    for(;;)
                    {
                    self waittill("spawned_player");
                    }
                    }

                    doinfo()
                    {
                    self endon("disconnect");
                    displayText = self createServerFontString( "objective", 0.8 );
                    i = 0;
                    for( ;; )
                    {
                    if(i == -1300)
                    {
                    i = 1300;
                    }

                                displayText setPoint( "TOPLEFT", "TOPELEFT", 6, 106);
                                displayText setText("Roating Gun 30 Seconds");
                                wait .03;
                                i--;
                        }
                    

                    }

                    Kalitosundefined Offline
                    Kalitosundefined Offline
                    Kalitos
                    wrote on last edited by
                    #9

                    avatar kora Take a look at my version of the mod.
                    https://github.com/Chenterito/gunrotationiw5

                    SimplyCodyundefined 1 Reply Last reply
                    0
                    • Kalitosundefined Kalitos

                      avatar kora Take a look at my version of the mod.
                      https://github.com/Chenterito/gunrotationiw5

                      SimplyCodyundefined Offline
                      SimplyCodyundefined Offline
                      SimplyCody
                      Contributor
                      wrote on last edited by
                      #10

                      Kalitos Thanks you were helping me in discord

                      1 Reply Last reply
                      1
                      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