SHARE
TWEET

Untitled

skroton May 6th, 2014 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. actor PoisonPellet
  2. {
  3.   Damage 2
  4.   Radius 4
  5.   Height 4
  6.   Speed 60
  7.   Projectile
  8.   Scale 0.3
  9.   Renderstyle "Normal"
  10.   BounceType "Hexen"
  11.   Mass 250
  12.   Gravity 0.3
  13.   BounceFactor 0.35
  14.   WallBounceFactor 0.35
  15.   Species "Player"
  16.   +THRUSPECIES
  17.   -NOGRAVITY
  18.   +NOTIMEFREEZE
  19.   +NODAMAGETHRUST
  20.   //+ALLOWBOUNCEONACTORS
  21.   +BOUNCEONACTORS
  22.   //+USEBOUNCESTATE
  23.   //BounceSound "none" //gotta add one
  24.   Alpha 1.0
  25.   Decal None
  26.   States
  27.   {
  28.   Spawn:
  29.         SPSN A 0
  30.         SPSN A 12
  31.         Goto StartGas
  32.   StartGas:
  33.         TNT1 A 0 A_ChangeVelocity(random(-2,5),random(-4,4),0,CVF_RELATIVE)
  34.         TNT1 A 0 A_GiveInventory("ShockArcDie",1)
  35.         SPSN B 0 A_PlaySound("Weapons/PoisonShell",0)
  36.         SPSN B 4 Bright //Light("PoisonShellLight")
  37.         Goto BounceDone
  38.   ActorBounce:
  39.         SPSN B 0 A_Jump(255,"ActorBounce1","ActorBounce2","ActorBounce3")
  40.         Goto ActorBounce1
  41.   ActorBounce1:
  42.         TNT1 A 0 A_ChangeVelocity(random(-2,2),random(-2,2),random(0,5),CVF_RELATIVE)
  43.         TNT1 A 0 A_JumpIfInventory("ShockArcDie",1,"BounceDone")
  44.         Goto StartGas
  45.   ActorBounce2:
  46.         TNT1 A 0 A_ChangeVelocity(random(-3,3),random(-3,3),random(0,6),CVF_RELATIVE)
  47.         TNT1 A 0 A_JumpIfInventory("ShockArcDie",1,"BounceDone")
  48.         Goto StartGas
  49.   ActorBounce3:
  50.         TNT1 A 0 A_ChangeVelocity(random(-4,4),random(-4,4),random(0,7),CVF_RELATIVE)
  51.         TNT1 A 0 A_JumpIfInventory("ShockArcDie",1,"BounceDone")
  52.         Goto StartGas
  53.   BounceDoneCheck:
  54.         TNT1 A 0 A_JumpIfInventory("ShockArcDie",1,"BounceDone")
  55.         Goto BounceDone
  56.   BounceDone:
  57.         SPSN CC 0 Bright A_SpawnItemEx("GasTrail",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)
  58.         SPSN C 1 Bright A_SpawnItemEx("GasTrail2",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)
  59.         SPSN CC 0 Bright A_SpawnItemEx("GasTrail",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)
  60.         SPSN C 1 Bright A_SpawnItemEx("GasTrail2",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)
  61.         SPSN CC 0 Bright A_SpawnItemEx("GasTrail",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)
  62.         SPSN C 1 Bright A_SpawnItemEx("GasTrail2",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)
  63.         SPSN CC 0 Bright A_SpawnItemEx("GasTrail",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)
  64.         SPSN C 1 Bright A_SpawnItemEx("GasTrail2",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION) 
  65.         SPSN BB 0 Bright A_SpawnItemEx("GasTrail",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)//Light("PoisonShellLight")
  66.         SPSN B 1 Bright A_SpawnItemEx("GasTrail2",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)//Light("PoisonShellLight")
  67.         SPSN BB 0 Bright A_SpawnItemEx("GasTrail",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)//Light("PoisonShellLight")
  68.         SPSN B 1 Bright A_SpawnItemEx("GasTrail2",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)//Light("PoisonShellLight")
  69.         SPSN BB 0 Bright A_SpawnItemEx("GasTrail",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)//Light("PoisonShellLight")
  70.         SPSN B 1 Bright A_SpawnItemEx("GasTrail2",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)//Light("PoisonShellLight")
  71.         SPSN BB 0 Bright A_SpawnItemEx("GasTrail",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)//Light("PoisonShellLight")
  72.         SPSN B 1 Bright A_SpawnItemEx("GasTrail2",random(-3,3),random(-3,3),random(-3,3),random(-1,1),random(-1,1),random(-1,1),0,SXF_NOCHECKPOSITION)//Light("PoisonShellLight")
  73.        
  74.         SPSN B 0 Bright A_JumpIf(momx>0.5,"BounceDone")
  75.         SPSN B 0 Bright A_JumpIf(momy>0.5,"BounceDone")
  76.         SPSN B 0 Bright A_JumpIf(momz>0.5,"BounceDone")
  77.         SPSN B 0 Bright A_JumpIf(momx<-0.5,"BounceDone")
  78.         SPSN B 0 Bright A_JumpIf(momy<-0.5,"BounceDone")
  79.         SPSN B 0 Bright A_JumpIf(momz<-0.5,"BounceDone")
  80.         Goto Crash
  81.   Death:
  82.     Goto BounceDoneCheck
  83.   XDeath:
  84.     Goto ActorBounce
  85.   Crash:
  86.         SPSN B 4 Bright //Light("PoisonShellLight")
  87.         SPSN C 4 Bright A_SpawnItemEx("GasCloud",random(-10,10),random(-10,10),random(0,24),random(-1,1),random(-1,1),0,random(-180, 180),SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS)
  88.         SPSN B 4 Bright //Light("PoisonShellLight")
  89.         SPSN C 4 Bright A_SpawnItemEx("GasCloud",random(-10,10),random(-10,10),random(0,24),random(-1,1),random(-1,1),0,random(-180, 180),SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS)
  90.         SPSN B 4 Bright //Light("PoisonShellLight")
  91.         SPSN C 4 Bright A_SpawnItemEx("GasCloud",random(-10,10),random(-10,10),random(0,24),random(-1,1),random(-1,1),0,random(-180, 180),SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS)
  92.   CrashDone:
  93.         SPSN B 4 Bright //Light("PoisonShellLight")
  94.         SPSN C 4 Bright
  95.         SPSN B 4 Bright //Light("PoisonShellLight")
  96.         SPSN C 4 Bright
  97.         SPSN B 4 Bright //Light("PoisonShellLight")
  98.         SPSN C 4 Bright
  99.         SPSN B 4 Bright //Light("PoisonShellLight")
  100.         SPSN C 4 Bright
  101.         SPSN B 4 Bright //Light("PoisonShellLight")
  102.         SPSN C 4 Bright
  103.         SPSN B 4 Bright //Light("PoisonShellLight")
  104.         SPSN C 4 Bright
  105.         SPSN B 4 Bright //Light("PoisonShellLight")
  106.         SPSN C 4 Bright
  107.         SPSN B 4 Bright //Light("PoisonShellLight")
  108.         SPSN C 4 Bright
  109.         Goto CrashDone2
  110.   CrashDone2:
  111.         SPSN D 0 A_SpawnItemEx("SpentPoisonPellet",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS)
  112.         Stop
  113.     }
  114. }
  115.  
  116.  
  117. ACTOR GasTrail
  118. {
  119.   Radius 8
  120.   Height 12
  121.   Mass 1
  122.   Scale 0.28
  123.   RenderStyle "Add"
  124.   Alpha 0.2
  125.   Gravity 0.005
  126.   //-BLOCKEDBYSOLIDACTORS
  127.   +CLIENTSIDEONLY
  128.   +THRUACTORS
  129.   +NOBLOCKMAP
  130.   +NOBLOCKMONST
  131.   +DROPOFF
  132.   +CORPSE
  133.   +BRIGHT
  134.   -VISIBILITYPULSE
  135.   -NOGRAVITY
  136.   -SOLID
  137.   //+FLOATBOB
  138.   States
  139.   {
  140.   Spawn:
  141.     TNT1 A 0
  142.         TNT1 A 0
  143.         TNT1 A 0
  144.         TNT1 A 0
  145.         TNT1 A 0 ACS_ExecuteWithResult(857,0,2)
  146.         TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(857,0,1) == 1,"Toaster1")
  147.         TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(857,0,1) >= 2,"Toaster2")
  148.         Goto SpawnAfterScript
  149.   SpawnAfterScript:
  150.         TNT1 A 0 A_ScaleVelocity(0.03)
  151.         TNT1 A 0 A_Jump(256,"SpawnA","SpawnB","SpawnC")
  152.         Goto SpawnA
  153.   SpawnA:
  154.         S3BG H 2
  155.         S2BG H 2
  156.         S1BG H 2
  157.         Goto SpawnB
  158.   SpawnB:
  159.         SPBG I 2
  160.         1SBG I 2
  161.         2SBG I 2
  162.         Goto SpawnC
  163.   SpawnC:
  164.     3SBG D 1
  165.         2SBG D 1
  166.     1SBG D 1
  167.    
  168.         SPBG E 2
  169.         S1BG E 2
  170.         S2BG E 2
  171.        
  172.         S3BG F 2
  173.         S2BG F 2
  174.         S1BG F 2
  175.        
  176.         SPBG H 2
  177.         1SBG H 2
  178.         2SBG H 2
  179.        
  180.         3SBG I 2
  181.         2SBG I 2
  182.         1SBG I 2
  183.  
  184.         SPBG E 2
  185.         S1BG E 2
  186.         S2BG E 2
  187.        
  188.         S3BG F 2
  189.         S2BG F 2
  190.         S1BG F 2
  191.        
  192.         SPBG H 2
  193.         1SBG H 2
  194.         2SBG H 2
  195.        
  196.         3SBG I 2
  197.         2SBG I 2
  198.         1SBG I 2
  199.  
  200.         SPBG E 2
  201.         S1BG E 2
  202.         S2BG E 2
  203.        
  204.         S3BG F 2
  205.         S2BG F 2
  206.         S1BG F 2
  207.        
  208.         SPBG H 2
  209.         1SBG H 2
  210.         2SBG H 2
  211.        
  212.         3SBG I 2
  213.         2SBG I 2
  214.         1SBG I 2
  215.  
  216.         SPBG A 0 A_ChangeFlag("NOGRAVITY", 0)
  217.  
  218.         SPBG E 2
  219.         S1BG E 2
  220.         S2BG E 2
  221.        
  222.         S3BG F 2
  223.         S2BG F 2
  224.         S1BG F 2
  225.        
  226.         SPBG H 2
  227.         1SBG H 2
  228.         2SBG H 2
  229.        
  230.         3SBG I 2
  231.         2SBG I 2
  232.         1SBG I 2
  233.  
  234.         SPBG E 2
  235.         S1BG E 2
  236.         S2BG E 2
  237.        
  238.         S3BG F 2
  239.         S2BG F 2
  240.         S1BG F 2
  241.        
  242.         SPBG H 2
  243.         1SBG H 2
  244.         2SBG H 2
  245.        
  246.         3SBG I 2
  247.         2SBG I 2
  248.         1SBG I 2
  249.         Goto Spawn2
  250.   Spawn2:
  251.         SPBG E 2
  252.         S1BG E 2
  253.         S2BG E 2
  254.         TNT1 A 0 A_Jump(90,"Spawn3")
  255.         TNT1 A 0 A_GiveInventory("Poisonbagcheckitem",1)
  256.         TNT1 A 0 A_JumpIfInventory("Poisonbagcheckitem",20,"Death")
  257.         Goto Spawn3
  258.   Spawn3:
  259.         S3BG F 2
  260.         S2BG F 2
  261.         S1BG F 2
  262.         TNT1 A 0 A_Jump(90,"Spawn4")
  263.         TNT1 A 0 A_GiveInventory("Poisonbagcheckitem",1)
  264.         TNT1 A 0 A_JumpIfInventory("Poisonbagcheckitem",20,"Death")
  265.         Goto Spawn4
  266.   Spawn4:
  267.         SPBG H 2
  268.         1SBG H 2
  269.         2SBG H 2
  270.         TNT1 A 0 A_Jump(90,"Spawn5")
  271.         TNT1 A 0 A_GiveInventory("Poisonbagcheckitem",1)
  272.         TNT1 A 0 A_JumpIfInventory("Poisonbagcheckitem",20,"Death")
  273.         Goto Spawn5
  274.   Spawn5:
  275.         3SBG I 2
  276.         2SBG I 2
  277.         1SBG I 2
  278.         TNT1 A 0 A_Jump(90,"Spawn2")
  279.         TNT1 A 0 A_GiveInventory("Poisonbagcheckitem",1)
  280.         TNT1 A 0 A_JumpIfInventory("Poisonbagcheckitem",20,"Death")
  281.         Goto Spawn2
  282.   Death:
  283.         SPBG EEEFFFGGGHHHII 2 A_FadeOut(0.01)
  284.     SPBG EEEFFFGGGHHHII 2 A_FadeOut(0.01)
  285.         SPBG EEEFFFGGGHHHII 2 A_FadeOut(0.01)
  286.         SPBG EEEFFFGGGHHHII 2 A_FadeOut(0.01)
  287.         SPBG IIIHHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
  288.         SPBG IIIHHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
  289.         SPBG IIIHHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
  290.     Stop
  291.   Crash:
  292.         TNT1 A 0
  293.         TNT1 A 0 A_ChangeVelocity (random(-1,1), random(-1,1),0,CVF_RELATIVE)
  294.         TNT1 A 0 A_ScaleVelocity(0.6)
  295.         SPBG EEEFFFGGGHHHIII 2 A_FadeOut(0.01)
  296.         SPBG HHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
  297.         SPBG EEEFFFGGGHHHIII 2 A_FadeOut(0.01)
  298.         SPBG HHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
  299.         SPBG EEEFFFGGGHHHIII 2 A_FadeOut(0.01)
  300.         SPBG HHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
  301.         SPBG EEEFFFGGGHHHIII 2 A_FadeOut(0.01)
  302.         SPBG HHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
  303.     Stop
  304.   Toaster1:
  305.     TNT1 A 0
  306.     Stop
  307.     //Goto SpawnAfterScript
  308.   Toaster2:
  309.     TNT1 A 0
  310.     Stop
  311.   }
  312. }
  313.  
  314. //////////ACS
  315.  
  316. script 857 (int which, int a1, int a2) clientside //shamelessly copied from samsara's bloody hell scripts
  317. {
  318.     int result;
  319.        
  320.         switch (which)
  321.     {
  322.           case 1:
  323.         result = GetCVar("tsp_cl_toaster");
  324.         break;
  325.       case 2:
  326.         if(GetCvar("tsp_cl_toaster") == 1) { SetActorState(0,"Toaster1"); }
  327.         if(GetCvar("tsp_cl_toaster") == 2) { SetActorState(0,"Toaster2"); }
  328.         break;  
  329.     }
  330.     SetResultValue(result);
  331. }
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