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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user