]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - clvm_cmds.c
CSQC: support the sound pitch shift arg (NOT in SVQC yet)
[xonotic/darkplaces.git] / clvm_cmds.c
index 240e02b126d1bba5667f49ee5b53017adc854981..289d071c3585bacf8af2af64105c314aecab2729 100644 (file)
@@ -205,7 +205,7 @@ static void VM_CL_sound (void)
        }
 
        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);
+       S_StartSound_StartPosition_Flags(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation, 0, CHANNELFLAG_NONE, pitchchange > 0.0f ? pitchchange * 0.01f : 1.0f);
 }
 
 // #483 void(vector origin, string sample, float volume, float attenuation) pointsound