I've had to rewrite the script to make the weapon fire plasma bullets instead of the designed projectiles.
I haven't touched this code except I've had to delete massive parts of it to make the weapon viable.
Bottom line, I can't make the projectile spawn. I have a feeling that the class definitions aren't compatible
with Zdoom parameters. If I upgrade to UDB would it provide a greater scope of compatibility for DECORATE
script?
Let me know what you guys think. A_CustomMissile parameters are frustrating.
actor FuzzyPlasma // edited from Doom's standard plasmaball actor
{
Radius 13
Height 8
Speed 30
Damage 4
Decal DoomImpScorch
Projectile
+RANDOMIZE
RenderStyle Add
Alpha 0.75
SeeSound ""
DeathSound "fuzzy/pdeath"
Obituary "%o was left decayed by %k's Plasmatic Rifle"
States
{
Spawn:
PLZM F 0
PLZM F 0 A_SpawnItemEx("FuzzyPlasmaTrail")
PLZM F 1 bright
PLZM G 0 A_SpawnItemEx("FuzzyPlasmaTrail")
PLZM G 1 bright
loop
Death:
PLZM H 0
PLZM H 0 A_Explode(8, 32)
PLZM HIJKL 3 bright
stop
}
}
ACTOR FuzzyPlasmaTrail
{
RenderStyle Translucent
Alpha 0.75
Scale 0.7
+NOBLOCKMAP
+NOGRAVITY
+NOCLIP
+DONTSPLASH
+NOTELEPORT
States
{
Spawn:
PLZM M 0
PLZM M 1 A_SetTranslucent(0.70, 1)
PLZM N 1 A_SetTranslucent(0.65, 1)
PLZM M 1 A_SetTranslucent(0.60, 1)
PLZM N 1 A_SetTranslucent(0.55, 1)
PLZM M 1 A_SetTranslucent(0.50, 1)
PLZM N 1 A_SetTranslucent(0.45, 1)
PLZM M 1 A_SetTranslucent(0.40, 1)
PLZM N 1 A_SetTranslucent(0.35, 1)
PLZM M 1 A_SetTranslucent(0.20, 1)
PLZM N 1 A_SetTranslucent(0.15, 1)
PLZM M 1 A_SetTranslucent(0.10, 1)
PLZM N 1 A_SetTranslucent(0.05, 1)
Stop
}
}
actor UACPlasmaticRifle : Weapon // Replaces PlasmaRifle
{
Weapon.SelectionOrder 100
Weapon.AmmoUse 1
Weapon.AmmoGive 50
Weapon.AmmoType "Cell"
Weapon.SlotNumber 6
//Weapon.BobStyle Alpha
Inventory.PickupMessage "UAC Standard Plasmatic Rifle"
States
{
Ready:
PLZM A 1 A_WeaponReady
Loop
Deselect:
PLZM A 1 A_Lower
//TNT1 AA 0 A_Lower
Loop
Select:
PLZM A 1 A_Raise
//TNT1 AA 0 A_Raise
Loop
Fire:
PLZM A 0
PLZM A 0 A_FireCustomMissile("FuzzyPlasma",0,1,0,0)
PLZM A 0 A_PlaySound("fuzzy/plasma")
PLZM B 2 BRIGHT
PLZM C 2
PLZM D 6 A_ReFire
Goto Ready
Spawn:
PLZM E -1
Stop
}
}
What's wrong with the code?
Thanks for your patience!