From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Mon, 1 Dec 2025 18:03:39 +0000 (+0100) Subject: Add debug hitscan weapon (#41658) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=9e32f1e92b19380564c42cb33ec32c93cd868438;p=space-station-14.git Add debug hitscan weapon (#41658) * debug gun * predict --- diff --git a/Resources/Prototypes/Entities/Debugging/debug_sweps.yml b/Resources/Prototypes/Entities/Debugging/debug_sweps.yml index a71548ebee..6a8c8a5d02 100644 --- a/Resources/Prototypes/Entities/Debugging/debug_sweps.yml +++ b/Resources/Prototypes/Entities/Debugging/debug_sweps.yml @@ -1,3 +1,34 @@ +- type: entity + name: bang hitscan 1dmg + parent: BaseWeaponBatterySmall + id: WeaponHitscanDebug + description: pew pew! + suffix: DEBUG + components: + - type: Sprite + sprite: Objects/Weapons/Guns/Pistols/debug.rsi + state: icon + - type: Clothing + sprite: Objects/Weapons/Guns/Pistols/debug.rsi + - type: Gun + fireRate: 10 + availableModes: + - SemiAuto + - FullAuto + - type: BatteryAmmoProvider + proto: DebugLaser + fireCost: 1 + - type: PredictedBatterySelfRecharger + autoRechargeRate: 1000 + +- type: entity + name: bang hitscan gibber + parent: WeaponHitscanDebug + id: WeaponHitscanDebugGib + components: + - type: BatteryAmmoProvider + proto: DebugLaserGib + - type: entity name: bang, ded parent: BaseWeaponPistol diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/hitscan.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/hitscan.yml index bc3e8f383c..ef5ee8ea82 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/hitscan.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/hitscan.yml @@ -158,3 +158,35 @@ impactFlash: sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi state: impact_beam_heavy2 + +- type: entity + parent: BasicHitscan + id: DebugLaser + suffix: DEBUG + categories: [ HideSpawnMenu ] + components: + - type: HitscanBasicDamage + damage: + types: + Heat: 1 + - type: HitscanBasicVisuals + muzzleFlash: + sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi + state: muzzle_debug + travelFlash: + sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi + state: debug + impactFlash: + sprite: Objects/Weapons/Guns/Projectiles/projectiles.rsi + state: impact_debug + +- type: entity + parent: DebugLaser + id: DebugLaserGib + suffix: DEBUG + categories: [ HideSpawnMenu ] + components: + - type: HitscanBasicDamage + damage: + types: + Blunt: 20000 diff --git a/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/debug.png b/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/debug.png new file mode 100644 index 0000000000..6ffc1464f5 Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/debug.png differ diff --git a/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/impact_debug.png b/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/impact_debug.png new file mode 100644 index 0000000000..94efda5539 Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/impact_debug.png differ diff --git a/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/meta.json b/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/meta.json index 0a835a14d7..2c1c23dec9 100644 --- a/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/meta.json +++ b/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/meta.json @@ -1,7 +1,7 @@ { "version": 1, "license": "CC-BY-SA-3.0", - "copyright": "Taken and modified from cev-eris at https://github.com/discordia-space/CEV-Eris/tree/7ff8f28ea4de734f3cc3cb70f2d4e4b4263a988d", + "copyright": "Taken and modified from cev-eris at https://github.com/discordia-space/CEV-Eris/tree/7ff8f28ea4de734f3cc3cb70f2d4e4b4263a988d, debug sprites by slarticodefast(GitHub)", "size": { "x": 32, "y": 32 @@ -10,6 +10,15 @@ { "name": "bolt" }, + { + "name": "muzzle_debug" + }, + { + "name": "debug" + }, + { + "name": "impact_debug" + }, { "name": "muzzle_bullet" }, diff --git a/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/muzzle_debug.png b/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/muzzle_debug.png new file mode 100644 index 0000000000..3a5ebd79d9 Binary files /dev/null and b/Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/muzzle_debug.png differ