LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Add Player Dropping/ed Live Grenade Events

Open Xname7 opened this issue 7 months ago • 0 comments

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.

Xname7 avatar Apr 29 '26 09:04 Xname7