MCPcopy Create free account
hub / github.com/demoth/jake2 / GetEntitySoundOrigin

Method GetEntitySoundOrigin

client/src/main/java/jake2/client/CL_ents.java:1152–1161  ·  view source on GitHub ↗
(int ent, float[] org)

Source from the content-addressed store, hash-verified

1150 * Called to get the sound spatialization origin ===============
1151 */
1152 public static void GetEntitySoundOrigin(int ent, float[] org) {
1153 centity_t old;
1154
1155 if (ent < 0 || ent >= Defines.MAX_EDICTS)
1156 Com.Error(Defines.ERR_DROP, "CL_GetEntitySoundOrigin: bad ent");
1157 old = ClientGlobals.cl_entities[ent];
1158 Math3D.VectorCopy(old.lerp_origin, org);
1159
1160 // FIXME: bmodel issues...
1161 }
1162}

Callers 1

playAllSoundsMethod · 0.95

Calls 2

ErrorMethod · 0.95
VectorCopyMethod · 0.95

Tested by

no test coverage detected