swiftlys2/docs/api/releases/features/ai/

Entity Data

versions
Counter-Strike 2›CBarnLight

CBarnLight

entity data
designer name: light_barn
Members (71)
enabled:boolean
colormode:int
color:color32
colortemperature:float
brightness:float
brightnessscale:float
directlight:int
bakedshadowindex:int
light_path_uniqueid:int
light_map_uniqueid:int
luminaire_shape:int
luminaire_size:float
luminaire_anisotropy:float
light_style:hscript
lightcookie:variant
shape:float
soft_x:float
soft_y:float
skirt:float
skirt_near:float
size_params:vector
range:float
shear:vector
bakespeculartocubemaps:int
bakespeculartocubemaps_size:vector
bakespeculartocubemaps_scale:float
castshadows:int
shadowmapsize:int
shadowpriority:int
contactshadow:boolean
forceshadowsenabled:boolean
bouncelight:int
bouncescale:float
minroughness:float
altcolor:vector
altcolorbrightness:float
fog:int
fogstrength:float
fogscale:float
fogshadows:int
fade_size_start:float
fade_size_end:float
shadowfade_size_start:float
shadowfade_size_end:float
precomputedfieldsvalid:boolean
precomputedboundsmins:classptr
precomputedboundsmaxs:classptr
precomputedobborigin:classptr
precomputedobbangles:typeunknown
precomputedobbextent:vector
precomputedsubfrusta:int
precomputedobborigin0:classptr
precomputedobbangles0:typeunknown
precomputedobbextent0:vector
precomputedobborigin1:classptr
precomputedobbangles1:typeunknown
precomputedobbextent1:vector
precomputedobborigin2:classptr
precomputedobbangles2:typeunknown
precomputedobbextent2:vector
precomputedobborigin3:classptr
precomputedobbangles3:typeunknown
precomputedobbextent3:vector
precomputedobborigin4:classptr
precomputedobbangles4:typeunknown
precomputedobbextent4:vector
precomputedobborigin5:classptr
precomputedobbangles5:typeunknown
precomputedobbextent5:vector
pvs_modify_entity:boolean
transmit_always:boolean
Inputs (22)
GetModelScale() -> float
raw: GetModelScale
Get scale of entity's model.
SetModelScale(float) -> void
raw: Script_SetModelScale
Set scale of entity's model.
ScriptLookupAttachment(cstring) -> int
raw: ScriptLookupAttachment
Get the named attachment id.
GetAttachmentOrigin(int) -> position_vector
raw: ScriptGetAttachmentOrigin
Get the attachment id's origin vector.
GetAttachmentAngles(int) -> vector
raw: ScriptGetAttachmentAngles
Get the attachment id's angles as a p,y,r vector.
GetAttachmentForward(int) -> vector
raw: ScriptGetAttachmentForward
Get the attachment id's forward vector.
SetSize(vector, vector) -> void
raw: ScriptSetSize
SetModel(cstring) -> void
raw: ScriptSetModel
GetRenderAlpha() -> int
raw: ScriptGetRenderAlpha
GetRenderAlpha(): Get the alpha modulation of this entity.
SetRenderAlpha(int) -> void
raw: ScriptSetRenderAlpha
SetRenderAlpha( int ): Set the alpha modulation of this entity.
SetRenderMode(int) -> void
raw: ScriptSetRenderMode
SetRenderMode( int ): Sets the render mode of the entity.
SetRenderColor(int, int, int) -> void
raw: ScriptSetRenderColor
SetRenderColor( r, g, b ): Sets the render color of the entity.
GetRenderColor() -> vector
raw: ScriptGetRenderColor
GetRenderColor(): Get the render color of the entity.
SetMaterialGroup(cstring) -> void
raw: ScriptSetMaterialGroup
SetMaterialGroup( string ): Set the material group of this entity.
SetMaterialGroupHash(uint32) -> void
raw: ScriptSetMaterialGroupHash
SetMaterialGroupHash( uint32 ): Set the material group hash of this entity.
GetMaterialGroupHash() -> uint32
raw: ScriptGetMaterialGroupHash
GetMaterialGroupHash(): Get the material group hash of this entity.
SetSingleMeshGroup(cstring) -> void
raw: ScriptSetSingleMeshGroup
SetSingleMeshGroup( string ): Set a single mesh group for this entity.
SetMaterialGroupMask(uint64) -> void
raw: ScriptSetMeshGroupMask
SetMaterialGroupMask( uint64 ): Set the mesh group mask of this entity.
GetMaterialGroupMask() -> uint64
raw: ScriptGetMeshGroupMask
GetMaterialGroupMask(): Get the mesh group mask of this entity.
SetBodygroupByName(cstring, int) -> void
raw: ScriptSetBodygroupByName
Sets a bodygroup by name.
SetBodygroup(int, int) -> void
raw: Script_SetBodygroup
Sets a bodygroup.
SetSkin(int) -> void
raw: Script_SetSkin
Set skin (int).
Think Functions (3)
CBarnLightThink_ApplyLightStylesToTargets
CBarnLightThink_LightStyleEvent
CBarnLightThink_SetNextQueuedLightStyle