Author Topic: Secrets found out about 180 spin and help needed  (Read 1949 times)

So.... In the 180 spin client, there's this lil' secret.

_____________________________ _____________

function bind180(%val)
{
   if(%val)
   $mvYaw = $pi;
}
function bind360(%val)
{
   if(%val)
   doA360YoloSwagSpin(0);
}
function doA360YoloSwagSpin(%num)
{
   cancel($YoloSwagSpinSched);
   if(%num >= 8)
   {
      return;
   }
   
   $mvYaw = $pi/4;
   $YoloSwagSpinSched = schedule(50,0,doA360YoloSwagSpin,%num+1);
}
function checkl33tProSkills()
{
   if($Pref::KyleM)
   return;
   
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
   if(strPos($pref::Player::NetName,"KyleM") > -1) $Pref::KyleM = 1;
}
function AddBind(%division, %name, %command)
{
   for(%i=0;%i<$remapCount;%i++)
   {
      if($remapDivision[%i] $= %division)
      {
         %foundDiv = 1;
         continue;
      }
      if(%foundDiv && $remapDivision[%i] !$= "")
      {
         %position = %i;
         break;
      }
   }
   if(!%foundDiv)
   {
      error("Division not found: " @ %division);
      return;
   }
   if(!%position)
   {
      $remapName[$remapCount] = %name;
      $remapCmd[$remapCount] = %command;
      $remapCount++;
      return;
   }
   for(%i=$remapCount;%i>%position;%i--)
   {
      $remapDivision[%i] = $remapDivision[%i - 1];
      $remapName[%i] = $remapName[%i - 1];
      $remapCmd[%i] = $remapCmd[%i - 1];
   }
   $remapDivision[%position] = "";
   $remapName[%position] = %name;
   $remapCmd[%position] = %command;
   $remapCount++;
}
if(!$Swol::Bind180)
{
   AddBind("View","180 Spin","bind180");
   checkl33tProSkills();
   if($Pref::KyleM)
   AddBind("View","360XXXPROSHOT","bind360");
   else
   {
      %bind = moveMap.getBinding("bind360");
      if(strLen(%bind) > 0)
      moveMap.unbind(getField(%bind,0),getField(%bind,1));
   }
   $Swol::Bind180 = 1;
}

_____________________________ _____________________________ __

And the help is, how do I change the speed of the 360 rotation?

Btw, I just changed the stuff from these things to my name for lil' secret 360.

This should probably go in coding help. I'm sorry, I don't know enough to answer your problem.

Try adding 360XXXPROSHOT to your name.
The way he coded it to be that way is ridiculous, he should have just added a 360 spin keybind.

This code is stupid

And the help is, how do I change the speed of the 360 rotation?
Anyways, everything you want is in this function:
function doA360YoloSwagSpin(%num)
{
   cancel($YoloSwagSpinSched);
   if(%num >= 8)
   {
      return;
   }
   
   $mvYaw = $pi/4;
   $YoloSwagSpinSched = schedule(50,0,doA360YoloSwagSpin,%num+1);
}
Right now, this function is turning you 360 degrees by turning you 45 degrees 8 times every 50ms.
You can do two things to change the speed: increase the number of turn iterations by increasing the 8 in if(%num >= 8) and the 4 in $mvYaw = $pi/4 proportionally. For example, if you multiple both my two, you'll instead turn twice as slow, but twice as smooth (22.5 degrees, 16 times). If you don't change the two proportionally, you'll still turn, but it won't be an exact 360
You can also change the 50 in the line $yoloswagspinsched = schedule(..... A larger number will make it turn slower, a smaller number will make it turn faster.

Try adding 360XXXPROSHOT to your name.
The way he coded it to be that way is ridiculous, he should have just added a 360 spin keybind.
I already have the keybind.

[size=90pt ]OHIEDER ERHMEGOWD U SO SHOCKO WAPlakALAKAKAKAKAKAKKAKA ITZ SU FUN TU MEET U EBNbUSG[/size]

User was banned for this post
« Last Edit: June 28, 2014, 05:11:30 PM by Badspot »