Advertisement
Chronos_Ouroboros

VD Tracer

Dec 18th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. /* Credits:
  2. ** Decorate: WildWeasel, Chronos "phantombeta" Ouroboros
  3. ** Sprites: ???
  4. ** Models: Id Software, Revilution/Zanieon
  5. ** Weapons:
  6. ** TNT1 A 0 ACS_NamedExecuteAlways ("VD_SaveSpread", 0, fRandom [weaponSpread] (-, horizontalSpread), fRandom [weaponSpread] (-, verticalSpread))
  7. ** TNT1 A 0 A_FireCustomMissile (tracerName, CallACS ("VD_GetSpreadX"), 1, horizontalOffset, verticalOffset, 0, CallACS ("VD_GetSpreadY"))
  8. ** TNT1 A 0 A_FireBullets (CallACS ("VD_GetSpreadX"), CallACS ("VD_GetSpreadY"), 1, damage, "VD_BulletPuff", FBF_ExplicitAngle | FBF_NoPitch)
  9. ** Monsters:
  10. ** User vars:
  11. ** var float user_SpreadX;
  12. ** var float user_SpreadY;
  13. ** States:
  14. ** TNT1 A 0 A_SetUserVar ("user_SpreadX", fRandom [monsterSpread] (-, horizontalSpread))
  15. ** TNT1 A 0 A_SetUserVar ("user_SpreadY", fRandom [monsterSpread] (-, verticalSpread))
  16. ** TNT1 A 0 A_CustomMissile (tracerName, verticalOffset, horizontalOffset, user_SpreadX, 0, user_SpreadY)
  17. ** TNT1 A 0
  18. */
  19.  
  20. /*** Base ***/
  21. actor VD_TracerEffectsBase {
  22. height 2
  23. radius 2
  24. alpha 1.0
  25. scale 0.025
  26. renderStyle add
  27. +noBlockmap +noGravity +noTeleport +cannotPush
  28. +noInteraction +clientsideOnly +forceXYBillboard
  29. }
  30.  
  31. actor VD_BaseTracer : fastProjectile {
  32. alpha 1.0
  33. renderStyle add
  34. radius 2
  35. height 2
  36. speed 250 // 25
  37. // args 100, 1, 8, 1, 3
  38. // args [speed, numBullets, damage, damageRandomMin, damageRandomMax]
  39. projectile
  40. +bloodSplatter +noExtremeDeath +noDamageThrust +puffGetsOwner
  41. damage (random (1, 3) * 6)
  42. decal Bullet
  43. states {
  44. Spawn:
  45. SPRK A 1 bright
  46. wait
  47. Death:
  48. TNT1 A 1
  49. stop
  50. }
  51. }
  52.  
  53. actor VD_BulletPuff : VD_TracerEffectsBase replaces BulletPuff {
  54. +puffGetsOwner
  55. -clientsideOnly -noInteraction
  56. states {
  57. Spawn:
  58. TNT1 AAAAA 0 noDelay A_SpawnItemEx ("VD_BulletPuffSparks", 0.0, 0.0, 0.0, fRandom [sfx] (0.0, 2.0), fRandom [sfx] (-2.0, 2.0), fRandom [sfx] (0.0, 3.0), 0, SXF_Clientside)
  59. TNT1 A 1 A_SpawnItemEx ("VD_BulletPuffSparks", 0.0, 0.0, 0.0, fRandom [sfx] (0.0, 2.0), fRandom [sfx] (-2.0, 2.0), fRandom [sfx] (0.0, 3.0), 0, SXF_Clientside)
  60. stop
  61. }
  62. }
  63.  
  64. actor VD_BulletPuffSparks : VD_TracerEffectsBase {
  65. mass 1
  66. damage 0
  67. +missile +dropOff +ghost +dontSplash
  68. -doomBounce -noGravity -noInteraction
  69. speed 10
  70. gravity 1.0
  71. states {
  72. Spawn:
  73. SPRK A 1 bright
  74. SPRK A 1 bright A_FadeOut (0.05)
  75. wait
  76. }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement