- type: entity
  id: Scp999
  suffix: SCP-999
  parent: BaseScpFriendly
  components:
  - type: Sprite
    drawdepth: SmallMobs
    sprite: _Scp/Mobs/Scp/scp-999.rsi
    layers:
    - state: default
      map: [ "enum.DamageStateVisualLayers.Base", "enum.Scp999States.Default", "movement" ]
  - type: Item
    size: Huge
    sprite: _Scp/Mobs/Scp/scp-999.rsi
  - type: Clothing
    sprite: _Scp/Mobs/Scp/scp-999.rsi
    slots:
    - HEAD
  - type: CanEscapeInventory
  - type: MultiHandedItem
  - type: ItemRepickupCooldown # TODO: В описание сущноси добавить время до следующего репикана
    cooldown: 5
  - type: SpriteMovement
    movementLayers:
      movement:
        state: movement
    noMovementLayers:
      movement:
        state: default
  - type: NpcFactionMember
    factions:
    - SimpleNeutral # нужно что бы турели не били его т.к. 999 мирный
  - type: Scp
    class: Safe
  - type: ScpRestriction
    canBePulled: true
    canMobCollide: true
  - type: Scp999
    states:
      Default: default
      Wall: wall
      Rest: rest
    createJellySound:
      collection: desecration
  - type: VentCrawler
  - type: DamageStateVisuals
    states:
      Alive:
        Base: default
      Dead:
        Base: dead
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeCircle
          radius: 0.25
        density: 80
        mask:
        - SmallMobMask
        layer:
        - SmallMobLayer
      fix2:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.5,-0.5,0.5,0.5"
        mask:
        - None
        layer:
        - None
        density: 1000
  - type: MobThresholds
    thresholds:
      0: Alive
  - type: MovementSpeedModifier
    baseWalkSpeed: 2
    baseSprintSpeed: 4
  - type: FootstepModifier
    footstepSoundCollection:
      path: /Audio/Effects/Footsteps/slime1.ogg
      params:
        volume: 3
  - type: Damageable
    damageModifierSet: SCP-999
  - type: Body
    prototype: Human # TODO: Кастомное тело
  - type: InteractionPopup
    interactDelay: 0.5
    interactSuccessSpawn: EffectHearts
    interactSuccessSound:
      collection: HappyScp999
    successChance: 1
  - type: ScpAnnounceOnSpawn
    text: scp999-announce-on-spawn
    channels:
    - ScientificService
    - HeavyContainmentSecurityService
  - type: SleepEmitSound
    snore: /Audio/Voice/Misc/silly_snore.ogg
    interval: 10
  - type: RangedDamageSound
    soundGroups:
      Brute:
        collection:
          HurtScp999
      Burn:
        collection:
          HurtScp999
  - type: MeleeSound
    soundGroups:
      Brute:
        collection:
          HurtScp999
      Burn:
        collection:
          HurtScp999
  - type: EmitSoundRandomly
    sound:
      collection: IdleScp999
      params:
        maxDistance: 6
  - type: Puller
    needsHands: false
  - type: SmileSlime
    action: Scp999Affection
    soundSpecifier:
      collection: HappyScp999
    actionTime: 5
    affectionPopupText: "smile-affection-popup"
    damageSpecifier:
      groups:
        Burn: -45
        Brute: -45
        Toxin: -8
      types:
        Bloodloss: -25
    messages:
    - goodfeeling-artifact-1
    - goodfeeling-artifact-2
    - goodfeeling-artifact-3
    - goodfeeling-artifact-4
    - goodfeeling-artifact-5
    - goodfeeling-artifact-6
    - goodfeeling-artifact-7
    - goodfeeling-artifact-8
    - goodfeeling-artifact-9
    - goodfeeling-artifact-10
    - goodfeeling-artifact-11
    - goodfeeling-artifact-12
    - goodfeeling-artifact-13
    - goodfeeling-artifact-14
  - type: Speech
    speechSounds: Scp999Speech
    speechVerb: SmallMob
    allowedEmotes: [ 'Squeak' ]
  - type: Grammar
    attributes:
      proper: true
      gender: male
  - type: TypingIndicator
    proto: scp999
  - type: ReplacementAccent
    accent: mouse
  - type: Hunger
  - type: Reflect
    reflectProb: 0.2
    reflects:
    - Energy
    - NonEnergy
  - type: FootprintEmitter
    walkStepInterval: 0.3
    leftBareFootState:
    - dragging-1
    - dragging-2
    - dragging-3
    - dragging-4
    - dragging-5
    rightBareFootState:
    - dragging-1
    - dragging-2
    - dragging-3
    - dragging-4
    - dragging-5
  - type: ActionGrant
    actions:
    - Scp999Wallify
    - Scp999Rest
  - type: TTS
    voice: Neco
  - type: GuideHelp
    guides:
    - ScpResearch
    - ScpResearchAdvanced

- type: speechSounds
  id: Scp999Speech
  saySound:
    collection: IdleScp999
  askSound:
    collection: IdleScp999
  exclaimSound:
    collection: IdleScp999
