--
-- unit-terran-marine
--


DefineAnimations("animations-terran-marine-death", {
  Death = {"unbreakable begin", "frame 0", "wait 50", "frame 1", "wait 50",
    "frame 2", "wait 50", "unbreakable end", "wait 1", },
})

DefineUnitType("unit-terran-marine-death", { Name = "Dead Marine",
  Image = image_241_terran_tmadeath,
  Animations = "animations-terran-marine-death", Icon = "icon-terran-marine",
  NumDirections = 1,
  HitPoints = 255,
  DrawLevel = 30,
  TileSize = {2, 2}, BoxSize = {31, 31},
  SightRange = 4,
  BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  Priority = 0,
  Type = "land",
  Vanishes = true,
  Sounds = {} } )



DefineAnimations("animations-terran-marine", {
  Still = {
    "label 70FD", "frame 68",
    "label 7100", "random-wait 63 75", "random-goto 10 7124",
      "random-goto 50 710E", "goto 7100",
    "label 710E", "frame 85", "wait 1", "frame 102", "wait 1",
      "random-rotate 3", "wait 1", "frame 85", "wait 1", "goto 70FD",
    "label 7124", "frame 0", "wait 1", "frame 17", "wait 1", "frame 34",
      "random-goto 75 7170",
      "rotate -2", "wait 3", "rotate -2", "wait 3", "rotate -2", "wait 3",
      "rotate -2", "wait 3", "rotate -2", "wait 3", "wait 6",
      "rotate 2", "wait 3", "rotate 2", "wait 3", "rotate 2", "wait 3",
      "rotate 2", "wait 3", "rotate 2", "wait 3", "wait 6",
      "rotate -2", "wait 3", "rotate -2", "wait 3", "rotate -2", "wait 3",
      "goto 7172",
    "label 7170", "wait 13",
    "label 7172", "frame 17", "wait 1", "frame 0", "wait 1", "goto 70FD",
  },
  Move = {
    "unbreakable begin", "move 4", "frame 85", "wait 1", "move 4", "frame 102", "unbreakable end", "wait 1",
    "unbreakable begin", "move 4", "frame 119", "wait 1", "move 4", "frame 136", "unbreakable end", "wait 1",
    "unbreakable begin", "move 4", "frame 153", "wait 1", "move 4", "frame 170", "unbreakable end", "wait 1",
    "unbreakable begin", "move 4", "frame 187", "wait 1", "move 4", "frame 68", "unbreakable end", "wait 1",
    "unbreakable begin", "move 4", "frame 204", "wait 1", "move 4", "frame 85", "unbreakable end", "wait 1",
  },
--  StartAttack = {"frame 0", "wait 1", "frame 17", "wait 1", "frame 34",},
  Attack = {
    "wait 1", "unbreakable begin", "sound terran-marine-attack", "attack",
    "frame 51", "wait 1", "frame 34", "wait 1", "frame 51", "wait 1",
    "frame 34", "wait 1", "frame 51", "wait 1", "frame 34",
    "unbreakable end", "wait 1",
  },
--  EndAttack = {"frame 17", "wait 1", "frame 0", "wait 1", --[[goto 70FD]]},
  Death = {
    "unbreakable begin",
    "sound terran-marine-death", "exact-frame 221", "wait 2",
    "exact-frame 222", "wait 2", "exact-frame 223", "wait 2",
    "exact-frame 224", "wait 2", "exact-frame 225", "wait 2",
    "exact-frame 226", "wait 2", "exact-frame 227", "wait 2",
    "exact-frame 228", "wait 2", "unbreakable end", "wait 1",
  },
})

DefineUnitType("unit-terran-marine", {
  Animations = "animations-terran-marine", Icon = "icon-terran-marine",
  Speed = 10,
  DrawLevel = 40,
  -- TileSize = {2, 2}, BoxSize = {31, 31}, Offset = {0, -8}, BoxOffset = {0, -8}, PersonalSpace = {1, 1},
  Armor = 2, BasicDamage = 6, PiercingDamage = 2, Missile = "missile-none",
  AnnoyComputerFactor = 50,
  MaxAttackRange = 4*4,
  Priority = 60,
  Points = 50,
  Demand = 1,
  Corpse = "unit-terran-marine-death",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true,
  CanTargetAir = true,
  SelectableByRectangle = true,
  --[[Sounds = {
    "selected", "terran-marine-selected",
    "acknowledge", "terran-marine-acknowledge",
    "ready", "terran-marine-ready",
    "help", "terran-units-attacked",} ]]--
    
    } )

