public NPCBasicMover(NPCDataAnimator animator, int range, float damage, float attacksPerSecond, string subtypeId, float useForce) { this.animator = animator; this.useForce = useForce; this.range = range; this.damage = damage; this.attacksPerSecond = attacksPerSecond; }
public static NPCBasicMover getElite(IMySlimBlock npc) { var npcDataAnimator = new NPCDataAnimator(npc.CubeGrid, npc, 12f); var eliteMover = new NPCBasicMover(npcDataAnimator, 180, 4f, 0.5f, "NPC_Elite", 9000); npc.CubeGrid.Physics.Friction = 2f; return(eliteMover); }
public static NPCBasicMover getEngineer(IMySlimBlock npc) { var npcDataAnimator = new NPCDataAnimator(npc.CubeGrid, npc, 6f); var basicMover = new NPCBasicMover(npcDataAnimator, 120, 1f, 1f, "NPC_Basic", 3000); npc.CubeGrid.Physics.Friction = 1.5f; return(basicMover); }