Guest User

FOV config

a guest
Nov 18th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.23 KB | None | 0 0
  1. $${
  2.    
  3.     if(%@#fov_setup% == 0);
  4.     {
  5.         @#fov_setup = 70;
  6.     }
  7.     endif;
  8.    
  9.     if(litho_fov_config);
  10.     {
  11.         unset(litho_fov_config);
  12.     }
  13.     else;
  14.     {
  15.         set(litho_fov_config);
  16.         unset(fov_button_config_press);
  17.         unset(fov_config);
  18.         unset(&b1);
  19.         unset(&b2);
  20.         set(&b1_cor,"c");
  21.         set(&b2_cor,"a");
  22.         unsafe();
  23.         {
  24.             do();
  25.             {
  26.                 setlabel(litho_fov_status,"\n\n%&b1% &eFOV: &r%@#fov_setup% %&b2%\n\n %&fov_tuto%");
  27.                 fov(%@#fov_setup%);
  28.                    
  29.                     if(fov_config);
  30.                     {
  31.                         set(&b1,"&%&b1_cor%[-]");
  32.                         set(&b2,"&%&b2_cor%[+]");
  33.                        
  34.                         if(KEY_ADD);
  35.                         {
  36.                             if(%@#fov_setup% < 155);
  37.                             {
  38.                                 inc(@#fov_setup);
  39.                                 set(&b2_cor,"2");
  40.                                 if(flood);
  41.                                 {
  42.                                     unset(flood);
  43.                                 }
  44.                                 endif;
  45.                             }
  46.                             else;
  47.                             {
  48.                                 if(!flood);
  49.                                 {
  50.                                     log("&4Já está no máximo permitido!");
  51.                                     set(flood);
  52.                                 }
  53.                                 endif;
  54.                             }
  55.                             endif;
  56.                         }
  57.                         else;
  58.                         {
  59.                             set(&b2_cor,"&a");
  60.                         }
  61.                         endif;
  62.                        
  63.                         if(KEY_SUBTRACT);
  64.                         {
  65.                             if(%@#fov_setup% > 1);
  66.                             {
  67.                                 dec(@#fov_setup);
  68.                                 set(&b1_cor,"4");
  69.                                 if(flood);
  70.                                 {
  71.                                     unset(flood);
  72.                                 }
  73.                                 endif;
  74.                             }
  75.                             else;
  76.                             {
  77.                                 if(!flood);
  78.                                 {
  79.                                     log("&4Já está no mínimo permitido!");
  80.                                     set(flood);
  81.                                 }
  82.                                 endif;
  83.                             }
  84.                             endif;
  85.                         }
  86.                         else;
  87.                         {
  88.                             set(&b1_cor,"c");
  89.                         }
  90.                         endif;
  91.                        
  92.                         if(KEY_MULTIPLY);
  93.                         {
  94.                             set(@#fov_setup,70);
  95.                             set(&b1_cor,"4");
  96.                             set(&b2_cor,"2");
  97.                         }
  98.                         endif;
  99.                        
  100.                         if(KEY_DIVIDE);
  101.                         {
  102.                             do();
  103.                             {
  104.                                 prompt(#fov_p,$$?,"Coloque entre os parametros o FOV desejado");
  105.                                 if((%#fov_p% > 155) || (%#fov_p% < 1));
  106.                                 {
  107.                                     log("&4A quantia quebra os limites");
  108.                                 }
  109.                                 elseif(%#fov_p% == %@#fov_setup%);
  110.                                 {
  111.                                     break;
  112.                                 }
  113.                                 else;
  114.                                 {
  115.                                     @#fov_setup = %#fov_p%;
  116.                                     log("&eFOV alterado para &6%@#fov_setup%&e.");
  117.                                     break;
  118.                                 }
  119.                                 endif;
  120.                             }
  121.                             loop;
  122.                         }
  123.                         endif;
  124.                        
  125.                         if(%@#fov_setup% >= 155);
  126.                         {
  127.                             set(&b2_cor,"7");
  128.                         }
  129.                         endif;
  130.                        
  131.                         if(%@#fov_setup% <= 1);
  132.                         {
  133.                             set(&b1_cor,"7");
  134.                         }
  135.                         endif;
  136.                        
  137.                     }
  138.                     else; {
  139.                         set(&b1,"&8[-]");
  140.                         set(&b2,"&8[+]");
  141.                     }
  142.                     endif;
  143.                    
  144.                    
  145.                    
  146.                     if((KEY_LCONTROL) && (KEY_F) && (KEY_RETURN));
  147.                     {
  148.                         if(!fov_button_config_press);
  149.                         {
  150.                             toggle(fov_config);
  151.                             if(fov_config);
  152.                             {
  153.                                 log("&aConfiguração &ahabilitada&a.");
  154.                             }
  155.                             else;
  156.                             {
  157.                                 log("&cConfiguração &cdesabilitada.");
  158.                             }
  159.                             endif;
  160.                             set(fov_button_config_press);
  161.                         }
  162.                         endif;
  163.                     else;
  164.                         if(fov_button_config_press){
  165.                             unset(fov_button_config_press);
  166.                         }
  167.                         endif;
  168.                     }
  169.                     endif;
  170.                    
  171.             }
  172.             while(litho_fov_config);
  173.         }
  174.         endunsafe;
  175.         setlabel(litho_fov_status,"&4FOV salvado");
  176.          wait(7T);
  177.         setlabel(litho_fov_status,);
  178.         stop;
  179.     }
  180.     endif;
  181.    
  182. }$$
Advertisement
Add Comment
Please, Sign In to add comment