Code: Select all
Actor Z_SunScanner : ArtiEgg
{
Inventory.Amount 1
Inventory.MaxAmount 1
+INVENTORY.QUIET
+INVENTORY.UNDROPPABLE
-INVENTORY.INVBAR
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
-INVENTORY.PICKUPFLASH
States
{
Use:
TNT1 A 0 A_FireBullets(ACS_NamedExecuteWithResult("DeadEndScript_CalculateHorizontalSunHitscan") - angle + 180, ACS_NamedExecuteWithResult("DeadEndScript_CalculateVerticalSunHitscan"), 2, 0, "Z_SunScannerPuff", FBF_NORANDOM | FBF_EXPLICITANGLE | FBF_NOFLASH | FBF_NOPITCH, 0)
//TNT1 A 0 A_FireCustomMissile("PlasmaBall", ACS_NamedExecuteWithResult("DeadEndScript_CalculateHorizontalSunHitscan") - angle + 180, 0, 0, 0, 0, ACS_NamedExecuteWithResult("DeadEndScript_CalculateVerticalSunHitscan") + pitch)
stop
}
}
Code: Select all
Actor Z_SunScannerPuff : BulletPuff
{
+NOGRAVITY
+NODAMAGETHRUST
-ALLOWPARTICLES
-RANDOMIZE
RenderStyle None
Alpha 1.0
VSpeed 0
Mass 0x7FFFFFFF
+PUFFONActorS
+PUFFGETSOWNER
+ALWAYSPUFF
+BLOODLESSIMPACT
+DONTSPLASH
+NOTIMEFREEZE
+SOLID
Radius 4
Height 8
States
{
Spawn:
stop
Crash:
TNT1 A 1 Thing_ChangeTID(0, ACS_NamedExecuteWithResult("DeadEndScript_GetSunScannerTID", 0))
BON1 A 1 bright ACS_NamedExecuteAlways("DeadEndScript_DrawSunGlareFlat", 0)
TNT1 A 1
stop
}
}
Pretty sure I'm using it correctly.Execution could not continue.
Script error, ":actors/player.txt" line 154:
Unexpected token string constant "DeadEndScript_CalculateHorizontalSunHitscan"