-
Notifications
You must be signed in to change notification settings - Fork 4
TE_BUBBLES
GeckoN edited this page Jan 31, 2017
·
5 revisions
Spawns sprites inside of box. Sprites float upwards and disappear once they reach their max height.
Type | Name | Description |
---|---|---|
Vector | mins | Bottom-left-back corner of the box |
Vector | maxs | Top-right-front corner of the box |
float | height | Maximum sprite float height relative to the bottom of the box |
string | sprite | Sprite to display (alpha transparency) |
uint8 | count | Number of sprites to spawn |
float | speed | Upward speed of the sprites |
void CUtility::Bubbles(const Vector& in vecMins, const Vector& in vecMaxs, int iCount)
void te_bubbles(Vector mins, Vector maxs, float height=256.0f,
string sprite="sprites/bubble.spr", uint8 count=64, float speed=16.0f,
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_BUBBLES);
m.WriteCoord(mins.x);
m.WriteCoord(mins.y);
m.WriteCoord(mins.z);
m.WriteCoord(maxs.x);
m.WriteCoord(maxs.y);
m.WriteCoord(maxs.z);
m.WriteCoord(height);
m.WriteShort(g_EngineFuncs.ModelIndex(sprite));
m.WriteByte(count);
m.WriteCoord(speed);
m.End();
}