Improve hitboxes for knives and shivs to better match their sprites (#39100)

* update hitbox for kitchen knife and butcher's cleaver

* update hitbox for the 4 glass type shivs

* update hitbox for the medical shiv

* Update the hitbox for the plastic knife

* review

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
rlebell33
2025-11-22 13:13:35 -06:00
committed by GitHub
parent 7672076b43
commit f38a322912
3 changed files with 64 additions and 1 deletions

View File

@@ -130,6 +130,17 @@
- Plastic
- Trash
- Knife
- type: Fixtures
fixtures:
fix1:
shape: !type:PhysShapeAabb
bounds: "-0.1,-0.375,0.1,0.375"
density: 20 # derived from base_item
mask:
- ItemMask
restitution: 0.3
friction: 0.2
- type: entity
parent: UtensilBase

View File

@@ -101,6 +101,17 @@
state: shiv
- type: Item
heldPrefix: shiv
- type: Fixtures
fixtures:
fix1:
shape: !type:PhysShapeAabb
bounds: "-0.375,-0.15,0.35,0.12"
density: 20 # derived from base_item
mask:
- ItemMask
restitution: 0.3
friction: 0.2
- type: entity
name: advanced scalpel

View File

@@ -49,6 +49,20 @@
guides:
- Chef
- FoodRecipes
- type: Fixtures
fixtures:
fix1:
shape: !type:PolygonShape
vertices:
- -0.475,-0.225
- -0.225,-0.475
- 0.525,0.275
- 0.275,0.525
density: 20 # derived from base_item
mask:
- ItemMask
restitution: 0.3
friction: 0.2
- type: entity
name: butcher's cleaver
@@ -76,6 +90,20 @@
guides:
- Chef
- FoodRecipes
- type: Fixtures
fixtures:
fix1:
shape: !type:PolygonShape
vertices:
- -0.58,-0.12
- -0.34,-0.55
- 0.6,-0.075
- 0.375,0.375
density: 20 # derived from base_item
mask:
- ItemMask
restitution: 0.3
friction: 0.2
- type: entity
name: combat knife
@@ -117,7 +145,6 @@
fixtures:
fix1:
shape: !type:PolygonShape
radius: 0.01
vertices:
- -0.4,-0.2
- -0.2,-0.4
@@ -227,6 +254,20 @@
sprite: Objects/Weapons/Melee/shiv.rsi
- type: DisarmMalus
malus: 0.225
- type: Fixtures
fixtures:
fix1:
shape: !type:PolygonShape
vertices:
- -0.365,-0.265
- 0.077,-0.45
- 0.364,0.323
- -0.0735,0.49
density: 20 # derived from base_item
mask:
- ItemMask
restitution: 0.3
friction: 0.2
- type: entity
name: reinforced shiv