MeleeChemicalInjectorComponent (#2645)

* MeleeWeaponComponent OnHittingEntities event

* MeleeChemicalInjectorComponent

* Moves melee onhit action to EventBus

* serialization fix

* prototype fix

* redid chem transfer logic

* MeleeChemicalinjector uses ComponentMessages

* divide by 0 fix

* Update Resources/Prototypes/Entities/Objects/Weapons/Melee/spear.yml

Co-authored-by: py01 <pyronetics01@gmail.com>
Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
py01
2020-12-08 05:57:47 -06:00
committed by GitHub
parent 89e853d8e2
commit cc26218060
4 changed files with 96 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
- type: entity
- type: entity
name: spear
parent: BaseItem
id: Spear
@@ -7,22 +7,23 @@
- type: Sprite
sprite: Objects/Weapons/Melee/spear.rsi
state: spear
- type: MeleeWeapon
range: 1.5
arcwidth: 0
arc: spear
- type: Item
size: 24
sprite: Objects/Weapons/Melee/spear.rsi
prefix: inhand
- type: Construction
graph: spear
node: spear
- type: ItemCooldown
- type: MeleeChemicalInjector
- type: SolutionContainer
maxVol: 5
caps: AddTo, RemoveFrom
- type: Pourable
- type: MeleeWeaponAnimation
id: spear