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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. need help with script

need help with script

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
7 Posts 3 Posters 112 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Angry Catundefined Offline
    Angry Catundefined Offline
    Angry Cat
    wrote on last edited by
    #1

    im trying to make jetgun never overheat

    1 Reply Last reply
    0
    • chicken emojiundefined Offline
      chicken emojiundefined Offline
      chicken emoji
      wrote on last edited by
      #2

      The never_overheat function is from the source code and it basically sets the overheat of the weapon to 0 every 0.05 seconds so it wont overheat when you fire the weapon

      init()
      {
      	level onplayerconnect();
      }
      
      onplayerconnect()
      {
      	for(;;)
      	{
      		level waittill( "connecting", player );
      		player thread never_overheat();
      	}
      }
      
      never_overheat()
      {
      	self endon( "disconnect" );
      	while ( 1 )
      	{
      		if ( self getcurrentweapon() == "jetgun_zm" )
      		{
      			self setweaponoverheating( 0, 0 );
      		}
      		wait 0.05;
      	}
      }
      
      1 Reply Last reply
      0
      • Angry Catundefined Offline
        Angry Catundefined Offline
        Angry Cat
        wrote on last edited by
        #3

        thx bro

        1 Reply Last reply
        0
        • GhostRider0125undefined Offline
          GhostRider0125undefined Offline
          GhostRider0125
          wrote on last edited by
          #4

          so does it mean that it wont break or will it be usable with no limit cuz thats too op 😅

          Angry Catundefined 1 Reply Last reply
          0
          • Angry Catundefined Offline
            Angry Catundefined Offline
            Angry Cat
            replied to GhostRider0125 on last edited by
            #5

            GhostRider0125 i think it means it wont break, I will try and make it more balanced when I release my tranzit pack

            1 Reply Last reply
            1
            • GhostRider0125undefined Offline
              GhostRider0125undefined Offline
              GhostRider0125
              wrote on last edited by
              #6

              sick😁

              Angry Catundefined 1 Reply Last reply
              0
              • Angry Catundefined Offline
                Angry Catundefined Offline
                Angry Cat
                replied to GhostRider0125 on last edited by
                #7

                GhostRider0125 i meant to put if i release my tranzit mod because i dont really have the time lol

                1 Reply Last reply
                1

                • Login

                • Don't have an account? Register

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