Add debug hitscan weapon (#41658)

* debug gun

* predict
This commit is contained in:
slarticodefast 2025-12-01 19:03:39 +01:00 committed by GitHub
parent 9e85c2fdcb
commit 9e32f1e92b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 73 additions and 1 deletions

View file

@ -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

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

View file

@ -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"
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B