43 CEntityInstance*
_e =
nullptr;
55 explicit operator bool() const noexcept {
return _e !=
nullptr; }
58 CEntityInstance*
Raw() const noexcept {
return _e; }
78#include <VoltMod/Schema/Generated/Wrappers/Entity.inc>
87 void Teleport(std::optional<Vector> origin, std::optional<QAngle> angles, std::optional<Vector> velocity)
const;
98 void AcceptInput(std::string_view input, std::string_view value = {},
const Entity& activator = {})
const;
109 void SetModel(std::string_view path)
const;
114 void Follow(
const Entity& parent,
bool copyBones)
const;
124 void SetVisible(
bool visible, uint8_t alpha = 0)
const;
127 void PlayAnimation(std::string_view animation, std::string_view idle = {})
const;
139 void SetBodygroup(std::string_view group,
int value)
const;
145 void SetParent(
const Entity& parent, std::string_view attachment = {})
const;
153 void EmitSound(std::string_view soundEvent,
float volume = 1.0f)
const;
154 void EmitSound(std::string_view soundEvent, IRecipientFilter& recipients,
float volume = 1.0f)
const;
156 void EmitSoundTo(std::string_view soundEvent,
int slot,
float volume = 1.0f)
const;
158 void StopSound(std::string_view soundEvent)
const;
runtime.Entities: finds and creates entities. Everything it returns is valid for this frame only; see...
std::optional< WeaponData > FindWeaponData() const
Entity(EntitySystem &entities, CEntityInstance *raw) noexcept
Entity & operator=(const Entity &)=delete
void SetParent(const Entity &parent, std::string_view attachment={}) const
void SetRender(Schema::RenderMode_t mode, Color color) const
void SetPlaybackRate(float rate) const
void SetModel(std::string_view path) const
void SetMoveType(Schema::MoveType_t type) const
void SetVisible(bool visible, uint8_t alpha=0) const
void RemoveAfter(float seconds) const
std::string_view ClassName() const
void Follow(const Entity &parent, bool copyBones) const
void AcceptInput(std::string_view input, std::string_view value={}, const Entity &activator={}) const
void EmitSound(std::string_view soundEvent, float volume=1.0f) const
void LoopAnimation(std::string_view animation) const
void EmitSoundTo(std::string_view soundEvent, int slot, float volume=1.0f) const
void Spawn(KeyValues &values) const
void PlayAnimation(std::string_view animation, std::string_view idle={}) const
void SetBodygroup(std::string_view group, int value) const
void Teleport(std::optional< Vector > origin, std::optional< QAngle > angles, std::optional< Vector > velocity) const
void StopEffect(bool immediately) const
Entity(const Entity &)=default
void SetScale(float scale) const
void StopSound(std::string_view soundEvent) const
CEntityInstance * Raw() const noexcept
void SetSkin(int skin) const
Schema::MoveType_t MoveType() const
Spawn keyvalues such as "origin", "spawnflags" or "effect_name".
A player's body: health, armor, movement, aim, weapons. The engine replaces it on every spawn; the Co...
Schema::CSWeaponType Type
Schema::gear_slot_t GearSlot
std::string_view BaseName