Difference between revisions of "TE EXPLODEMODEL"
Jump to navigation
Jump to search
Outerbeast (talk | contribs) (Created page with "Spawns multiple rotating models with gravity, collisions, particle trails, and flashing orange lights. frame|TE_EXPLODEMODEL <pre> void te_explode...") |
Outerbeast (talk | contribs) m |
||
Line 19: | Line 19: | ||
</pre> | </pre> | ||
− | * Vector pos Center point for the effect | + | * <code>Vector pos</code> Center point for the effect |
− | * float velocity Ejection speed for all models | + | * <code>float velocity</code> Ejection speed for all models |
− | * string model Model to display | + | * <code>string model</code> Model to display |
− | * uint16 count Number of models to spawn | + | * <code>uint16 count</code> Number of models to spawn |
− | * uint8 life Time to display all models (seconds * 0.1) | + | * <code>uint8 life</code> Time to display all models (seconds * 0.1) |
[[Category:Scripting]] | [[Category:Scripting]] |
Latest revision as of 21:33, 13 September 2025
Spawns multiple rotating models with gravity, collisions, particle trails, and flashing orange lights.
void te_explodemodel(Vector pos, float velocity, string model="models/hgibs.mdl", uint16 count=8, uint8 life=32, NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null) { NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest); m.WriteByte(TE_EXPLODEMODEL); m.WriteCoord(pos.x); m.WriteCoord(pos.y); m.WriteCoord(pos.z); m.WriteCoord(velocity); m.WriteShort(g_EngineFuncs.ModelIndex(model)); m.WriteShort(count); m.WriteByte(life); m.End(); }
Vector pos
Center point for the effectfloat velocity
Ejection speed for all modelsstring model
Model to displayuint16 count
Number of models to spawnuint8 life
Time to display all models (seconds * 0.1)