LabAPI
LabAPI copied to clipboard
[IDEA] Add Player Dropping/ed Live Grenade Events
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.