MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / TriSetEAX

Function TriSetEAX

engine/Poseidon/Game/Commands/GameStateExtTestAudio.cpp:337–344  ·  view source on GitHub ↗

triSetEAX <0|1> -> "OK"

Source from the content-addressed store, hash-verified

335 if (!GSoundsys)
336 return GameValue("FAIL:no_sound");
337 if (arg.GetType() != GameArray)
338 return GameValue("FAIL:expected_array");
339 const GameArrayType& a = arg;
340 if (a.Size() < 2)
341 return GameValue("FAIL:need_name_and_pct");
342 int row = VolumeRowFromName(((RString)(GameStringType)a[0]).Data());
343 if (row < 0)
344 return GameValue("FAIL:bad_row");
345 int pct = (int)(GameScalarType)a[1];
346 if (pct < 0)
347 pct = 0;

Callers

nothing calls this directly

Calls 2

GameValueClass · 0.50
EnableEAXMethod · 0.45

Tested by

no test coverage detected