Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Credits:
- ** Decorate: WildWeasel, Chronos "phantombeta" Ouroboros
- ** Sprites: ???
- ** Models: Id Software, Revilution/Zanieon
- ** Weapons:
- ** TNT1 A 0 ACS_NamedExecuteAlways ("VD_SaveSpread", 0, fRandom [weaponSpread] (-, horizontalSpread), fRandom [weaponSpread] (-, verticalSpread))
- ** TNT1 A 0 A_FireCustomMissile (tracerName, CallACS ("VD_GetSpreadX"), 1, horizontalOffset, verticalOffset, 0, CallACS ("VD_GetSpreadY"))
- ** TNT1 A 0 A_FireBullets (CallACS ("VD_GetSpreadX"), CallACS ("VD_GetSpreadY"), 1, damage, "VD_BulletPuff", FBF_ExplicitAngle | FBF_NoPitch)
- ** Monsters:
- ** User vars:
- ** var float user_SpreadX;
- ** var float user_SpreadY;
- ** States:
- ** TNT1 A 0 A_SetUserVar ("user_SpreadX", fRandom [monsterSpread] (-, horizontalSpread))
- ** TNT1 A 0 A_SetUserVar ("user_SpreadY", fRandom [monsterSpread] (-, verticalSpread))
- ** TNT1 A 0 A_CustomMissile (tracerName, verticalOffset, horizontalOffset, user_SpreadX, 0, user_SpreadY)
- ** TNT1 A 0
- */
- /*** Base ***/
- actor VD_TracerEffectsBase {
- height 2
- radius 2
- alpha 1.0
- scale 0.025
- renderStyle add
- +noBlockmap +noGravity +noTeleport +cannotPush
- +noInteraction +clientsideOnly +forceXYBillboard
- }
- actor VD_BaseTracer : fastProjectile {
- alpha 1.0
- renderStyle add
- radius 2
- height 2
- speed 250 // 25
- // args 100, 1, 8, 1, 3
- // args [speed, numBullets, damage, damageRandomMin, damageRandomMax]
- projectile
- +bloodSplatter +noExtremeDeath +noDamageThrust +puffGetsOwner
- damage (random (1, 3) * 6)
- decal Bullet
- states {
- Spawn:
- SPRK A 1 bright
- wait
- Death:
- TNT1 A 1
- stop
- }
- }
- actor VD_BulletPuff : VD_TracerEffectsBase replaces BulletPuff {
- +puffGetsOwner
- -clientsideOnly -noInteraction
- states {
- Spawn:
- 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)
- 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)
- stop
- }
- }
- actor VD_BulletPuffSparks : VD_TracerEffectsBase {
- mass 1
- damage 0
- +missile +dropOff +ghost +dontSplash
- -doomBounce -noGravity -noInteraction
- speed 10
- gravity 1.0
- states {
- Spawn:
- SPRK A 1 bright
- SPRK A 1 bright A_FadeOut (0.05)
- wait
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement