Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- actor PoisonPellet
- {
- Damage 2
- Radius 4
- Height 4
- Speed 60
- Projectile
- Scale 0.3
- Renderstyle "Normal"
- BounceType "Hexen"
- Mass 250
- Gravity 0.3
- BounceFactor 0.35
- WallBounceFactor 0.35
- Species "Player"
- +THRUSPECIES
- -NOGRAVITY
- +NOTIMEFREEZE
- +NODAMAGETHRUST
- //+ALLOWBOUNCEONACTORS
- +BOUNCEONACTORS
- //+USEBOUNCESTATE
- //BounceSound "none" //gotta add one
- Alpha 1.0
- Decal None
- States
- {
- Spawn:
- SPSN A 0
- SPSN A 12
- Goto StartGas
- StartGas:
- TNT1 A 0 A_ChangeVelocity(random(-2,5),random(-4,4),0,CVF_RELATIVE)
- TNT1 A 0 A_GiveInventory("ShockArcDie",1)
- SPSN B 0 A_PlaySound("Weapons/PoisonShell",0)
- SPSN B 4 Bright //Light("PoisonShellLight")
- Goto BounceDone
- ActorBounce:
- SPSN B 0 A_Jump(255,"ActorBounce1","ActorBounce2","ActorBounce3")
- Goto ActorBounce1
- ActorBounce1:
- TNT1 A 0 A_ChangeVelocity(random(-2,2),random(-2,2),random(0,5),CVF_RELATIVE)
- TNT1 A 0 A_JumpIfInventory("ShockArcDie",1,"BounceDone")
- Goto StartGas
- ActorBounce2:
- TNT1 A 0 A_ChangeVelocity(random(-3,3),random(-3,3),random(0,6),CVF_RELATIVE)
- TNT1 A 0 A_JumpIfInventory("ShockArcDie",1,"BounceDone")
- Goto StartGas
- ActorBounce3:
- TNT1 A 0 A_ChangeVelocity(random(-4,4),random(-4,4),random(0,7),CVF_RELATIVE)
- TNT1 A 0 A_JumpIfInventory("ShockArcDie",1,"BounceDone")
- Goto StartGas
- BounceDoneCheck:
- TNT1 A 0 A_JumpIfInventory("ShockArcDie",1,"BounceDone")
- Goto BounceDone
- BounceDone:
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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")
- 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")
- 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")
- 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")
- 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")
- 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")
- 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")
- 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")
- SPSN B 0 Bright A_JumpIf(momx>0.5,"BounceDone")
- SPSN B 0 Bright A_JumpIf(momy>0.5,"BounceDone")
- SPSN B 0 Bright A_JumpIf(momz>0.5,"BounceDone")
- SPSN B 0 Bright A_JumpIf(momx<-0.5,"BounceDone")
- SPSN B 0 Bright A_JumpIf(momy<-0.5,"BounceDone")
- SPSN B 0 Bright A_JumpIf(momz<-0.5,"BounceDone")
- Goto Crash
- Death:
- Goto BounceDoneCheck
- XDeath:
- Goto ActorBounce
- Crash:
- SPSN B 4 Bright //Light("PoisonShellLight")
- 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)
- SPSN B 4 Bright //Light("PoisonShellLight")
- 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)
- SPSN B 4 Bright //Light("PoisonShellLight")
- 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)
- CrashDone:
- SPSN B 4 Bright //Light("PoisonShellLight")
- SPSN C 4 Bright
- SPSN B 4 Bright //Light("PoisonShellLight")
- SPSN C 4 Bright
- SPSN B 4 Bright //Light("PoisonShellLight")
- SPSN C 4 Bright
- SPSN B 4 Bright //Light("PoisonShellLight")
- SPSN C 4 Bright
- SPSN B 4 Bright //Light("PoisonShellLight")
- SPSN C 4 Bright
- SPSN B 4 Bright //Light("PoisonShellLight")
- SPSN C 4 Bright
- SPSN B 4 Bright //Light("PoisonShellLight")
- SPSN C 4 Bright
- SPSN B 4 Bright //Light("PoisonShellLight")
- SPSN C 4 Bright
- Goto CrashDone2
- CrashDone2:
- SPSN D 0 A_SpawnItemEx("SpentPoisonPellet",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS)
- Stop
- }
- }
- ACTOR GasTrail
- {
- Radius 8
- Height 12
- Mass 1
- Scale 0.28
- RenderStyle "Add"
- Alpha 0.2
- Gravity 0.005
- //-BLOCKEDBYSOLIDACTORS
- +CLIENTSIDEONLY
- +THRUACTORS
- +NOBLOCKMAP
- +NOBLOCKMONST
- +DROPOFF
- +CORPSE
- +BRIGHT
- -VISIBILITYPULSE
- -NOGRAVITY
- -SOLID
- //+FLOATBOB
- States
- {
- Spawn:
- TNT1 A 0
- TNT1 A 0
- TNT1 A 0
- TNT1 A 0
- TNT1 A 0 ACS_ExecuteWithResult(857,0,2)
- TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(857,0,1) == 1,"Toaster1")
- TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(857,0,1) >= 2,"Toaster2")
- Goto SpawnAfterScript
- SpawnAfterScript:
- TNT1 A 0 A_ScaleVelocity(0.03)
- TNT1 A 0 A_Jump(256,"SpawnA","SpawnB","SpawnC")
- Goto SpawnA
- SpawnA:
- S3BG H 2
- S2BG H 2
- S1BG H 2
- Goto SpawnB
- SpawnB:
- SPBG I 2
- 1SBG I 2
- 2SBG I 2
- Goto SpawnC
- SpawnC:
- 3SBG D 1
- 2SBG D 1
- 1SBG D 1
- SPBG E 2
- S1BG E 2
- S2BG E 2
- S3BG F 2
- S2BG F 2
- S1BG F 2
- SPBG H 2
- 1SBG H 2
- 2SBG H 2
- 3SBG I 2
- 2SBG I 2
- 1SBG I 2
- SPBG E 2
- S1BG E 2
- S2BG E 2
- S3BG F 2
- S2BG F 2
- S1BG F 2
- SPBG H 2
- 1SBG H 2
- 2SBG H 2
- 3SBG I 2
- 2SBG I 2
- 1SBG I 2
- SPBG E 2
- S1BG E 2
- S2BG E 2
- S3BG F 2
- S2BG F 2
- S1BG F 2
- SPBG H 2
- 1SBG H 2
- 2SBG H 2
- 3SBG I 2
- 2SBG I 2
- 1SBG I 2
- SPBG A 0 A_ChangeFlag("NOGRAVITY", 0)
- SPBG E 2
- S1BG E 2
- S2BG E 2
- S3BG F 2
- S2BG F 2
- S1BG F 2
- SPBG H 2
- 1SBG H 2
- 2SBG H 2
- 3SBG I 2
- 2SBG I 2
- 1SBG I 2
- SPBG E 2
- S1BG E 2
- S2BG E 2
- S3BG F 2
- S2BG F 2
- S1BG F 2
- SPBG H 2
- 1SBG H 2
- 2SBG H 2
- 3SBG I 2
- 2SBG I 2
- 1SBG I 2
- Goto Spawn2
- Spawn2:
- SPBG E 2
- S1BG E 2
- S2BG E 2
- TNT1 A 0 A_Jump(90,"Spawn3")
- TNT1 A 0 A_GiveInventory("Poisonbagcheckitem",1)
- TNT1 A 0 A_JumpIfInventory("Poisonbagcheckitem",20,"Death")
- Goto Spawn3
- Spawn3:
- S3BG F 2
- S2BG F 2
- S1BG F 2
- TNT1 A 0 A_Jump(90,"Spawn4")
- TNT1 A 0 A_GiveInventory("Poisonbagcheckitem",1)
- TNT1 A 0 A_JumpIfInventory("Poisonbagcheckitem",20,"Death")
- Goto Spawn4
- Spawn4:
- SPBG H 2
- 1SBG H 2
- 2SBG H 2
- TNT1 A 0 A_Jump(90,"Spawn5")
- TNT1 A 0 A_GiveInventory("Poisonbagcheckitem",1)
- TNT1 A 0 A_JumpIfInventory("Poisonbagcheckitem",20,"Death")
- Goto Spawn5
- Spawn5:
- 3SBG I 2
- 2SBG I 2
- 1SBG I 2
- TNT1 A 0 A_Jump(90,"Spawn2")
- TNT1 A 0 A_GiveInventory("Poisonbagcheckitem",1)
- TNT1 A 0 A_JumpIfInventory("Poisonbagcheckitem",20,"Death")
- Goto Spawn2
- Death:
- SPBG EEEFFFGGGHHHII 2 A_FadeOut(0.01)
- SPBG EEEFFFGGGHHHII 2 A_FadeOut(0.01)
- SPBG EEEFFFGGGHHHII 2 A_FadeOut(0.01)
- SPBG EEEFFFGGGHHHII 2 A_FadeOut(0.01)
- SPBG IIIHHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
- SPBG IIIHHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
- SPBG IIIHHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
- Stop
- Crash:
- TNT1 A 0
- TNT1 A 0 A_ChangeVelocity (random(-1,1), random(-1,1),0,CVF_RELATIVE)
- TNT1 A 0 A_ScaleVelocity(0.6)
- SPBG EEEFFFGGGHHHIII 2 A_FadeOut(0.01)
- SPBG HHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
- SPBG EEEFFFGGGHHHIII 2 A_FadeOut(0.01)
- SPBG HHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
- SPBG EEEFFFGGGHHHIII 2 A_FadeOut(0.01)
- SPBG HHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
- SPBG EEEFFFGGGHHHIII 2 A_FadeOut(0.01)
- SPBG HHHGGGFFFEEEDDD 2 A_FadeOut(0.01)
- Stop
- Toaster1:
- TNT1 A 0
- Stop
- //Goto SpawnAfterScript
- Toaster2:
- TNT1 A 0
- Stop
- }
- }
- //////////ACS
- script 857 (int which, int a1, int a2) clientside //shamelessly copied from samsara's bloody hell scripts
- {
- int result;
- switch (which)
- {
- case 1:
- result = GetCVar("tsp_cl_toaster");
- break;
- case 2:
- if(GetCvar("tsp_cl_toaster") == 1) { SetActorState(0,"Toaster1"); }
- if(GetCvar("tsp_cl_toaster") == 2) { SetActorState(0,"Toaster2"); }
- break;
- }
- SetResultValue(result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement