license: "CC0-1.0"
copyright: "Taken from ScreamStudio on freesound.org"
source: "https://freesound.org/people/ScreamStudio/sounds/392617/"
-
+
- files: ["pop.ogg"]
license: "CC0-1.0"
copyright: "Taken from 0ne_one111yt on freesound.org"
source: "https://freesound.org/people/0ne_one111yt/sounds/478213/"
+
+- files: ["utilityknifeopen.ogg, utilityknifeclose.ogg"]
+ license: "CC0-1.0"
+ copyright: "Taken from FilmOrbit on freesound.org"
+ source: "https://freesound.org/s/554299/"
- ItemMask
restitution: 0.3
friction: 0.2
+
+- type: entity
+ name: utility knife
+ parent: BaseItem
+ id: UtilityKnife
+ description: A knife with a retractable, tiny blade. Useful as a box cutter and letter opener, among other things.
+ components:
+ - type: Appearance
+ - type: ComponentToggler
+ components:
+ - type: Execution
+ doAfterDuration: 4.0
+ - type: Sharp
+ - type: Utensil
+ types:
+ - Knife
+ - type: Tool
+ qualities:
+ - Slicing
+ useSound:
+ path: /Audio/Items/Culinary/chop.ogg
+ - type: Item
+ size: Tiny
+ sprite: Objects/Weapons/Melee/utility_knife.rsi
+ - type: ItemToggle
+ soundActivate:
+ path: /Audio/Weapons/utilityknifeopen.ogg
+ soundDeactivate:
+ path: /Audio/Weapons/utilityknifeclose.ogg
+ - type: ItemToggleMeleeWeapon
+ activatedSoundOnHit:
+ path: /Audio/Weapons/bladeslice.ogg
+ activatedDamage:
+ types:
+ Slash: 4
+ - type: MeleeWeapon
+ wideAnimationRotation: -135
+ attackRate: 1
+ damage:
+ types:
+ Blunt: 1
+ - type: PhysicalComposition
+ materialComposition:
+ Steel: 50
+ - type: Sprite
+ sprite: Objects/Weapons/Melee/utility_knife.rsi
+ layers:
+ - state: utility_knife_handle
+ - state: utility_knife_blade
+ visible: false
+ map: [ "blade" ]
+ - type: Tag
+ tags:
+ - Knife
+ - UtilityKnife
+ - type: ToggleableVisuals
+ spriteLayer: blade
+ inhandVisuals:
+ left:
+ - state: inhand-left-blade
+ right:
+ - state: inhand-right-blade
+ - type: UseDelay
+ delay: 0.2
--- /dev/null
+{
+ "version": 1,
+ "license": "CC-BY-SA-3.0",
+ "copyright": "Icon sprited for SS14 by GitHub user sudobeans. Inhand sprites sprited for SS14 by Github user TiniestShark.",
+ "size": {
+ "x": 32,
+ "y": 32
+ },
+ "states": [
+ {
+ "name": "icon"
+ },
+ {
+ "name": "utility_knife_blade"
+ },
+ {
+ "name": "utility_knife_handle"
+ },
+ {
+ "name": "inhand-left",
+ "directions": 4
+ },
+ {
+ "name": "inhand-right",
+ "directions": 4
+ },
+ {
+ "name": "inhand-right-blade",
+ "directions": 4
+ },
+ {
+ "name": "inhand-left-blade",
+ "directions": 4
+ }
+ ]
+}