SHARE
TWEET

Untitled

skroton Apr 30th, 2014 199 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ACTOR CrossbowBoltBlue : FastProjectile //The second crossbow voxel voxelbro made; to edit the scale look in voxeldef
  2. {
  3.    Radius 3
  4.    Height 6
  5.    Speed 120
  6.    Damage 1
  7.    DamageType "Bolt"
  8.    PROJECTILE
  9.    +BLOODSPLATTER
  10.    +SEEKERMISSILE
  11.    //+FORCEXYBILLBOARD
  12.    +FORCEPAIN
  13.    
  14.    var int user_angle;
  15.    var int user_tracerangle;
  16.    var int user_height;
  17.    var int user_theta;
  18.    
  19.    States
  20.    {
  21.    Spawn:
  22.       ARWQ A 1
  23.       Loop
  24.    Death:
  25.       ARWQ A 1 A_JumpIfInventory("ShockCanDie",1,"XDeath2")
  26.           ARWQ A 1 //A_Playsound Sound for hitting walls and shit goes here
  27.           ARWQ A 1 A_ChangeFlag("NOINTERACTION",1)
  28.       Goto Death2
  29.    Death2:
  30.       ARWQ A 1
  31.       Loop
  32.    Xdeath:
  33.          
  34.           TNT1 A 0 A_ChangeFlag("NOCLIP",1)
  35.           TNT1 A 0 A_ChangeFlag("THRUACTORS",1)
  36.          
  37.           //TNT1 A 0 A_SetUserVar("user_angle",angle)
  38.           TNT1 A 0 A_SetUserVar("user_height",(z-floorz))
  39.          
  40.           TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,2)
  41.           //TNT1 A 0 A_SeekerMissile(0,0,SMF_LOOK,256,2)
  42.           //ARWQ A 1 A_SeekerMissile(0,0,SMF_LOOK,256,2)
  43.  
  44.           //ARWQ A 1 ACS_ExecuteAlways(865)
  45.          
  46.           TNT1 A 1 ACS_ExecuteAlways(866)
  47.          
  48.           //TNT1 A 0 A_SetUserVar("user_tracerangle",angle)
  49.          
  50.           TNT1 A 1
  51.          
  52.           TNT1 A 1 A_GiveInventory("ShockCanDie", 1)
  53.        
  54.           //TNT1 A 0 A_SetUserVar("user_angle",angle)
  55.          
  56.          
  57.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  58.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  59.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  60.          
  61.          
  62.          
  63.          
  64.          
  65.           Goto XDeath2
  66.          
  67.          
  68.    XDeath2:
  69.       ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,user_height,user_angle,WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  70.       Loop
  71.  
  72.    }
  73. }
  74.  
  75. ACTOR CrossbowBoltBlue2 : FastProjectile //The second crossbow voxel voxelbro made; to edit the scale look in voxeldef
  76. {
  77.    Radius 4
  78.    Height 1
  79.    Speed 120
  80.    Damage 1
  81.    DamageType "Bolt"
  82.    PROJECTILE
  83.    +BLOODSPLATTER
  84.    +SEEKERMISSILE
  85.  
  86.    +FORCEPAIN
  87.    +NOEXTREMEDEATH
  88.    +FORCERADIUSDMG
  89.    
  90.    
  91.    var int user_angle;
  92.    var int user_tracerangle;
  93.    var int user_height;
  94.    var int user_warpangle;
  95.    
  96.    States
  97.    {
  98.    Spawn:
  99.       ARWQ A 0
  100.           ARWQ A 0
  101.           ARWQ A 0
  102.           ARWQ A 0
  103.           ARWQ A 0 A_SetUserVar("user_angle",angle)
  104.           ARWQ A 0 A_SetUserVar("user_angle",angle)
  105.       Goto Spawn2
  106.    Spawn2:
  107.       ARWQ A 1
  108.       Loop
  109.    Death:
  110.       ARWQ A 0 A_JumpIfInventory("ShockCanDie",1,"XDeath2")
  111.           ARWQ A 1 //A_Playsound Sound for hitting walls and shit goes here
  112.           ARWQ A 1 A_ChangeFlag("NOINTERACTION",1)
  113.       Goto Death2
  114.    Death2:
  115.       ARWQ A 1
  116.       Loop
  117.    Xdeath:
  118.           ARWQ A 0 A_GiveInventory("ShockCanDie", 1)
  119.  
  120.       TNT1 A 0 A_ChangeFlag("NOCLIP",1)
  121.           TNT1 A 0 A_ChangeFlag("THRUACTORS",1)
  122.          
  123.           ARWQ A 0 A_SetUserVar("user_angle",angle)
  124.           TNT1 A 0 A_SetUserVar("user_height",(z-floorz))
  125.          
  126.           TNT1 A 0 A_SeekerMissile(0,0,SMF_LOOK,256,2)
  127.           TNT1 A 1 A_GiveInventory("ShockCanDie", 1)
  128.  
  129.           //TNT1 A 0 A_SeekerMissile(0,0,SMF_LOOK,256,2)
  130.           //ARWQ A 1 A_SeekerMissile(0,0,SMF_LOOK,256,2)
  131.  
  132.           //TNT1 A 1 ACS_ExecuteAlways(865)
  133.          
  134.           TNT1 A 1 ACS_NamedExecuteAlways("865Unused")
  135.          
  136.           TNT1 A 3
  137.        
  138.           TNT1 A 1 A_SetUserVar("user_tracerangle",angle)
  139.          
  140.           TNT1 A 1 A_JumpIf(user_tracerangle>user_angle,"XDeathA")
  141.          
  142.           //ARWQ A 1 A_GiveInventory("ShockCanDie", 1)
  143.        
  144.           TNT1 A 1 A_SetUserVar("user_warpangle",(user_angle-user_tracerangle+Random(-3,3)))
  145.          
  146.           //ARWQ A 0 A_SpawnItemEx("CrossbowBoltBlue3",0,0,0,0,0,0,user_warpangle,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS|SXF_ABSOLUTEANGLE)
  147.          
  148.           //Stop
  149.           //skdfhlsdjf:
  150.          
  151.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  152.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  153.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  154.          
  155.           //ARWQ A 0 A_SpawnItemEx("CrossbowBoltExplode",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
  156.           ARWQ A 0 A_RearrangePointers (AAPTR_TRACER,AAPTR_DEFAULT,AAPTR_DEFAULT)
  157.           ARWQ A 0 A_JumpIfInTargetLOS("XDeath2",0,JLOSF_NOSIGHT|JLOSF_DEADNOJUMP) //A_JumpIfInTargetLOS("XDeath2",0,JLOSF_NOSIGHT|JLOSF_DEADNOJUMP)
  158.           Stop
  159.           //Goto XDeath2
  160.          
  161.    XdeathA:
  162.           TNT1 A 1 A_SetUserVar("user_warpangle",(360-(user_tracerangle-user_angle+Random(-3,3))))
  163.          
  164.           //ARWQ A 0 A_SpawnItemEx("CrossbowBoltBlue3",0,0,0,0,0,0,user_warpangle,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS|SXF_ABSOLUTEANGLE)
  165.          
  166.           //Stop
  167.           //skdfhlsdjf:
  168.          
  169.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  170.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  171.           //TNT1 A 1 A_SeekerMissile(0,0,SMF_LOOK,256,1)
  172.          
  173.           //ARWQ A 0 A_SpawnItemEx("CrossbowBoltExplode",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
  174.           ARWQ A 0 A_RearrangePointers (AAPTR_TRACER,AAPTR_DEFAULT,AAPTR_DEFAULT)
  175.           ARWQ A 0 A_JumpIfInTargetLOS("XDeath2",0,JLOSF_NOSIGHT|JLOSF_DEADNOJUMP) //A_JumpIfInTargetLOS("XDeath2",0,JLOSF_NOSIGHT|JLOSF_DEADNOJUMP)
  176.           Stop
  177.           //Goto XDeath2
  178.          
  179.    XDeath2:
  180.       //TNT1 A 0 A_ChangeFlag("NOEXTREMEDEATH",0)
  181.           TNT1 A 0 A_ChangeFlag("NODAMAGETHRUST",1)
  182.       ARWQ A 0 A_RearrangePointers (AAPTR_TRACER,AAPTR_DEFAULT,AAPTR_DEFAULT)
  183.           //ARWQ A 0 A_SpawnItemEx("CrossbowBoltExplode",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
  184.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,user_height,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  185.           ARWQ A 0 A_JumpIfInTargetLOS("XDeath3",0,JLOSF_NOSIGHT|JLOSF_DEADNOJUMP)
  186.       Goto XDeath8
  187.    XDeath3:
  188.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,user_height,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  189.           ARWQ A 0 A_JumpIfInTargetLOS("XDeath3",0,JLOSF_NOSIGHT|JLOSF_DEADNOJUMP)
  190.       Goto XDeath8
  191.    XDeadddth30:
  192.       ARWQ A 0 A_ChangeFlag("NOGRAVITY",0)
  193.          
  194.           //ARWQ A 0 A_SpawnItemEx("CrossbowBoltBlue3",0,0,0,0,0,0,user_angle,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS|SXF_ABSOLUTEANGLE)
  195.           Stop
  196.  
  197.    XDeath80:
  198.           ARWQ A 1
  199.           Stop
  200.  
  201.  
  202.  
  203.    XDeath8:
  204.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*20,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  205.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*19,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  206.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*18,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  207.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*17,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  208.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*16,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  209.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*15,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  210.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*14,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  211.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*13,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  212.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*12,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  213.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*11,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  214.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*10,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  215.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*9,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  216.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*8,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  217.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*7,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  218.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*6,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  219.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*5,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  220.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*4,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  221.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*3,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  222.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*2,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  223.           //ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,(user_height/20)*1,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  224.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  225.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  226.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  227.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  228.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  229.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  230.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  231.           ARWQ A 1 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  232.           Goto XDeath9
  233.  
  234.    XDeath9:
  235.           ARWQ A 10 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  236.           Loop
  237.          
  238.    XDeath7:
  239.           ARWQ A 2 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  240.           ARWQ A 2 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  241.           ARWQ A 2 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  242.           ARWQ A 2 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  243.           ARWQ A 2 A_Warp(AAPTR_TRACER,0,0,0,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  244.           Goto XDeath4
  245.    XDeath6:
  246.           ARWQ A 0 A_SetUserVar("user_height",(z-floorz))
  247.           ARWQ A 0 A_Warp(AAPTR_TRACER,0,0,user_height,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  248.           ARWQ A 2
  249.           ARWQ A 0 A_SetUserVar("user_height",(z-floorz))
  250.           ARWQ A 0 A_Warp(AAPTR_TRACER,0,0,user_height,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  251.           ARWQ A 2
  252.           ARWQ A 0 A_SetUserVar("user_height",(z-floorz))
  253.           ARWQ A 0 A_Warp(AAPTR_TRACER,0,0,user_height,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  254.           ARWQ A 2
  255.           ARWQ A 0 A_SetUserVar("user_height",(z-floorz))
  256.           ARWQ A 0 A_Warp(AAPTR_TRACER,0,0,user_height,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  257.           ARWQ A 2
  258.           ARWQ A 0 A_SetUserVar("user_height",(z-floorz))
  259.           ARWQ A 0 A_Warp(AAPTR_TRACER,0,0,user_height,(user_warpangle),WARPF_NOCHECKPOSITION|WARPF_INTERPOLATE)
  260.       Goto XDeath4
  261.    XDeath4:
  262.       ARWQ A 1
  263.       Loop
  264.    }
  265. }
  266.  
  267. script 865(void)
  268. {
  269.         int e257zsTracerAngle = 0;
  270.         //int e257zsTracerOldTID = GetActorProperty(0,APROP_TracerTID);
  271.  
  272.         //e257zsTracerNewTID =(e257zsTracerNewTID+Random(1,5));
  273.        
  274.         //if (IsTIDUsed(e257zsTracerNewTID)  == 0)
  275.         //{
  276.                 //SetActorProperty(0,APROP_TracerTID,e257zsTracerNewTID);
  277.                
  278.                 SetActivator(0,AAPTR_TRACER);
  279.                
  280.                 e257zsTracerAngle = GetActorAngle(0);
  281.                
  282.                 SetActivator(0,AAPTR_DEFAULT);
  283.                
  284.                 SetActorAngle (0,e257zsTracerAngle);
  285.                 //SetActorProperty(0,APROP_TracerTID,e257zsTracerOldTID);
  286.                 Terminate;
  287.         //}
  288.         //else
  289.         //{
  290.                 //Restart;
  291.         //}
  292. }
  293.  
  294. script "865Unused" (void)
  295. {
  296.         int e257zsTracerAngle = 0;
  297.         int e257zsTracerOldTID = GetActorProperty(0,APROP_TracerTID);
  298.  
  299.         e257zsTracerNewTID =(e257zsTracerNewTID+Random(1,5));
  300.        
  301.         //if (IsTIDUsed(e257zsTracerNewTID)  == 0)
  302.         //{
  303.                 SetActorProperty(0,APROP_TracerTID,e257zsTracerNewTID);
  304.                 e257zsTracerAngle = GetActorAngle(e257zsTracerNewTID);
  305.                 SetActorAngle (0,e257zsTracerAngle);
  306.                 //SetActorProperty(0,APROP_TracerTID,e257zsTracerOldTID);
  307.                 SetActorProperty(0,APROP_TracerTID,Random(90,400));
  308.                 Terminate;
  309.         //}
  310.         //else
  311.         //{
  312.                 //Restart;
  313.         //}
  314. }
  315.  
  316. script 866 (void)
  317. {
  318.        
  319.         //int e257zsTracerAngle = 0;
  320.        
  321.         //e257zsAngle = 0;
  322.        
  323.  
  324.         //e257zsTracerNewTID =(e257zsTracerNewTID+Random(1,5));
  325.        
  326.         //if (IsTIDUsed(e257zsTracerNewTID)  == 0)
  327.         //{
  328.                 //int e257zsTracerOldTID = GetActorProperty(0,APROP_TracerTID);
  329.                 //int e257zsActivatorAngle = GetActorAngle(0);
  330.                 //setActorProperty(0,APROP_TracerTID,e257zsTracerNewTID);
  331.                
  332.                 int e257zsActivatorAngle = GetActorAngle(0);
  333.                
  334.                 SetActivator(0,AAPTR_TRACER);
  335.                
  336.                 int e257zsTracerAngle = GetActorAngle(0);
  337.                
  338.                 SetActivator(0,AAPTR_DEFAULT);
  339.                
  340.  
  341.                 int e257zsAngle = (e257zsActivatorAngle-e257zsTracerAngle);
  342.                 //SetActorAngle(0,e257zsAngle);
  343.                 //SetActorProperty(0,APROP_TracerTID,e257zsTracerOldTID);
  344.                
  345.                 int e257zsWarpAngle = ((e257zsAngle*360)/65536);
  346.                
  347.                 //(X * 360) / 65536
  348.                
  349.                 SetUserVariable(0,"user_warpangle",e257zsWarpAngle);
  350.                
  351.                 Terminate;
  352.        
  353.         if (e257zsWarpAngle > 180)
  354.         {
  355.                         SetUserVariable(0,"user_warpangle",e257zsWarpAngle);
  356.                
  357.                 Terminate;
  358.        
  359.         }
  360.         else if (e257zsWarpAngle < -180)
  361.         {
  362.                         SetUserVariable(0,"user_warpangle",e257zsWarpAngle);
  363.                
  364.                 Terminate;
  365.        
  366.         }
  367.         else
  368.         {
  369.                 SetUserVariable(0,"user_warpangle",e257zsWarpAngle);
  370.                
  371.                 Terminate;
  372.        
  373.         }
  374.        
  375.        
  376.        
  377.         //}
  378.         //else
  379.         //{
  380.                 //Restart;
  381.         //}
  382. }
  383.  
  384. script "866Unused" (void)
  385. {
  386.        
  387.         //int e257zsTracerAngle = 0;
  388.        
  389.         //int e257zsAngle = 0;
  390.        
  391.  
  392.         e257zsTracerNewTID =(e257zsTracerNewTID+Random(1,5));
  393.        
  394.         //if (IsTIDUsed(e257zsTracerNewTID)  == 0)
  395.         //{
  396.                 int e257zsTracerOldTID = GetActorProperty(0,APROP_TracerTID);
  397.                 int e257zsActivatorAngle = GetActorAngle(0);
  398.                 SetActorProperty(0,APROP_TracerTID,e257zsTracerNewTID);
  399.                 //e257zsActivatorAngle = GetActorAngle(0);
  400.                 int e257zsTracerAngle = GetActorAngle(e257zsTracerNewTID);
  401.                 int e257zsAngle = (e257zsActivatorAngle-e257zsTracerAngle);
  402.                 SetActorAngle(0,e257zsAngle);
  403.                 SetActorProperty(0,APROP_TracerTID,e257zsTracerOldTID);
  404.                
  405.                 int e257zsWarpAngle = ((e257zsAngle*360)/65536);
  406.                
  407.                 //(X * 360) / 65536
  408.                
  409.                 SetUserVariable(0,"user_warpangle",e257zsWarpAngle);
  410.                
  411.                 Terminate;
  412.        
  413.         if (e257zsWarpAngle > 180)
  414.         {
  415.                         SetUserVariable(0,"user_warpangle",e257zsWarpAngle);
  416.                
  417.                 Terminate;
  418.        
  419.         }
  420.         else if (e257zsWarpAngle < -180)
  421.         {
  422.                         SetUserVariable(0,"user_warpangle",e257zsWarpAngle);
  423.                
  424.                 Terminate;
  425.        
  426.         }
  427.         else
  428.         {
  429.                 SetUserVariable(0,"user_warpangle",e257zsWarpAngle);
  430.                
  431.                 Terminate;
  432.        
  433.         }
  434.        
  435.        
  436.        
  437.         //}
  438.         //else
  439.         //{
  440.                 //Restart;
  441.         //}
  442. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top