1. I don't think it ever gets the player as its master since it just moves in 2 directions when you hit it. And I don't know much about pointers to spot why.
2. After it has hit a wall a couple of times it just disappears. Never the first time it hits a wall but on the 2nd or 3rd time. Why? I know it does not have a solid flag right now but that makes no difference.
Code: Select all
actor Ball 10000
{
Radius 4
Height 4
Health 10000
Friction 1
PainChance 256
+SHOOTABLE
+NODAMAGE
+ALLOWPAIN
+DONTTHRUST
+NOBLOOD
+BOUNCEONWALLS
+BOUNCEONFLOORS
+BOUNCEONCEILINGS
+ALLOWBOUNCEONACTORS
+BOUNCEAUTOOFFFLOORONLY
+BOUNCEONACTORS
+MBFBOUNCER
+FORCEXYBILLBOARD
States
{
Spawn:
eyeb a 0 nodelay A_RearrangePointers(AAPTR_DEFAULT, AAPTR_PLAYER1, AAPTR_DEFAULT)
Idle:
eyeb a -1
Pain:
eyeb a 1 A_FaceMaster(0, 270, 180, 0, 0, 0)
eyeb a 1 A_ChangeVelocity(16, 0, 16, CVF_RELATIVE | CVF_REPLACE)
goto Idle
Death:
eyab a 0
goto Idle
}
}