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

Function SetValue

engine/Poseidon/Dev/Debug/DebugCheats.cpp:448–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448void SetValue(float mult, std::string& out)
449{
450 if (!GWorld)
451 {
452 out = "timemult: no active world";
453 return;
454 }
455 GWorld->SetAcceleratedTime(mult);
456 char buf[64];
457 snprintf(buf, sizeof(buf), "timemult: requested %.2fx, engine reports %.2fx", mult, GWorld->GetAcceleratedTime());
458 out = buf;
459 LOG_INFO(Mission, "DebugCheats::TimeMultiplier -> {}", out);
460}
461
462void Invoke(std::string_view args, std::string& out)
463{

Callers 13

SetValueMethod · 0.85
ParamArrayValueSpecMethod · 0.85
SetValueMethod · 0.85
ParamArrayValueSpecClass · 0.85
SetValueMethod · 0.85
DefineSymbMethod · 0.85
InvokeFunction · 0.85
DrawCheatsTabFunction · 0.85
TriCheatTimeMultiplierFunction · 0.85
LoadDefaultsMethod · 0.85
ApplyCommandLineMethod · 0.85

Calls 2

SetAcceleratedTimeMethod · 0.80
GetAcceleratedTimeMethod · 0.80

Tested by 1

TriCheatTimeMultiplierFunction · 0.68