



// this function ripped from contest of champions
void ApplyFlagEffect( object oPlayer )
{
    int nTeam, nVisEffect;
    effect eFlagEffect;

//    nTeam = GetPlayerTeam(oPlayer);


//    if ( nTeam == TEAM_BLUE )
//    {
        nVisEffect = VFX_DUR_FLAG_BLUE;
//    }
//    else if ( nTeam == TEAM_RED )
//    {
//        nVisEffect = VFX_DUR_FLAG_RED;
//    }
//    else if ( nTeam == TEAM_GOLD )
//    {
//        nVisEffect = VFX_DUR_FLAG_PURPLE;
//    }
//    else if ( nTeam == TEAM_PURPLE )
//    {
//        nVisEffect = VFX_DUR_FLAG_GOLD;
//    }

    eFlagEffect = EffectVisualEffect(nVisEffect);
    eFlagEffect = SupernaturalEffect(eFlagEffect);

    ApplyEffectToObject(DURATION_TYPE_PERMANENT,eFlagEffect,oPlayer);
    PlaySound("as_mg_telepout1");
}


void main()
{

  ApplyFlagEffect(GetPCSpeaker());

}
