Exemplo n.º 1
0
 public static void CmdNPCTestSpawnJedi(G.Entity pent)
 {
     G.Entity[] spawn_targets = pent.RetrieveTargets();
     foreach (G.Entity ent in spawn_targets)
     {
         jedis.Add(G.SpawnNPC(possible_jedis[rnd.Next(possible_jedis.Length)], ent.origin, 180));
     }
 }
Exemplo n.º 2
0
 public static void CmdNPCTestKillJedi(G.Entity ent)
 {
     AIChat(string.Format("Killing ^4{1}{0} jedi NPCs from NPC Test Zone.", cc, jedis.Count));
     foreach (G.Entity jedi in jedis)
     {
         jedi.npc.Kill();
     }
     jedis.Clear();
 }
Exemplo n.º 3
0
 public static void CmdNPCTestKillSith(G.Entity ent)
 {
     AIChat(string.Format("Killing ^1{1}{0} sith NPCs from NPC Test Zone.", cc, siths.Count));
     foreach (G.Entity sith in siths)
     {
         sith.npc.Kill();
     }
     siths.Clear();
 }
Exemplo n.º 4
0
 public static void CmdTest3(G.Entity ent)
 {
     G.Entity activator = ent.activator;
     if (activator != null && activator.player != null)
     {
         AIChat(string.Format("{1}{0} activated ent test 3.", cc, activator.player.name));
     }
     else
     {
         AIChat("ERROR: Test 1 FAILED");
     }
 }
Exemplo n.º 5
0
 public static void CmdNPCTestKillAll(G.Entity ent)
 {
     AIChat(string.Format("Killing all ^3{1}{0} NPCs from NPC Test Zone.", cc, jedis.Count + siths.Count));
     foreach (G.Entity sith in siths)
     {
         sith.npc.Kill();
     }
     siths.Clear();
     foreach (G.Entity jedi in jedis)
     {
         jedi.npc.Kill();
     }
     jedis.Clear();
 }
Exemplo n.º 6
0
 public static void CmdMoveTest(G.Entity ent)
 {
     AIChat("test");
 }