Is used for events like explosions, that appears, happens and
dissapears in the world. Depending on the type of entity broadcasted,
the network packet assumes different formats.
|
TE_GUNSHOT
TE_SHOTGUN
TE_BLOOD
TE_GREENBLOOD
TE_SPARKS
TE_BULLET_SPARKS
TE_BLASTER
TE_SCREEN_SPARKS
TE_SHIELD_SPARKS |
gi.WriteByte (svc_temp_entity);
gi.WriteByte (type);
gi.WritePosition (endpos);
gi.WriteDir (tr.plane.normal / origin);
gi.multicast (tr.endpos, MULTICAST_PVS); |
|
TE_RAILTRAIL
TE_BUBBLETRAIL
TE_BFG_LASER
TE_PLASMATRAIL - random green arcs |
gi.WriteByte (svc_temp_entity);
gi.WriteByte (TE_RAILTRAIL);
gi.WritePosition (start);
gi.WritePosition (tr.endpos);
gi.multicast (self->s.origin, MULTICAST_PHS); |
|
TE_EXPLOSION1
TE_EXPLOSION2
TE_ROCKET_EXPLOSION
TE_GRENADE_EXPLOSION
TE_ROCKET_EXPLOSION_WATER
TE_GRENADE_EXPLOSION_WATER
TE_BFG_EXPLOSION
TE_BFG_BIGEXPLOSION
TE_BOSSTPORT |
gi.WriteByte (svc_temp_entity);
gi.WriteByte (TE_EXPLOSION1);
gi.WritePosition (origin);
gi.multicast (origin, MULTICAST_PHS); |
|
TE_SPLASH,
where color is any of the following:
SPLASH_UNKNOWN0
SPLASH_SPARKS 1
SPLASH_BLUE_WATER 2
SPLASH_BROWN_WATER 3
SPLASH_SLIME 4
SPLASH_LAVA 5
SPLASH_BLOOD 6 |
gi.WriteByte (svc_temp_entity);
gi.WriteByte (TE_SPLASH);
gi.WriteByte (self->count); // pixels in the splash
gi.WritePosition (self->s.origin);
gi.WriteDir (self->movedir);
gi.WriteByte (color);
gi.multicast (self->s.origin, MULTICAST_PVS); |
|
TE_LASER_SPARKS,
TE_WELDING_SPARKS |
gi.WriteByte (svc_temp_entity);
gi.WriteByte (TE_LASER_SPARKS);
gi.WriteByte (count);
gi.WritePosition (tr.endpos);
gi.WriteDir (tr.plane.normal);
gi.WriteByte (self->s.skinnum);
gi.multicast (tr.endpos, MULTICAST_PVS); |
|
TE_PARASITE_ATTACK
TE_MEDIC_CABLE_ATTACK
TE_GRAPPLE_CABLE
Note that it sends its memory offset in the g_edicts list.
models used from PAK:
/models/monsters/parasite/segment/tris.md2
/models/ctf/segment/tris.md2 |
gi.WriteByte (svc_temp_entity);
gi.WriteByte (TE_PARASITE_ATTACK);
gi.WriteShort (self - g_edicts);
gi.WritePosition (start);
gi.WritePosition (end);
gi.multicast (self->s.origin, MULTICAST_PVS); |