Smooth Anims
-
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;
}}
-
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;
}}
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
-
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;
}}
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; } }
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