VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::PropSpec Struct Reference

#include <EntitySystem.hpp>

Public Attributes

std::string_view Model
Vector Origin {0.0f, 0.0f, 0.0f}
QAngle Angles {0.0f, 0.0f, 0.0f}
bool Solid = true
std::string_view Skin
float Scale = 1.0f
bool CastsShadow = true
EntityRef Owner
std::optional< PropGlow > Glow

Detailed Description

What EntitySystem::SpawnProp places.

Definition at line 31 of file EntitySystem.hpp.

Member Data Documentation

◆ Angles

QAngle VoltMod::PropSpec::Angles {0.0f, 0.0f, 0.0f}

Definition at line 35 of file EntitySystem.hpp.

◆ CastsShadow

bool VoltMod::PropSpec::CastsShadow = true

Definition at line 41 of file EntitySystem.hpp.

◆ Glow

std::optional<PropGlow> VoltMod::PropSpec::Glow

Definition at line 44 of file EntitySystem.hpp.

◆ Model

std::string_view VoltMod::PropSpec::Model

Definition at line 33 of file EntitySystem.hpp.

◆ Origin

Vector VoltMod::PropSpec::Origin {0.0f, 0.0f, 0.0f}

Definition at line 34 of file EntitySystem.hpp.

◆ Owner

EntityRef VoltMod::PropSpec::Owner

Set before it spawns, so a trace with TraceOptions::IgnoreOwnedBy passes through it.

Definition at line 43 of file EntitySystem.hpp.

◆ Scale

float VoltMod::PropSpec::Scale = 1.0f

Definition at line 40 of file EntitySystem.hpp.

◆ Skin

std::string_view VoltMod::PropSpec::Skin

Material group; empty keeps the model's default.

Definition at line 39 of file EntitySystem.hpp.

◆ Solid

bool VoltMod::PropSpec::Solid = true

False blocks nothing, bullets and traces included.

Definition at line 37 of file EntitySystem.hpp.


The documentation for this struct was generated from the following file: