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
* Add config flag for MaxPrestrafe override
* Allow zoners to edit startzone data
* Use start zone data field for prestrafe limit
* Add prespeed type 6 that behaves like 5 and prevents prehopping
* Fix formatting
* Bodged up code for 1 second prehop cooldown on prestrafe mode 6
* Make anti prespeed a little bit better (maybe????)
* Tiredly twiddle with prespeed style 6 impl
* Add description to maxprestrafe style-setting
* nitpicky styling things
* Use GetGameTickCount instead of GetSysTickCount
* ;
---------
Co-authored-by: rtldg <[email protected]>
Co-authored-by: rtldg <[email protected]>
Copy file name to clipboardExpand all lines: addons/sourcemod/configs/shavit-styles.cfg
+1
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
// Physics
36
36
"airaccelerate" "1000.0" // sv_airaccelerate value for the style.
37
37
"runspeed" "260.00" // Running speed. Requires DHooks, shavit-misc and shavit_misc_staticprestrafe set to 1.
38
+
"maxprestrafe" "0.0" // The max prestrafe that still allows your timer to start/restart. You generally do *not* need or want to change this unless for surf things (combined with style-setting "prespeed_type" "6" or cvar "shavit_misc_prespeed 6"). Default is 0.0 (disabled).
38
39
"gravity" "1.0" // Gravity setting, 1.0 for default. Standard for low gravity styles is 0.6.
39
40
"speed" "1.0" // Speed multiplier, 1.0 for default. Standard for slowmo styles is 0.5. This a multiplier for m_flLaggedMovementValue.
40
41
"timescale" "1.0" // Timing will scale with this setting. This is a multiplier for m_flLaggedMovementValue but also affects the timer increase speed.
Copy file name to clipboardExpand all lines: addons/sourcemod/scripting/shavit-misc.sp
+70-4
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,8 @@ Function gH_AfterWarningMenu[MAXPLAYERS+1];
74
74
intgI_LastWeaponTick[MAXPLAYERS+1];
75
75
intgI_LastNoclipTick[MAXPLAYERS+1];
76
76
intgI_LastStopInfo[MAXPLAYERS+1];
77
+
intgI_LastGroundLandTick[MAXPLAYERS+1];
78
+
floatgF_ZoneStartSpeedLimit[MAXPLAYERS+1];
77
79
78
80
// cookies
79
81
HandlegH_HideCookie=null;
@@ -266,7 +268,7 @@ public void OnPluginStart()
266
268
267
269
// cvars and stuff
268
270
gCV_GodMode=newConvar("shavit_misc_godmode", "3", "Enable godmode for players?\n0 - Disabled\n1 - Only prevent fall/world damage.\n2 - Only prevent damage from other players.\n3 - Full godmode.\n4 - Prevent fall/world/entity damage (all except damage from other players).", 0, true, 0.0, true, 4.0);
269
-
gCV_PreSpeed=newConvar("shavit_misc_prespeed", "2", "Stop prespeeding in the start zone?\n0 - Disabled, fully allow prespeeding.\n1 - Limit relatively to prestrafelimit.\n2 - Block bunnyhopping in startzone.\n3 - Limit to prestrafelimit and block bunnyhopping.\n4 - Limit to prestrafelimit but allow prespeeding. Combine with shavit_core_nozaxisspeed 1 for SourceCode timer's behavior.\n5 - Limit horizontal speed to prestrafe but allow prespeeding.", 0, true, 0.0, true, 5.0);
271
+
gCV_PreSpeed=newConvar("shavit_misc_prespeed", "2", "Stop prespeeding in the start zone?\n0 - Disabled, fully allow prespeeding.\n1 - Limit relatively to prestrafelimit.\n2 - Block bunnyhopping in startzone.\n3 - Limit to prestrafelimit and block bunnyhopping.\n4 - Limit to prestrafelimit but allow prespeeding. Combine with shavit_core_nozaxisspeed 1 for SourceCode timer's behavior.\n5 - Limit horizontal speed to prestrafe but allow prespeeding.\n6 - Limit horizontal speed to prestrafe and block bunnyhopping.", 0, true, 0.0, true, 5.0);
270
272
gCV_HideTeamChanges=newConvar("shavit_misc_hideteamchanges", "1", "Hide team changes in chat?\n0 - Disabled\n1 - Enabled", 0, true, 0.0, true, 1.0);
271
273
gCV_RespawnOnTeam=newConvar("shavit_misc_respawnonteam", "1", "Respawn whenever a player joins a team?\n0 - Disabled\n1 - Enabled", 0, true, 0.0, true, 1.0);
272
274
gCV_RespawnOnRestart=newConvar("shavit_misc_respawnonrestart", "1", "Respawn a dead player if they use the timer restart command?\n0 - Disabled\n1 - Enabled", 0, true, 0.0, true, 1.0);
@@ -1349,7 +1351,14 @@ public Action Shavit_OnUserCmdPre(int client, int &buttons, int &impulse, float
0 commit comments