e_event_particlespawn.c
Go to the documentation of this file.00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "../../../../client.h"
00026 #include "../../../cl_localentity.h"
00027 #include "../../../cl_particle.h"
00028 #include "e_event_particlespawn.h"
00029
00037 void CL_ParticleSpawnEvent (const eventRegister_t *self, struct dbuffer *msg)
00038 {
00039 char particle[MAX_VAR];
00040 int levelflags;
00041 vec3_t s, v, a;
00042
00043
00044 NET_ReadFormat(msg, self->formatString, &levelflags, &s, &v, &a, particle, sizeof(particle));
00045
00046 CL_ParticleSpawn(particle, levelflags, s, v, a);
00047 }