core.libraries.thirdparty.niknaks.modules.sh_bsp_staticprops

(no description)

Functions

FindStaticByModel(model)

View source »

Returns a list of all static-props matching the model.

Parameters

Returns

FindStaticInBox(boxMins, boxMaxs)

View source »

Returns a list of all static-props, within the specified box.

Parameters

  • boxMins Vector

  • boxMaxs Vector

Returns

FindStaticInSphere(origin, radius)

View source »

Returns a list of all static-props, within the specified sphere.

Parameters

  • origin Vector

  • radius number

Returns

GetAngles()

View source »

Returns the angles

GetColor()

View source »
Incomplete

Documentation for this section is incomplete and needs expanding.

Returns

  • Color

GetDisableX360()

View source »

Returns true if the static prop is disabled on X360.

Returns

  • boolean

GetFlagExs()

View source »

Returns the "Further" BitFlags. Seems to be only used for the "STATICPROPFLAGSEXDISABLE_CSM" flag.

Returns

  • number

GetFlags()

View source »

Returns the flags

GetIndex()

View source »

Returns the StaticProp index

GetLightingOrigin()

View source »

Returns the lighting origin

GetModel()

View source »

Returns the model path

GetModelBounds()

View source »

Returns the model bounds.

Returns

  • Vector

  • Vector

GetPos()

View source »

Returns the origin

GetSkin()

View source »

Returns the skin index

GetSolid()

View source »

Returns the solid enum. See: https://wiki.facepunch.com/gmod/Enums/SOLID

GetStaticProp(index)

View source »

Returns the static-prop object from said index.

Parameters

  • index number

Returns

GetStaticPropModels()

View source »

Returns a list of all static-prop models used by the map.

Returns

GetStaticProps()

View source »

Returns a list of staticprops.

Returns

GetVersion()

View source »

Returns the version of the static props. Note: version 7* will be returned as a string: "10A"

HasFlag(flag)

View source »

Returns true if the staticprop has a flag.

Parameters

  • flag number

Returns

  • boolean

HasFlagEx(flag)

View source »

Returns true if the staticprop has an exflag.

Parameters

  • flag number

Returns

  • boolean

Tables

StaticProp

View source »
Incomplete

Documentation for this section is incomplete and needs expanding.

Fields

  • Index number

  • version number

  • Origin Vector

  • Angles Angle

  • First_leaf number

  • LeafCount number

  • Solid number

  • Flags number optional

  • Skin number

  • FadeMinDist number

  • FadeMaxDist number

  • LightingOrigin Vector

  • ForcedFadeScale number optional

  • MinDXLevel number optional

  • MaxDXLevel number optional

  • lightmapResolutionX number optional

  • lightmapResolutionY number optional

  • MinCPULevel number optional

  • MaxCPULevel number optional

  • MinGPULevel number optional

  • MaxGPULevel number optional

  • DiffuseModulation Color optional

  • DisableX360 boolean optional

  • FlagsEx number optional

  • UniformScale number optional