Garry's Mod Wiki

Revision Difference

Enums/SURF#516121

<cat>enum</cat> <enumeration> <description>Surface flags, used by the <page>TraceResult</page>.</description> <fields>{{EnumField|SURF_LIGHT|1|Value will hold the light strength</fields>⤶ <fields>⤶ <item key="SURF_LIGHT" value="1">Value will hold the light strength</item>⤶ <item key="SURF_SKY2D" value="2">The surface is a 2D skybox</item>⤶ <item key="SURF_SKY" value="4">This surface is a skybox, equivalent to HitSky in <page>TraceResult</page></item>⤶ <item key="SURF_WARP" value="8">This surface is animated water</item>⤶ <item key="SURF_TRANS" value="16">This surface is translucent</item>⤶ <item key="SURF_NOPORTAL" value="32">This surface cannot have portals placed on, used by Portal's gun</item>⤶ <item key="SURF_TRIGGER" value="64">This surface is a trigger</item>⤶ <item key="SURF_NODRAW" value="128">This surface is an invisible entity, equivalent to HitNoDraw in <page>TraceResult</page></item>⤶ <item key="SURF_HINT" value="256">Make a primary bsp splitter</item>⤶ <item key="SURF_SKIP" value="512">This surface can be ignored by impact effects</item>⤶ <item key="SURF_NOLIGHT" value="1024">This surface has no lights calculated</item>⤶ <item key="SURF_BUMPLIGHT" value="2048">Calculate three lightmaps for the surface for bumpmapping</item>⤶ <item key="SURF_NOSHADOWS" value="4096">No shadows are cast on this surface</item>⤶ <item key="SURF_NODECALS" value="8192">No decals are applied to this surface</item>⤶ <item key="SURF_NOCHOP" value="16384">Don't subdivide patches on this surface</item>⤶ <item key="SURF_HITBOX" value="32768">This surface is part of an entity's hitbox</item>⤶ </fields>⤶ </enumeration> ⤶ ⤶ {{EnumField|SURF_SKY2D|2|The surface is a 2D skybox}}⤶ {{EnumField|SURF_SKY|4|This surface is a skybox, equivalent to HitSky in <page>TraceResult</page>}}⤶ {{EnumField|SURF_WARP|8|This surface is animated water}}⤶ {{EnumField|SURF_TRANS|16|This surface is translucent}}⤶ {{EnumField|SURF_NOPORTAL|32|This surface cannot have portals placed on, used by Portal's gun}}⤶ {{EnumField|SURF_TRIGGER|64|This surface is a trigger}}⤶ {{EnumField|SURF_NODRAW|128|This surface is an invisible entity, equivalent to HitNoDraw in <page>TraceResult</page> }}⤶ {{EnumField|SURF_HINT|256|Make a primary bsp splitter}}⤶ {{EnumField|SURF_SKIP|512|This surface can be ignored by impact effects}}⤶ {{EnumField|SURF_NOLIGHT|1024|This surface has no lights calculated}}⤶ {{EnumField|SURF_BUMPLIGHT|2048|Calculate three lightmaps for the surface for bumpmapping}}⤶ {{EnumField|SURF_NOSHADOWS|4096|No shadows are cast on this surface}}⤶ {{EnumField|SURF_NODECALS|8192|No decals are applied to this surface}}⤶ {{EnumField|SURF_NOCHOP|16384|Don't subdivide patches on this surface}}⤶ {{EnumField|SURF_HITBOX|32768|This surface is part of an entity's hitbox}}⤶ }}