MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / ExtendMapTimeLimit

Method ExtendMapTimeLimit

core/TimerSys.cpp:107–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 void ExtendMapTimeLimit(int extra_time)
108 {
109 if (extra_time == 0)
110 {
111 mp_timelimit->SetValue(0);
112 return;
113 }
114
115 extra_time /= (60 / kMapTimeScaleFactor);
116
117 mp_timelimit->SetValue(mp_timelimit->GetInt() + extra_time);
118 }
119
120 void OnConVarChanged(ConVar *pConVar, const char *oldValue, float flOldValue)
121 {

Callers 1

smn_ExtendMapTimeLimitFunction · 0.80

Calls 2

SetValueMethod · 0.80
GetIntMethod · 0.45

Tested by

no test coverage detected