Code: Select all
actor SlantedSpringboard 3501
{
//$Category PlatformingTools
//$Title SlantedSpringboard
//$Angled
//$Sprite BBOUA0
Radius 20
Height 5
Scale 1
+NoGravity
States
{
Spawn:
BBOU A 0
TNT1 A 0 A_JumpIf(Args[0] == 0, "blue")
TNT1 A 0 A_JumpIf(Args[0] == 1, "yellow")
TNT1 A 0 A_JumpIf(Args[0] == 2, "red")
Blue:
BBOU A 1 A_CheckProximity("bluebounce","playerpawn",30,1,CPXF_ANCESTOR)
loop
BlueBounce:
BBOU A 1 A_ChangeVelocity(15,0,18,CVF_REPLACE|CVF_RELATIVE,AAPTR_PLAYER1)
BBOU A 0 A_SetAngle(angle,SPF_INTERPOLATE,AAPTR_PLAYER1)
goto Blue
Yellow:
YBOU A 1 A_CheckProximity("yellowbounce","playerpawn",30,1,CPXF_ANCESTOR)
loop
YellowBounce:
BBOU A 1 A_ChangeVelocity(23,0,28,CVF_REPLACE|CVF_RELATIVE,AAPTR_PLAYER1)
BBOU A 0 A_SetAngle(angle,SPF_INTERPOLATE,AAPTR_PLAYER1)
goto Yellow
Red:
RBOU A 1 A_CheckProximity("redbounce","playerpawn",30,1,CPXF_ANCESTOR)
loop
RedBounce:
RBOU A 1 A_ChangeVelocity(30,0,35,CVF_REPLACE|CVF_RELATIVE,AAPTR_PLAYER1)
RBOU A 0 A_SetAngle(angle,SPF_INTERPOLATE,AAPTR_PLAYER1)
goto Red
}
}
I tried using ThrustThing, but it can't use pointers to effect the player, is there any way for me to do this? I assume there is, i'm just kinda stumped.