Esempio 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));
     }
 }
Esempio 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();
 }
Esempio 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();
 }
Esempio 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");
     }
 }
Esempio 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();
 }
Esempio n. 6
0
 public static void CmdMoveTest(G.Entity ent)
 {
     AIChat("test");
 }