Goal Description
Add events that are fired when player dies while holding an active grenade. These events should allow cancellation of the "throw" or modification of the resulting projectile’s properties.
The relevant logic resides in InventorySystem.Items.ThrowableProjectiles.ThrowableItem::OnRemoved() method.
Cancellation of -ing event should prevent both creation of the ThrownProjectile and destruction of the Pickup.
Notes
PlayerDroppingLiveGrenadeEventArgs should implement both IPlayerEvent and IPickupEvent and maybe contain mutable Vector3 Velocity property.
PlayerDroppedLiveGrenadeEventArgs should implement IPlayerEvent and IProjectileEvent.
Goal Description
Add events that are fired when player dies while holding an active grenade. These events should allow cancellation of the "throw" or modification of the resulting projectile’s properties.
The relevant logic resides in
InventorySystem.Items.ThrowableProjectiles.ThrowableItem::OnRemoved()method.Cancellation of
-ingevent should prevent both creation of theThrownProjectileand destruction of thePickup.Notes
PlayerDroppingLiveGrenadeEventArgsshould implement bothIPlayerEventandIPickupEventand maybe contain mutableVector3 Velocityproperty.PlayerDroppedLiveGrenadeEventArgsshould implementIPlayerEventandIProjectileEvent.