AmmoBarrel class
#include <Jazz2/Actors/Solid/AmmoBarrel.h>
Ammo barrel.
A wooden barrel that bursts when broken by a shot, TNT or a charged player, scattering ammunition for a single weapon type. If no contents are specified, it yields a random handful of ammo for weapons the players already carry.
Base classes
- class GenericContainer
- Base class of an item container.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- AmmoBarrel()
- Creates a new instance.
Public functions
- auto OnHandleCollision(ActorBase* other) -> bool override
- Called when the object collides with another object.
Protected functions
- auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
- Called when the object is created and activated.
- auto OnPerish(ActorBase* collider) -> bool override
- Called when the object has no health left and should perish.