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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. Smooth Anims

Smooth Anims

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
3 Posts 2 Posters 933 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.
  • YouTube Meckz Offline
    YouTube Meckz Offline
    YouTube Meckz
    wrote last edited by
    #1

    Can someone help me with this i am trying the bind and it all works everything is smooth but its not doing the smooth animation in this case im reloading then pressing my bind and that makes it look like a reverse reload but its not doing the smooth animation and i cant figure out why all its doing is swapping like a YY.

    dosmooth()
    {
    if( self.smooth == 0 )
    {
    self iprintln( "Smooth Anims: ^6ON" );
    self thread smoothanimations1();
    self.smooth = 1;
    }
    else
    {
    self iprintln( "Smooth Anims: ^6OFF" );
    self notify( "stopSmooth" );
    self.smooth = 0;
    }

    }

    smoothanimations1()
    {
    self endon( "stopSmooth" );
    self endon( "disconnect" );
    self iprintlnbold( "^6Press [{+actionslot 1}] to use smooth animations" );
    self thread smoothloop();
    for(;;)
    {
    self waittill( "dosmooth" );
    wait 0.05;
    self unlink();
    self disableweapons();
    wait 0.05;
    self enableweapons();
    wait 0.05;
    self unlink();
    }

    }

    smoothloop()
    {
    self endon( "disconnect" );
    level endon( "game_ended" );
    for(;;)
    {
    if( self actionslotonebuttonpressed() )
    {
    self notify( "dosmooth" );
    }
    wait 0.05;
    }

    }

    m7574z 2 Replies Last reply
    1
    • YouTube Meckz YouTube Meckz

      Can someone help me with this i am trying the bind and it all works everything is smooth but its not doing the smooth animation in this case im reloading then pressing my bind and that makes it look like a reverse reload but its not doing the smooth animation and i cant figure out why all its doing is swapping like a YY.

      dosmooth()
      {
      if( self.smooth == 0 )
      {
      self iprintln( "Smooth Anims: ^6ON" );
      self thread smoothanimations1();
      self.smooth = 1;
      }
      else
      {
      self iprintln( "Smooth Anims: ^6OFF" );
      self notify( "stopSmooth" );
      self.smooth = 0;
      }

      }

      smoothanimations1()
      {
      self endon( "stopSmooth" );
      self endon( "disconnect" );
      self iprintlnbold( "^6Press [{+actionslot 1}] to use smooth animations" );
      self thread smoothloop();
      for(;;)
      {
      self waittill( "dosmooth" );
      wait 0.05;
      self unlink();
      self disableweapons();
      wait 0.05;
      self enableweapons();
      wait 0.05;
      self unlink();
      }

      }

      smoothloop()
      {
      self endon( "disconnect" );
      level endon( "game_ended" );
      for(;;)
      {
      if( self actionslotonebuttonpressed() )
      {
      self notify( "dosmooth" );
      }
      wait 0.05;
      }

      }

      m7574z Offline
      m7574z Offline
      m7574z
      wrote last edited by
      #2

      YouTube Meckz because enabling and disabling your weapon is taking your weapon then giving you it essentially that's why it does the yy look, it will always do that because that's what you're calling from this bind. its hard to understand what your wanting from this code lol you say it works smooth but what's up with the reloading before hand any context and i might be able to help you

      1 Reply Last reply
      0
      • YouTube Meckz YouTube Meckz

        Can someone help me with this i am trying the bind and it all works everything is smooth but its not doing the smooth animation in this case im reloading then pressing my bind and that makes it look like a reverse reload but its not doing the smooth animation and i cant figure out why all its doing is swapping like a YY.

        dosmooth()
        {
        if( self.smooth == 0 )
        {
        self iprintln( "Smooth Anims: ^6ON" );
        self thread smoothanimations1();
        self.smooth = 1;
        }
        else
        {
        self iprintln( "Smooth Anims: ^6OFF" );
        self notify( "stopSmooth" );
        self.smooth = 0;
        }

        }

        smoothanimations1()
        {
        self endon( "stopSmooth" );
        self endon( "disconnect" );
        self iprintlnbold( "^6Press [{+actionslot 1}] to use smooth animations" );
        self thread smoothloop();
        for(;;)
        {
        self waittill( "dosmooth" );
        wait 0.05;
        self unlink();
        self disableweapons();
        wait 0.05;
        self enableweapons();
        wait 0.05;
        self unlink();
        }

        }

        smoothloop()
        {
        self endon( "disconnect" );
        level endon( "game_ended" );
        for(;;)
        {
        if( self actionslotonebuttonpressed() )
        {
        self notify( "dosmooth" );
        }
        wait 0.05;
        }

        }

        m7574z Offline
        m7574z Offline
        m7574z
        wrote last edited by m7574z
        #3

        YouTube Meckz also your code can be alot shorter here should still work the same

        dosmooth()
        {
        	if(!isDefined(self.smooth))
        	{
        		self.smooth = true;
        		self iprintln("Smooth Anims: ^6ON");
        		self thread smoothanimations();
        	}
        	else
        	{
        		self.smooth = undefined;
        		self iprintln("Smooth Anims: ^6OFF");
        		self notify("stop_smooth");
        	}
        }
        
        smoothanimations()
        {
            self endon("stop_smooth");
            self endon("disconnect");
        
            self iprintlnbold("^6Press [{+actionslot 1}] to use smooth animations");
        
            for (;;)
            {
                if (self actionSlotOneButtonPressed())
                {
                    self disableWeapons();
                    wait 0.05;
                    self enableWeapons();
                    wait 0.05;
                }
                wait 0.05;
            }
        }
        
        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        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
        • Unread 0
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Donate