From 9e32f1e92b19380564c42cb33ec32c93cd868438 Mon Sep 17 00:00:00 2001 From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:03:39 +0100 Subject: [PATCH] Add debug hitscan weapon (#41658) * debug gun * predict --- .../Entities/Debugging/debug_sweps.yml | 31 +++++++++++++++++ .../Weapons/Guns/Projectiles/hitscan.yml | 32 ++++++++++++++++++ .../Projectiles/projectiles.rsi/debug.png | Bin 0 -> 104 bytes .../projectiles.rsi/impact_debug.png | Bin 0 -> 126 bytes .../Projectiles/projectiles.rsi/meta.json | 11 +++++- .../projectiles.rsi/muzzle_debug.png | Bin 0 -> 129 bytes 6 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/debug.png create mode 100644 Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/impact_debug.png create mode 100644 Resources/Textures/Objects/Weapons/Guns/Projectiles/projectiles.rsi/muzzle_debug.png 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 0000000000000000000000000000000000000000..6ffc1464f521e5c1ef4385abc8f3e9452306bde4 GIT binary patch literal 104 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}N}eu`ArY-_ z&lxf@FmNz0xM{!T*bPM$1xAKbX_Ir+85-{MsZM5MI8$MK0jQe6)78&qol`;+0Mqds AmjD0& literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..94efda5539b9efb135537a37b68e5ef1d279d9e0 GIT binary patch literal 126 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}7M?DSArY-_ zuN>rMaNuBa-12|kPN6@AYVS-K_?uW5u7{ePJNK;j&A-@2rmY1Mo;?MQjj#PV7$(SR XE$3phS3l1KG=ss@)z4*}Q$iB}V3j73 literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..3a5ebd79d9779e6f40bb2007f9742a304b2e2fcd GIT binary patch literal 129 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R})}AhoArY-_ zuWaOHFyJ__;lls=W&9UJwFLWhQXCpoa>Z35eHQC4fn=Z|;UODHfU>^UE2f|*H a+G5{{b8*EPh1~-h!{F)a=d#Wzp$PzwpeBX@ literal 0 HcmV?d00001 -- 2.52.0