I got most of the decorate working except 1 major problem, the pitch for the projectile isn't adjusted, (no Z velocity). Without it, the projectile just either flies over the player or below while tracking the player's position. I'm not sure how to write an expression that adjusts the pitch.
Code: Select all
ACTOR SentinelShot : CacodemonBall
{
Radius 6
Height 12
Speed 18
Damage 10
DamageType fire
ALPHA 0.85
ReactionTime 5
+THRUGHOST
+FORCEXYBILLBOARD
+SEEKERMISSILE
Seesound "weapons/magic1"
deathsound "weapons/magic9"
Obituary "%o was fried by a Guardian."
States
{
Spawn:
CFX3 ABABABABABABABABAB 3 Bright
CFX3 A 3 Bright A_Stop
CFX3 BABAB 3 Bright
CFX3 A 0 Bright A_PlaySound("weapons/magic1",4)
CFX3 AAAA 0 Bright A_SeekerMissile(90,90,0,100,10240)
CFX3 A 0 Bright A_Countdown
CFX3 A 0 Bright A_ChangeVelocity(18,0,0, CVF_RELATIVE|CVF_REPLACE) <====this part
loop
Death:
CFX3 CDEF 3 Bright
stop
}
}