Skip to content

[IDEA] Add Player Dropping/ed Live Grenade Events #395

@Xname7

Description

@Xname7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaThis is an idea to do

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions