Skip to content

TE_ARMOR_RICOCHET

wootguy edited this page Nov 29, 2025 · 4 revisions

Armor ricochet sprite and sound effect.

Parameters

Type Name Description
Vector pos Center point for the effect
uint8_t scale Sprite scale * 0.1

Example Usage

void te_ricochet(Vector pos, uint8_t scale=10, 
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_ARMOR_RICOCHET);
    WRITE_COORD(pos.x);
    WRITE_COORD(pos.y);
    WRITE_COORD(pos.z);
    WRITE_BYTE(scale);
    MESSAGE_END();
}

Clone this wiki locally