Advertisement
scroton

Untitled

Oct 31st, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. //in weapon
  2.  
  3. RNLF FFFFFFFFFFFFFF 0 A_SpawnItemEx ("DummyShrapnel",0,2,44,cos(-pitch),0,sin(-pitch),frandom(-4.0,4.0),SXF_TRANSFERPITCH|SXF_NOCHECKPOSITION)
  4.  
  5.  
  6. //dummy shrapnel
  7.  
  8. actor DummyShrapnel
  9. {
  10. +NOINTERACTION
  11. Radius 1
  12. Height 1
  13. States
  14. {
  15. Spawn:
  16. PUFF A 0
  17. PUFF A 0
  18. PUFF A 0 A_SetPitch(pitch+frandom(-4.0,4.0))
  19. Goto Spawn2
  20. Spawn2:
  21. PUFF A 0
  22. PUFF A 0
  23. PUFF A 0 A_Jump(256, "Shoot50", "Shoot51", "Shoot52", "Shoot53", "Shoot54", "Shoot55", "Shoot56", "Shoot57", "Shoot58", "Shoot59", "Shoot60")
  24. Loop
  25. Shoot30:
  26. PUFF A 0 A_SpawnItemEx ("ToolboxShrapnelMissile",0,0,0,cos(-pitch)*30,0,sin(-pitch)*30,0,SXF_TRANSFERPITCH)
  27. PUFF A 0 A_SpawnItemEx ("ShrapnelTrail",-1,0,(sin(pitch)*1),cos(-pitch)*30,0,sin(-pitch)*30,0,SXF_TRANSFERPITCH)
  28. PUFF A 0 A_SpawnItemEx ("ShrapnelTrail1",-2,0,(sin(pitch)*2),cos(-pitch)*30,0,sin(-pitch)*30,0,SXF_TRANSFERPITCH)
  29. PUFF A 0 A_SpawnItemEx ("ShrapnelTrail1",-3,0,(sin(pitch)*3),cos(-pitch)*30,0,sin(-pitch)*30,0,SXF_TRANSFERPITCH)
  30. PUFF A 0 A_SpawnItemEx ("ShrapnelTrail2",-4,0,(sin(pitch)*4),cos(-pitch)*30,0,sin(-pitch)*30,0,SXF_TRANSFERPITCH)
  31. PUFF A 0 A_SpawnItemEx ("ShrapnelTrail2",-5,0,(sin(pitch)*5),cos(-pitch)*30,0,sin(-pitch)*30,0,SXF_TRANSFERPITCH)
  32. PUFF A 0 A_SpawnItemEx ("ShrapnelTrail3",-6,0,(sin(pitch)*6),cos(-pitch)*30,0,sin(-pitch)*30,0,SXF_TRANSFERPITCH)
  33. PUFF A 0 A_SpawnItemEx ("ShrapnelTrail3",-7,0,(sin(pitch)*7),cos(-pitch)*30,0,sin(-pitch)*30,0,SXF_TRANSFERPITCH)
  34. Goto Spawn3
  35.  
  36. etc for other shoot states with different values
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement