| 317 | public: |
| 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 | |
| 332 | class CCC_ALifeSwitchDistance : public IConsole_Command |
nothing calls this directly
no test coverage detected