MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / StopSound

Function StopSound

extensions/sdktools/vsound.cpp:804–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804static cell_t StopSound(IPluginContext *pContext, const cell_t *params)
805{
806 int entity = SoundReferenceToIndex(params[1]);
807 int channel = params[2];
808
809 char *name;
810 pContext->LocalToString(params[3], &name);
811
812#if SOURCE_ENGINE >= SE_PORTAL2
813 engsound->StopSound(entity, channel, name, -1);
814#else
815 engsound->StopSound(entity, channel, name);
816#endif
817
818 return 1;
819}
820
821static cell_t EmitSound(IPluginContext *pContext, const cell_t *params)
822{

Callers

nothing calls this directly

Calls 1

SoundReferenceToIndexFunction · 0.85

Tested by

no test coverage detected