Added particle emitters

This commit is contained in:
cholleme 2002-11-23 19:43:13 +00:00
parent 9f2a3d66c3
commit f3e095ab00

27
subs.qc
View file

@ -314,3 +314,30 @@ void (void() thinkst) SUB_CheckRefire =
self.cnt = 1;
self.think = thinkst;
};
//PENTA: new particle support
void (entity ent, float pcount, string effectname) SUB_BasicEmitter =
{
WriteByte (MSG_BROADCAST, SVC_BASICEMITTER);
WriteCoord (MSG_BROADCAST, ent.origin_x);
WriteCoord (MSG_BROADCAST, ent.origin_y);
WriteCoord (MSG_BROADCAST, ent.origin_z);
WriteByte (MSG_BROADCAST, pcount);
WriteString(MSG_BROADCAST, effectname);
};
//PENTA: new particle support
void (entity ent, float pcount, float tick, float life, string effectname) SUB_ExtendedEmitter =
{
WriteByte (MSG_BROADCAST, SVC_EXTENDEDEMITTER);
WriteCoord (MSG_BROADCAST, ent.origin_x);
WriteCoord (MSG_BROADCAST, ent.origin_y);
WriteCoord (MSG_BROADCAST, ent.origin_z);
WriteCoord (MSG_BROADCAST, ent.velocity_x);
WriteCoord (MSG_BROADCAST, ent.velocity_y);
WriteCoord (MSG_BROADCAST, ent.velocity_z);
WriteByte (MSG_BROADCAST, pcount);
WriteLong (MSG_BROADCAST, life*100);
WriteLong (MSG_BROADCAST, tick*100);
WriteString(MSG_BROADCAST, effectname);
};