
//Future v6c file for "core_Check_TranslateLikePlayer"

actor ProjTeamColor1Server : CustomInventory
{
states
{
Pickup:
TNT1 A 0 A_CheckFlag("CLIENTSIDEONLY","Pickup2")
//TNT1 A 0 A_Print("Server")
TNT1 A 0 A_GiveInventory("ProjTeamColor1",1)
stop
Pickup2:
TNT1 A 0
stop
}
}

actor ProjTeamColor1Client : CustomInventory
{
states
{
Pickup:
TNT1 A 0 A_CheckFlag("USESPAWNEVENTSCRIPT","PickupNo") //CLIENTSIDE EVENT doesn't cover +USESPAWNEVENTSCRIPT +CLIENTSIDEONLY objects online >_>
TNT1 A 0 A_CheckFlag("CLIENTSIDEONLY","Pickup2")
PickupNo:
TNT1 A 0
stop
Pickup2:
//TNT1 A 0 A_Print("Client")
TNT1 A 0 A_GiveInventory("ProjTeamColor1",1)
stop
}
}

actor ProjTeamColor1 : CustomInventory
{
states
{
Pickup:
TNT1 A 0 A_Jumpifinventory("ProjectileGivenTeamColors",1,"Pickup2")
TNT1 A 0 A_GiveInventory("ProjectileGivenTeamColors",1)
TNT1 A 0 A_GiveInventory("ProjTeamColor2",1)
stop
Pickup2:
TNT1 A 0 //A_Log("ProjTeamColor1 given twice. wat")
stop
}
}

actor ProjectileGivenTeamColors : Inventory
{
inventory.amount 1
inventory.maxamount 1
}

actor ProjTeamColor2 : CustomInventory
{
states
{
Pickup:
TNT1 A 0 A_JumpIf(CallACS("core_Check_ProjectileColor_Server") && !CallACS("core_Check_NoTranslation"),"Pickup2")
stop
Pickup2:
TNT1 A 0 A_JumpIfInTargetInventory("NoProjectileTeamTranslation",1,"PickupNo")
TNT1 A 0 A_Jumpifintargetinventory("LightTeamFlag",1,"TeamBlue")
TNT1 A 0 A_Jumpifintargetinventory("WilyTeamFlag",1,"TeamRed")
TNT1 A 0 A_Jumpifintargetinventory("CossackTeamFlag",1,"TeamGreen")
TNT1 A 0 A_Jumpifintargetinventory("KingTeamFlag",1,"TeamGold")
PickupNo:
TNT1 A 0
stop
TeamBlue:
TeamBlue1:
TNT1 A 0 ACS_NamedExecuteWithResult("core_Set_Projectile_Translation",0,CallACS("core_Check_TranslateWhiteColors"),CallACS("core_Check_TranslateBlackColors"),CallACS("core_Check_TranslateLikePlayer"))
stop
TeamRed:
TeamRed1:
TNT1 A 0 ACS_NamedExecuteWithResult("core_Set_Projectile_Translation",1,CallACS("core_Check_TranslateWhiteColors"),CallACS("core_Check_TranslateBlackColors"),CallACS("core_Check_TranslateLikePlayer"))
stop
TeamGreen:
TeamGreen1:
TNT1 A 0 ACS_NamedExecuteWithResult("core_Set_Projectile_Translation",2,CallACS("core_Check_TranslateWhiteColors"),CallACS("core_Check_TranslateBlackColors"),CallACS("core_Check_TranslateLikePlayer"))
stop
TeamGold:
TeamGold1:
TNT1 A 0 ACS_NamedExecuteWithResult("core_Set_Projectile_Translation",3,CallACS("core_Check_TranslateWhiteColors"),CallACS("core_Check_TranslateBlackColors"),CallACS("core_Check_TranslateLikePlayer"))
stop
}
}
