//==============PREPARE_LISTS===============//

List <IPlayer> plyon = new List<IPlayer>();
List <IPlayer> plyoff = new List<IPlayer>();


 
//==============STARTUP_PREPARE===============//


public void OnStartup(){
foreach(IPlayer ply in Game.GetPlayers()){
if(ply.IsUser){
plyon.Add(ply);
IObjectTimerTrigger Timer0 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer0.SetIntervalTime(500);
Timer0.SetRepeatCount(0);
Timer0.SetScriptMethod("Charge");
Timer0.Trigger();
IObjectTimerTrigger Timer1 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer1.SetIntervalTime(200);
Timer1.SetRepeatCount(0);
Timer1.SetScriptMethod("Taunt1");
Timer1.Trigger();
IObjectTimerTrigger Timer2 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer2.SetIntervalTime(200);
Timer2.SetRepeatCount(0);
Timer2.SetScriptMethod("Taunt2");
Timer2.Trigger();
IObjectTimerTrigger Timer3 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer3.SetIntervalTime(200);
Timer3.SetRepeatCount(0);
Timer3.SetScriptMethod("Taunt3");
Timer3.Trigger();
IObjectTimerTrigger Timer4 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer4.SetIntervalTime(200);
Timer4.SetRepeatCount(0);
Timer4.SetScriptMethod("Taunt4");
Timer4.Trigger();
IObjectTimerTrigger Timer5 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer5.SetIntervalTime(200);
Timer5.SetRepeatCount(0);
Timer5.SetScriptMethod("Taunt5");
Timer5.Trigger();
IObjectTimerTrigger Timer6 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer6.SetIntervalTime(200);
Timer6.SetRepeatCount(0);
Timer6.SetScriptMethod("Taunt6");
Timer6.Trigger();
IObjectTimerTrigger Timer7 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer7.SetIntervalTime(200);
Timer7.SetRepeatCount(0);
Timer7.SetScriptMethod("Taunt7");
Timer7.Trigger();
IObjectTimerTrigger Timer8 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer8.SetIntervalTime(200);
Timer8.SetRepeatCount(0);
Timer8.SetScriptMethod("Taunt8");
Timer8.Trigger();
IObjectTimerTrigger Timer9 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer9.SetIntervalTime(200);
Timer9.SetRepeatCount(0);
Timer9.SetScriptMethod("Taunt9");
Timer9.Trigger();
IObjectTimerTrigger Timer10 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer10.SetIntervalTime(200);
Timer10.SetRepeatCount(0);
Timer10.SetScriptMethod("Taunt10");
Timer10.Trigger();
IObjectTimerTrigger Timer11 = (IObjectTimerTrigger)Game.CreateObject("TimerTrigger");
Timer11.SetIntervalTime(200);
Timer11.SetRepeatCount(0);
Timer11.SetScriptMethod("Taunt11");
Timer11.Trigger();
}
}
}


//==============PREPARE_TRIGGERS===============//

public void Taunt1(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
if(ply.IsWalking && ply.IsMeleeAttacking){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"GO !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}


public void Taunt2(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
if(ply.IsWalking && ply.IsBlocking){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"Help !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}


public void Taunt3(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
if(ply.IsWalking && ply.IsKicking){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"Get Outa Here !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}



public void Taunt4(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
if(ply.IsWalking && ply.IsManualAiming){
Game.PlayEffect("CFTXT",ply.GetWorldPosition(),"LookOut !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}




public void Taunt5(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
if(ply.IsWalking && ply.IsReloading){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"Reloading !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}



public void Taunt6(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
Vector2 Here = ply.GetWorldPosition();
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Melee && (ply.CurrentMeleeWeapon).WeaponItem == WeaponItem.KATANA){
Game.PlayEffect("CFTXT",Here,"Feel The Wrath Of The Katana !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Melee && (ply.CurrentMeleeWeapon).WeaponItem == WeaponItem.AXE){
Game.PlayEffect("CFTXT",Here,"I will Cut You Into Pieces !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Melee && (ply.CurrentMeleeWeapon).WeaponItem == WeaponItem.MACHETE){
Game.PlayEffect("CFTXT",Here,"Time To Die !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Rifle && (ply.CurrentPrimaryWeapon).WeaponItem == WeaponItem.SHOTGUN){
Game.PlayEffect("CFTXT",Here,"Time For Some Pump Action !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Rifle && (ply.CurrentPrimaryWeapon).WeaponItem == WeaponItem.SAWED_OFF){
Game.PlayEffect("CFTXT",Here,"Time To TakeOut The Trash !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Handgun && (ply.CurrentSecondaryWeapon).WeaponItem == WeaponItem.REVOLVER){
Game.PlayEffect("CFTXT",Here,"Get Ready For Some CowBoy-Style Action !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Handgun && (ply.CurrentSecondaryWeapon).WeaponItem == WeaponItem.MAGNUM){
Game.PlayEffect("CFTXT",Here,"Your Dead !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Rifle && (ply.CurrentPrimaryWeapon).WeaponItem == WeaponItem.BAZOOKA){
Game.PlayEffect("CFTXT",Here,"I Suggest You Run Now !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Rifle && (ply.CurrentPrimaryWeapon).WeaponItem == WeaponItem.SNIPER){
Game.PlayEffect("CFTXT",Here,"Time For Some Hunting !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Rifle && (ply.CurrentPrimaryWeapon).WeaponItem == WeaponItem.FLAMETHROWER){
Game.PlayEffect("CFTXT",Here,"SURPRISE !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsDrawingWeapon && ply.CurrentWeaponDrawn == WeaponItemType.Thrown && (ply.CurrentThrownItem).WeaponItem == WeaponItem.MOLOTOVS){
Game.PlayEffect("CFTXT",Here,"Burn Baby Burn !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}


public void Taunt7(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
if(ply.IsWalking && ply.IsFalling){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"WOOO !");
plyon.Remove(ply);
plyoff.Add(ply);
}
if(ply.IsWalking && ply.IsTakingCover){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"Shit");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}


public void Taunt8(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
foreach(IPlayer ply0 in Game.GetPlayers()){
if(ply.IsWalking && ply.IsIdle){
if(ply0.GetTeam() == PlayerTeam.Independent && ply0.GetUser() != ply.GetUser() || ply0.GetTeam() != ply.GetTeam()){
if(ply0.IsManualAiming || ply0.IsHipFiring){
if(ply0.CurrentWeaponDrawn == WeaponItemType.Rifle && (ply0.CurrentPrimaryWeapon).WeaponItem == WeaponItem.BAZOOKA && (ply.GetWorldPosition()-ply0.GetWorldPosition()).Length() <= 120){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"RPG !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}
}
}
}
}



public void Taunt9(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
IObject[] Obj = Game.GetObjectsByName(new string[]{
"WpnGrenadesThrown"});
foreach(IObject Object in Obj){
if((Object.GetWorldPosition()-ply.GetWorldPosition()).Length() <= 60 && ply.IsWalking && ply.IsIdle){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"GRENADE ! MOVE !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}
}



public void Taunt10(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
foreach(IPlayer ply0 in Game.GetPlayers()){
if(ply.IsWalking && ply.IsIdle){
if(ply0.GetTeam() == PlayerTeam.Independent && ply0.GetUser() != ply.GetUser() || ply0.GetTeam() != ply.GetTeam()){
if(ply0.IsManualAiming || ply0.IsHipFiring){
if(ply0.CurrentWeaponDrawn == WeaponItemType.Rifle && (ply0.CurrentPrimaryWeapon).WeaponItem == WeaponItem.SNIPER && (ply.GetWorldPosition()-ply0.GetWorldPosition()).Length() <= 150){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"SNIPER !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}
}
}
}
}


public void Taunt11(TriggerArgs args){
for (int i = plyon.Count-1;i>=0;i--){
IPlayer ply = plyon[i];
IObject[] Obj = Game.GetObjectsByName(new string[]{
"WpnMineThrown"});
foreach(IObject Object in Obj){
if((Object.GetWorldPosition()-ply.GetWorldPosition()).Length() <= 60 && ply.IsWalking && ply.IsIdle){
Vector2 Here = ply.GetWorldPosition();
Game.PlayEffect("CFTXT",Here,"Be Careful There is a Mine nearby !");
plyon.Remove(ply);
plyoff.Add(ply);
}
}
}
}





public void Charge(TriggerArgs args){
for (int i = plyoff.Count-1;i>=0;i--){
IPlayer ply = plyoff[i];
if(!ply.IsWalking && ply.IsIdle){
plyoff.Remove(ply);
plyon.Add(ply);
}
}
}