Code: Select all
ACTOR T800Crosshair
{
+CLIENTSIDEONLY
VisibleToPlayerClass Terminator
States
{
Spawn:
TRMX A 1 Bright
loop
}
}
Code: Select all
script 133 ENTER
{
if(PlayerTeam() == 0 || CheckInventory("CreeperWeapon") == 1)
{
terminate;
}
int x = GetActorX(0)+10;
int y = GetActorY(0)+10;
int Z = GetActorZ(0)+30;
int p = PlayerNumber();
int tid = 1000+p;
SpawnForced("T800Crosshair", x, y, z, tid, 0);
while (PlayerInGame(p))
{
x = GetActorX(0)+10;
y = GetActorY(0)+10;
Z = GetActorZ(0)+30;
SetActorPosition(tid, x, y, z, 0);
delay(1);
}
Thing_Remove(tid);
}
script 134 RESPAWN
{
if(PlayerTeam() == 0 || CheckInventory("CreeperWeapon") == 1)
{
terminate;
}
int x = GetActorX(0)+10;
int y = GetActorY(0)+10;
int Z = GetActorZ(0)+30;
int p = PlayerNumber();
int tid = 1000+p;
SpawnForced("T800Crosshair", x, y, z, tid, 0);
while (PlayerInGame(p))
{
x = GetActorX(0)+10;
y = GetActorY(0)+10;
Z = GetActorZ(0)+30;
SetActorPosition(tid, x, y, z, 0);
delay(1);
}
Thing_Remove(tid);
}