- type: job
  parent: CMJobBase
  id: CMMarineRaiderLeader
  name: rmc-job-name-marine-raider-leader
  description: rmc-ghost-role-information-sof-description
  playTimeTracker: CMJobMarineRaiderLeader
  ranks:
    RMCRankGunnerySergeant: [ ]
  startingGear: RMCGearMarineRaiderLeader
  icon: RMCJobIconMarineRaider
  joinNotifyCrew: false
  accessGroups:
  - ShipMasterAccess
  spawnMenuRoleName: MARSOC Raider Team Leader
  special:
  - !type:AddComponentSpecial
    components:
    - type: Skills
      skills:
        RMCSkillCqc: 5
        RMCSkillFireman: 5
        RMCSkillEngineer: 2
        RMCSkillConstruction: 2
        RMCSkillFirearms: 2
        RMCSkillLeadership: 1
        RMCSkillMedical: 2
        RMCSkillMeleeWeapons: 1
        RMCSkillEndurance: 5
        RMCSkillJtac: 1
    - type: JobPrefix
      prefix: rmc-job-prefix-marine-raider-leader
    - type: DemoSpecWhitelist
    - type: GrenadeSpecWhitelist
    - type: ScoutWhitelist
    - type: SniperWhitelist
    - type: PyroWhitelist
    - type: MarineOrders
      moveOrderSoundMale:
        collection: AU14MaleMoveOrder
      moveOrderSoundFemale:
        collection: AU14FemaleMoveOrder
      focusOrderSoundMale:
        collection: AU14MaleFocusOrder
      focusOrderSoundFemale:
        collection: AU14FemaleFocusOrder
      holdOrderSoundMale:
        collection: AU14MaleHoldOrder
      holdOrderSoundFemale:
        collection: AU14FemaleHoldOrder
    - type: SquadLeader
      icon:
        sprite: _RMC14/Interface/cm_job_icons.rsi
        state: hudsquad_soctl_a
    - type: RMCPointing
  hidden: true

- type: entity
  id: RMCRandomHumanoidMarineRaiderLead
  name: DEATHSQUAD marine raider team leader ghost role
  suffix: Role
  components:
  - type: Sprite
    sprite: _RMC14/Markers/landmarks.rsi
    state: unmc_spawn
  - type: RandomHumanoidSpawner
    settings: RMCMarineRaiderLeader

- type: randomHumanoidSettings
  parent: RMCEventHumanoid
  id: RMCMarineRaiderLeader
  components:
  - type: GhostRole
    name: rmc-job-name-marine-raider-leader
    description: rmc-ghost-role-information-sof-description
    rules: rmc-ghost-role-information-sof-rules
    reregister: false
    job: CMMarineRaiderLeader
    raffle:
      settings: short
    requirements:
    - !type:RoleTimeRequirement
      role: CMJobSquadLeader
      time: 18000 # 5 Hours
  - type: GhostRoleApplySpecial
    squad: SquadSOF

- type: startingGear
  id: RMCGearMarineRaiderLeader
  equipment:
    head: RMCArmorHelmetMARSOC
    mask: RMCMaskBalaclavaMARSOC
    ears: RMCHeadsetMARSOC
    jumpsuit: RMCJumpsuitMarsocWebbingBuckshot
    outerClothing: RMCArmorMARSOCXM40
    gloves: CMHandsBlackMarine
    shoes: CMBootsBlackFilled
    suitstorage: RMCWeaponRifleXM40
    id: RMCDogtagMarineRaiderLeader
    belt: RMCWeaponShotgunXM38Filled
    back: RMCSatchelMARSOC
    pocket1: RMCPouchMedicalSocMarineRaiderFill # TODO RMC14
    pocket2: RMCPouchToolsSocMarineRaiderFill
  storage:
    back:
    - RMCVisorNightVision # TODO RMC14

- type: playTimeTracker
  id: CMJobMarineRaiderLeader

- type: jobIcon
  parent: CMJobIconBase
  id: RMCJobIconMarineRaiderLeader
  icon:
    sprite: _RMC14/Interface/cm_job_icons.rsi
    state: hudsquad_soctl

- type: entity
  parent: CMIDCardStandardDogtag
  id: RMCDogtagMarineRaiderLeader
  name: Marine Raider Team Leader's dogtags
  components:
  - type: PresetIdCard
    job: CMMarineRaiderLeader

- type: entity
  parent: [ RMCIDCardStandardDogtagHidden, RMCDogtagMarineRaiderLeader ]
  id: RMCDogtagMarineRaiderLeaderHidden
  categories: [ HideSpawnMenu ]
