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
|
- Plastic
|
||||||
- Trash
|
- Trash
|
||||||
- Knife
|
- 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
|
- type: entity
|
||||||
parent: UtensilBase
|
parent: UtensilBase
|
||||||
|
|||||||
@@ -101,6 +101,17 @@
|
|||||||
state: shiv
|
state: shiv
|
||||||
- type: Item
|
- type: Item
|
||||||
heldPrefix: shiv
|
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
|
- type: entity
|
||||||
name: advanced scalpel
|
name: advanced scalpel
|
||||||
|
|||||||
@@ -49,6 +49,20 @@
|
|||||||
guides:
|
guides:
|
||||||
- Chef
|
- Chef
|
||||||
- FoodRecipes
|
- 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
|
- type: entity
|
||||||
name: butcher's cleaver
|
name: butcher's cleaver
|
||||||
@@ -76,6 +90,20 @@
|
|||||||
guides:
|
guides:
|
||||||
- Chef
|
- Chef
|
||||||
- FoodRecipes
|
- 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
|
- type: entity
|
||||||
name: combat knife
|
name: combat knife
|
||||||
@@ -117,7 +145,6 @@
|
|||||||
fixtures:
|
fixtures:
|
||||||
fix1:
|
fix1:
|
||||||
shape: !type:PolygonShape
|
shape: !type:PolygonShape
|
||||||
radius: 0.01
|
|
||||||
vertices:
|
vertices:
|
||||||
- -0.4,-0.2
|
- -0.4,-0.2
|
||||||
- -0.2,-0.4
|
- -0.2,-0.4
|
||||||
@@ -227,6 +254,20 @@
|
|||||||
sprite: Objects/Weapons/Melee/shiv.rsi
|
sprite: Objects/Weapons/Melee/shiv.rsi
|
||||||
- type: DisarmMalus
|
- type: DisarmMalus
|
||||||
malus: 0.225
|
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
|
- type: entity
|
||||||
name: reinforced shiv
|
name: reinforced shiv
|
||||||
|
|||||||
Reference in New Issue
Block a user