some final touch ups

This commit is contained in:
rtldg 2022-01-09 19:00:07 +00:00
parent cf7c1d85bb
commit ec881bbae5
6 changed files with 11 additions and 4 deletions

View File

@ -55,7 +55,7 @@
{
"enabled" "1"
"tracks" "0"
"styles" "1;2;3;4;5;6;8;9;10;11;12;13;14;15;16"
"styles" "1;2;3;4;5;6;8;9;11;12;13;14;15;16"
}
"Bonus Normal Bot"
{

View File

@ -209,8 +209,8 @@ stock Action ObliviousOnPlayerRunCmd(int client, int& buttons, int& impulse, flo
{
addspeed = addspeed - _addspeed;
if (addspeed > 30.0)
addspeed = 30.0;
if (addspeed > flAirSpeedCap)
addspeed = flAirSpeedCap;
}
if (buttons & IN_DUCK)

View File

@ -273,6 +273,7 @@ native void Shavit_SetStart(int client, int track, bool anglesonly);
*/
native void Shavit_DeleteSetStart(int client, int track);
#if 0
native void Shavit_RemoveAllZones();
native int Shavit_GetZoneCount();
@ -280,6 +281,7 @@ native int Shavit_GetZoneCount();
native void Shavit_GetZone(int index, any[] zonecache, int size = sizeof(zone_cache_t));
native int Shavit_AddZone(any[] zonecache, int size = sizeof(zone_cache_t));
#endif
public SharedPlugin __pl_shavit_zones =
{

View File

@ -1754,6 +1754,7 @@ public Action Shavit_OnFinishPre(int client, timer_snapshot_t snapshot)
if (snapshot.fCurrentTime < minimum_time)
{
Shavit_PrintToChat(client, "%T", "TimeUnderMinimumTime", client, minimum_time, snapshot.fCurrentTime, snapshot.iTimerTrack == Track_Main ? "minimum_time" : "minimum_time_bonus");
StopTimer(client);
return Plugin_Stop;
}
@ -2824,7 +2825,11 @@ public MRESReturn DHook_ProcessMovement(Handle hParams)
if (gA_Timers[client].fTimescale == 1.0 || mt == MOVETYPE_NOCLIP)
{
SetClientEventsPaused(client, gA_Timers[client].bClientPaused);
if (gB_Eventqueuefix)
{
SetClientEventsPaused(client, gA_Timers[client].bClientPaused);
}
return MRES_Ignored;
}