MCPcopy Create free account
hub / github.com/JACoders/OpenJK / S_AddLocalSet

Function S_AddLocalSet

code/client/snd_ambient.cpp:1130–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128*/
1129
1130int S_AddLocalSet( const char *name, vec3_t listener_origin, vec3_t origin, int entID, int time ) {
1131 if ( !aSets ) {
1132 return cl.serverTime;
1133 }
1134
1135 const ambientSet_t *set = aSets->GetSet( name );
1136 if ( !set ) {
1137 return cl.serverTime;
1138 }
1139
1140 int currentTime = time;
1141 AS_PlayLocalSet( listener_origin, origin, set, entID, &currentTime );
1142 return currentTime;
1143}
1144
1145/*
1146-------------------------

Callers 1

CL_CgameSystemCallsFunction · 0.70

Calls 2

AS_PlayLocalSetFunction · 0.70
GetSetMethod · 0.45

Tested by

no test coverage detected