ES_PRC8/_module/nss/goodflag.nss
Jaysyn904 08e84b4e71 Initial upload
Initial upload.
2023-11-14 12:09:02 -05:00

45 lines
826 B
Plaintext

// 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());
}