Trying to make a "GhostSphere" pick-up
Posted: Thu Nov 03, 2016 12:40 am
I am trying to make a replacement for the BlurSphere that makes the player partially invisible, but also makes him not solid and gives him NoTarget, all for 120 seconds. Here's the DECORATE code:
It prints the two A_Log messages before it even prints the pickup message, so the effect has zero duration, so I can't even find out if the effect even works.
Code: Select all
ACTOR GhostSphere : CustomInventory replaces BlurSphere
{
+COUNTITEM
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
+INVENTORY.BIGPOWERUP
Inventory.MaxAmount 0
RenderStyle "Add"
Alpha 0.95
Inventory.PickupMessage "You will be a ghost for a while!"
States
{
Spawn:
PINS ABCD 6 Bright
Loop
Pickup:
TNT1 A 0
TNT1 A 0 A_ChangeFlag ("NoTarget", True)
TNT1 A 0 A_SetTranslucent (0.50, 1)
TNT1 A 4095 A_ChangeFlag ("Solid", False)
TNT1 A 105 A_Log ("WARNING! Your time as a ghost is almost over!")
TNT1 A 0 A_Log ("You are not a ghost any more.")
TNT1 A 0 A_ChangeFlag ("NoTarget", False)
TNT1 A 0 A_SetTranslucent (1.0, 0)
TNT1 A 0 A_ChangeFlag ("Solid", True)
stop
}
}