Added particle emitters
This commit is contained in:
parent
9f2a3d66c3
commit
f3e095ab00
1 changed files with 343 additions and 316 deletions
27
subs.qc
27
subs.qc
|
@ -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);
|
||||
};
|
Loading…
Reference in a new issue