Ejemplo n.º 1
0
        private static void playStationFX()
        {
            Entity alliesBack = alliesStation.GetField <Entity>("back");
            Entity axisBack   = axisStation.GetField <Entity>("back");

            GSCFunctions.StopFXOnTag(alliesSiteFX, alliesStation, "tag_origin");
            GSCFunctions.StopFXOnTag(alliesSiteFX, alliesBack, "tag_origin");
            GSCFunctions.StopFXOnTag(axisSiteFX, alliesStation, "tag_origin");
            GSCFunctions.StopFXOnTag(axisSiteFX, alliesBack, "tag_origin");
            GSCFunctions.StopFXOnTag(alliesSiteFX, axisStation, "tag_origin");
            GSCFunctions.StopFXOnTag(alliesSiteFX, axisBack, "tag_origin");
            GSCFunctions.StopFXOnTag(axisSiteFX, axisStation, "tag_origin");
            GSCFunctions.StopFXOnTag(axisSiteFX, axisBack, "tag_origin");
            AfterDelay(200, () =>
            {
                /*
                 * GSCFunctions.PlayFXOnTag(alliesSiteFX, alliesStation, "tag_origin");
                 * GSCFunctions.PlayFXOnTag(alliesSiteFX, alliesBack, "tag_origin");
                 * GSCFunctions.PlayFXOnTag(axisSiteFX, axisStation, "tag_origin");
                 * GSCFunctions.PlayFXOnTag(axisSiteFX, axisBack, "tag_origin");
                 */
                foreach (Entity player in Players)
                {
                    if (player.SessionTeam != "allies" && player.SessionTeam != "axis")
                    {
                        continue;
                    }

                    if (player.SessionTeam == "allies")
                    {
                        //Log.Debug("Playing ally fx");
                        GSCFunctions.PlayFXOnTagForClients(alliesSiteFX, alliesStation, "tag_origin", player);
                        GSCFunctions.PlayFXOnTagForClients(alliesSiteFX, alliesBack, "tag_origin", player);
                        GSCFunctions.PlayFXOnTagForClients(axisSiteFX, axisStation, "tag_origin", player);
                        GSCFunctions.PlayFXOnTagForClients(axisSiteFX, axisBack, "tag_origin", player);
                    }
                    else if (player.SessionTeam == "axis")
                    {
                        //Log.Debug("Playing axis fx");
                        GSCFunctions.PlayFXOnTagForClients(axisSiteFX, alliesStation, "tag_origin", player);
                        GSCFunctions.PlayFXOnTagForClients(axisSiteFX, alliesBack, "tag_origin", player);
                        GSCFunctions.PlayFXOnTagForClients(alliesSiteFX, axisStation, "tag_origin", player);
                        GSCFunctions.PlayFXOnTagForClients(alliesSiteFX, axisBack, "tag_origin", player);
                    }
                }
            });
        }
Ejemplo n.º 2
0
        private static void playStationFXForPlayer(Entity player)
        {
            Entity alliesBack = alliesStation.GetField <Entity>("back");
            Entity axisBack   = axisStation.GetField <Entity>("back");

            AfterDelay(200, () =>
            {
                if (player.SessionTeam == "allies")
                {
                    GSCFunctions.PlayFXOnTagForClients(alliesSiteFX, alliesStation, "tag_origin", player);
                    GSCFunctions.PlayFXOnTagForClients(alliesSiteFX, alliesBack, "tag_origin", player);
                    GSCFunctions.PlayFXOnTagForClients(axisSiteFX, axisStation, "tag_origin", player);
                    GSCFunctions.PlayFXOnTagForClients(axisSiteFX, axisBack, "tag_origin", player);
                }
                else if (player.SessionTeam == "axis")
                {
                    GSCFunctions.PlayFXOnTagForClients(axisSiteFX, alliesStation, "tag_origin", player);
                    GSCFunctions.PlayFXOnTagForClients(axisSiteFX, alliesBack, "tag_origin", player);
                    GSCFunctions.PlayFXOnTagForClients(alliesSiteFX, axisStation, "tag_origin", player);
                    GSCFunctions.PlayFXOnTagForClients(alliesSiteFX, axisBack, "tag_origin", player);
                }
            });
        }
Ejemplo n.º 3
0
 private static void nukeEffect(Entity nukeEnt, Entity player)
 {
     AfterDelay(50, () =>
                GSCFunctions.PlayFXOnTagForClients(effects[1], nukeEnt, "tag_origin", player));
 }