MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Execute

Method Execute

ogsr_engine/xrGame/console_commands.cpp:319–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317public:
318 CCC_ALifeTimeFactor(LPCSTR N) : IConsole_Command(N){};
319 virtual void Execute(LPCSTR args)
320 {
321 float id1 = 0.0f;
322 sscanf(args, "%f", &id1);
323 if (id1 < EPS_L)
324 Msg("Invalid time factor! (%.4f)", id1);
325 else
326 {
327 Level().Server->game->SetGameTimeFactor(id1);
328 }
329 }
330};
331
332class CCC_ALifeSwitchDistance : public IConsole_Command

Callers

nothing calls this directly

Calls 2

MsgFunction · 0.85
SetGameTimeFactorMethod · 0.45

Tested by

no test coverage detected