-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add combat hypospray and cartridge prototypes
- Loading branch information
1 parent
f5e5f94
commit 42c331a
Showing
10 changed files
with
144 additions
and
1 deletion.
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
Resources/Prototypes/_DV/Entities/Objects/Specific/Medical/hypospray.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
- type: entity | ||
id: CombatHypospray | ||
name: combat hypospray | ||
parent: [BaseItem, BaseRestrictedContraband] | ||
description: A small hypospray intended for combat and rapid response teams, uses pre-built cartridges | ||
components: | ||
- type: Sprite | ||
sprite: _DV/Objects/Specific/Medical/combathypo.rsi | ||
state: hypo | ||
- type: Item | ||
sprite: _DV/Objects/Specific/Medical/combathypo.rsi | ||
- type: SolutionContainerManager | ||
solutions: | ||
hypospray: | ||
maxVol: 30 # Keep in sync with BaseEmptyHypoCartridge | ||
reagents: [] | ||
- type: ExaminableSolution | ||
solution: hypospray | ||
- type: Hypospray | ||
solutionName: hypospray | ||
transferAmount: 5 | ||
onlyAffectsMobs: false | ||
injectOnly: true | ||
- type: HyposprayBlockNonMobInjection | ||
- type: UseDelay | ||
delay: 0.5 | ||
- type: SolutionCartridgeReceiver | ||
cartridgeSlot: | ||
whitelist: | ||
tags: | ||
- HyposprayCartridge | ||
- type: ContainerContainer | ||
containers: | ||
cartridge-slot: !type:ContainerSlot {} | ||
|
||
- type: entity | ||
id: BaseEmptyHypoCartridge | ||
name: cartridge | ||
parent: [BaseItem, BaseRestrictedContraband] | ||
# TODO: Make these destructible | ||
components: | ||
- type: Damageable | ||
damageContainer: Inorganic | ||
damageModifierSet: Glass | ||
- type: Destructible | ||
thresholds: | ||
- trigger: !type:DamageTrigger | ||
damage: 5 | ||
behaviors: | ||
- !type:PlaySoundBehavior | ||
sound: | ||
collection: GlassBreak | ||
params: | ||
volume: -4 | ||
- !type:SpillBehavior | ||
solution: cartridge | ||
- !type:SpawnEntitiesBehavior | ||
spawn: | ||
ShardGlass: | ||
min: 1 | ||
max: 1 | ||
transferForensics: true | ||
- !type:DoActsBehavior | ||
acts: ["Destruction"] | ||
- type: DamageOnLand | ||
damage: | ||
types: | ||
Blunt: 10 # glass resistance set reduces damage. Need to land twice (w/o hitting wall) | ||
- type: DamageOtherOnHit | ||
damage: | ||
types: | ||
Blunt: 5 | ||
- type: DamageOnHighSpeedImpact | ||
minimumSpeed: 2 | ||
damage: | ||
types: | ||
Blunt: 5 | ||
- type: SolutionContainerManager | ||
solutions: | ||
cartridge: | ||
maxVol: 30 # Keep in sync with the CombatHypospray | ||
reagents: [] | ||
- type: Tag | ||
tags: | ||
- HyposprayCartridge | ||
- type: Drink # So we can view how much is IN the cartridge | ||
solution: cartridge | ||
- type: BlockDrinking # So we can stop people drinking the cartridge | ||
- type: Sprite | ||
sprite: Objects/Specific/Chemistry/bottle.rsi | ||
layers: | ||
- state: bottle-1 | ||
- state: bottle-1-1 | ||
map: ["enum.SolutionContainerLayers.Fill"] | ||
visible: false | ||
- type: ExaminableSolution | ||
solution: cartridge | ||
- type: SolutionItemStatus | ||
solution: cartridge | ||
- type: SolutionContainerVisuals | ||
maxFillLevels: 6 | ||
fillBaseName: bottle-1- | ||
- type: Item | ||
size: Tiny | ||
sprite: Objects/Specific/Chemistry/bottle.rsi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+602 Bytes
Resources/Textures/_DV/Objects/Specific/Medical/combathypo.rsi/borghypo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+517 Bytes
Resources/Textures/_DV/Objects/Specific/Medical/combathypo.rsi/borghypo_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+665 Bytes
Resources/Textures/_DV/Objects/Specific/Medical/combathypo.rsi/combat_hypo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+293 Bytes
Resources/Textures/_DV/Objects/Specific/Medical/combathypo.rsi/equipped-BELT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+429 Bytes
Resources/Textures/_DV/Objects/Specific/Medical/combathypo.rsi/hypo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+319 Bytes
Resources/Textures/_DV/Objects/Specific/Medical/combathypo.rsi/inhand-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+319 Bytes
Resources/Textures/_DV/Objects/Specific/Medical/combathypo.rsi/inhand-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
Resources/Textures/_DV/Objects/Specific/Medical/combathypo.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"version": 1, | ||
"license": "CC-BY-SA-3.0", | ||
"copyright": "Taken from vgstation at commit https://github.com/vgstation-coders/vgstation13/commit/1cdfb0230cc96d0ba751fa002d04f8aa2f25ad7d", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "borghypo" | ||
}, | ||
{ | ||
"name": "borghypo_s" | ||
}, | ||
{ | ||
"name": "combat_hypo" | ||
}, | ||
{ | ||
"name": "hypo" | ||
}, | ||
{ | ||
"name": "inhand-left", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "inhand-right", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "equipped-BELT", | ||
"directions": 4 | ||
} | ||
] | ||
} |