You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cvarPads[JumpCooldown] =CreateConVar("pads_jump_cooldown", "3.0", "How long, in seconds, should Jump Pads take to recharge?", FCVAR_NOTIFY, true, 0.1);
143
147
cvarPads[BoostDuration] =CreateConVar("pads_boost_duration", "5.0", "How long, in seconds, should Boost Pads boost players for?", FCVAR_NOTIFY, true, 0.0);
144
148
cvarPads[BoostSpeed] =CreateConVar("pads_boost_speed", "520.0", "What minimum speed should players be boosted to when using Boost Pads?", FCVAR_NOTIFY, true, 0.0);
149
+
cvarPads[BoostDamage] =CreateConVar("pads_boost_damage_threshold", "35", "How much damage can a boosted player take before losing their boost? 0 to disable.", FCVAR_NOTIFY, true, 0.0);
150
+
cvarPads[BoostAirblast] =CreateConVar("pads_boost_airblast", "1", "Should boosted players lose their boost when airblasted?", FCVAR_NOTIFY, true, 0.0, true, 1.0);
145
151
cvarPads[BoostBlockAiming] =CreateConVar("pads_boost_block_aiming", "1", "Set to 1 to prevent scoped-in/revved up players from being speed boosted.", FCVAR_NOTIFY, true, 0.0, true, 1.0);
146
152
cvarPads[BoostCooldown] =CreateConVar("pads_boost_cooldown", "3.0", "How long in seconds should Boost Pads take to recharge?", FCVAR_NOTIFY, true, 0.1);
147
153
cvarPads[BotsCanBuild] =CreateConVar("pads_bots_can_build", "0", "If enabled, Bots will build Boost Pads instead of Teleporters.", FCVAR_NOTIFY, true, 0.0, true, 1.0);
@@ -586,12 +637,17 @@ public Action OnPadTouch(int iPad, int iToucher)
586
637
}
587
638
588
639
/* Boost Pad Effects */
589
-
publicvoidPreThink(intiClient)
640
+
publicvoidOnPreThink(intiClient)
590
641
{
591
-
if (!Pad_IsPlayerInCond(iClient, PadCond_Boost))
642
+
if (g_flPlayerBoostEndTime[iClient] <=GetGameTime() ||!Pad_IsPlayerInCond(iClient, PadCond_Boost))//If the player's boost duration is over, or they're still hooked without the boost cond.
0 commit comments