prvm_edict_t *entity;
float volume;
float attenuation;
+ vec3_t org;
VM_SAFEPARMCOUNT(5, VM_CL_sound);
return;
}
- S_StartSound(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), entity->fields.client->origin, volume, attenuation);
+ CL_VM_GetEntitySoundOrigin(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), org);
+ S_StartSound(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation);
}
// #483 void(vector origin, string sample, float volume, float attenuation) pointsound