forked from baso88/SC_AngelScript
-
Notifications
You must be signed in to change notification settings - Fork 0
TE_DECALHIGH
wootguy edited this page Nov 29, 2025
·
4 revisions
Applies a decal to a world or entity surface. Uses texture indexes 256 to 511.
| Type | Name | Description |
|---|---|---|
| Vector | pos | Center location of the decal. It needs to be witnin a few units of a surface. |
| CBaseEntity@ | brushEnt | Brush entity to apply the decal to. If null, the decal is applied to the world instead. |
| string | decal | Texture name from decals.wad |
void te_decalhigh(Vector pos, CBaseEntity@ brushEnt=null, string decal="{handi", NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null) { NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest); m.WriteByte(TE_DECALHIGH); m.WriteCoord(pos.x); m.WriteCoord(pos.y); m.WriteCoord(pos.z); m.WriteByte(g_EngineFuncs.DecalIndex(decal)); m.WriteShort(brushEnt is null ? 0 : brushEnt.entindex()); m.End(); }