- type: entity
  id: RedShuttleMediumLaser
  parent: BasicHitscan
  categories: [ HideSpawnMenu ]
  components:
  - type: HitscanBasicRaycast
    maxDistance: 45.0
  - type: Projectile
    damage:
      types:
        Heat: 10
        Structural: 10
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle_laser
    travelFlash:
      sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: beam
    impactFlash:
      sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact_laser

# region Heavy Rifle
- type: entity
  id: BulletRifleTraceHeavySP
  parent: BulletTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: RadarBlip
    color: "#FF6A6A"
    scale: 0.3
    shape: Triangle
    requireInSpace: true
  - type: Projectile
    armorPenetration: -0.1
    damage:
      types:
        Piercing: 25
        Structural: 10
  - type: StaminaDamageOnCollide
    damage: 15
  - type: ProjectilePierce
    chance: 0.40
    deviation: 0.05
    pierceLevel: Metal
  - type: ProjectileRicochet
    chance: 0.30
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle
    travelFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: trace
    impactFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact
    bullet:
      sprite:
        sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
        state: sp

- type: entity
  id: BulletRifleTraceHeavyHP
  parent: BulletTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: RadarBlip
    color: "#FF6A6A"
    scale: 0.3
    shape: Triangle
    requireInSpace: true
  - type: Projectile
    armorPenetration: -0.75
    damage:
      types:
        Piercing: 30 # +30%
  - type: StaminaDamageOnCollide
    damage: 30
  - type: ProjectilePierce
    chance: 0.05
    deviation: 0.05
  - type: ProjectileRicochet
    chance: 0.15

- type: entity
  id: BulletRifleTraceHeavyFMJ
  parent: BulletTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: RadarBlip
    color: "#FF6A6A"
    scale: 0.3
    shape: Triangle
    requireInSpace: true
  - type: Projectile
    armorPenetration: 0.25
    damage:
      types:
        Piercing: 20 #- 30%
        Structural: 5
  - type: StaminaDamageOnCollide
    damage: 10
  - type: ProjectilePierce
    chance: 0.8
    deviation: 0.05
    pierceLevel: Metal
  - type: ProjectileRicochet
    chance: 0.80
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle
    travelFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: trace
    impactFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact
    bullet:
      sprite:
        sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
        state: fmj

- type: entity
  id: BulletRifleTraceHeavyPractice
  parent: BulletTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: RadarBlip
    color: "#FF6A6A"
    scale: 0.3
    shape: Triangle
    requireInSpace: true
  - type: Projectile
    damage:
      types:
        Blunt: 5
  - type: ProjectilePierce
    chance: 0.5
    deviation: 0.05
  - type: ProjectileRicochet
    chance: 0.8
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle
    travelFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: trace
    impactFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact
    bullet:
      sprite:
        sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
        state: practice

- type: entity
  id: BulletRifleHeavy127mm
  parent: BulletRifleTraceHeavyPractice
  categories: [ HideSpawnMenu ]
  components:
  - type: Projectile
    armorPenetration: 0.4
    damage:
      types:
        Piercing: 40
        Structural: 80
    penetrationThreshold: 360
    penetrationDamageTypeRequirement:
    - Structural
  - type: ProjectilePierce
    chance: 0.4
    deviation: 0.05
  - type: ProjectileRicochet
    chance: 0.4

- type: entity
  id: BulletRifleTraceHeavyAP
  parent: BulletTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: RadarBlip
    color: "#FF6A6A"
    scale: 0.3
    shape: Triangle
    requireInSpace: true
  - type: Projectile
    armorPenetration: 0.69
    damage:
      types:
        Piercing: 15 #- 40%
        Structural: 2
  - type: StaminaDamageOnCollide
    damage: 8
  - type: ProjectilePierce
    chance: 0.9
    deviation: 0.05
    pierceLevel: HardenedMetal
  - type: ProjectileRicochet
    chance: 0.3
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle
    travelFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: trace
    impactFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact
    bullet:
      sprite:
        sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
        state: ap

- type: entity
  id: BulletRifleTraceHeavyUranium
  parent: BulletTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: RadarBlip
    color: "#FF6A6A"
    scale: 0.3
    shape: Triangle
    requireInSpace: true
  - type: Projectile
    damage:
      types:
        Radiation: 10
        Piercing: 12
  - type: ProjectilePierce
    chance: 0.95
    deviation: 0.05
    pierceLevel: HardenedMetal
  - type: ProjectileRicochet
    chance: 0.80
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle
    travelFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: trace
    impactFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact
    bullet:
      sprite:
        sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
        state: uranium

# Rubber bullets
- type: entity
  id: BulletMagnumTraceRubber
  parent: BulletTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: StaminaDamageOnCollide
    damage: 20
  - type: Projectile
    armorPenetration: -0.99
    damage:
      types:
        Blunt: 5
  - type: ProjectilePierce
    chance: 0.05
    deviation: 0.05
    pierceLevel: Wood
  - type: ProjectileRicochet
    chance: 0.70
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle
    travelFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: trace
    impactFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact
    bullet:
      sprite:
        sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
        state: rubber

- type: entity
  id: BulletPistolTraceRubber
  parent: BulletTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: StaminaDamageOnCollide
    damage: 8.5
  - type: Projectile
    armorPenetration: -0.99
    damage:
      types:
        Blunt: 3
  - type: ProjectilePierce
    chance: 0.05
    deviation: 0.05
    pierceLevel: Wood
  - type: ProjectileRicochet
    chance: 0.6
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle
    travelFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: trace
    impactFlash:
      sprite: _Starlight/Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact
    bullet:
      sprite:
        sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
        state: rubber

- type: entity
  parent: BulletTrace
  id: XrayLaserBeam
  categories: [ HideSpawnMenu ]
  components:
  - type: HitscanReflect
    reflectiveType: None
  - type: ProjectilePierce
    chance: 0.99
    deviation: 0.005
    pierceLevel: Rock
  - type: Projectile
    damage:
      types:
        Heat: 15
        Radiation: 10
  - type: Sprite
    sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
    layers:
    - state: xray
      shader: unshaded
    rotation: 90
    noRot: false
  - type: HitscanBasicVisuals
    muzzleFlash:
      sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: muzzle_xray
    travelFlash:
      sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: xray
    impactFlash:
      sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
      state: impact_xray
    bullet:
      sprite:
        sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi
        state: xray

- type: entity
  id: AdvancedDisablerBolt
  parent: DisablerBolt
  components:
  - type: StaminaDamageOnCollide
    damage: 35

- type: entity
  id: PelletShotgunImprovisedSpreadTraceLarge
  parent: PelletShotgunImprovisedTrace
  categories: [ HideSpawnMenu ]
  components:
  - type: Projectile
    damage:
      types:
        Piercing: 3
        Slash: 3
        Structural: 5
  - type: ProjectilePierce
    chance: 0.05
  - type: ProjectileRicochet
    chance: 0.5
  - type: StaminaDamageOnCollide
    damage: 6
  - type: ProjectileSpread
    proto: PelletShotgunImprovisedSpreadTraceLarge
    count: 24
    spread: 50
