From 3b49522fa4f6de32b78830fd668d372e36ae93af Mon Sep 17 00:00:00 2001 From: Derpduck Date: Sat, 30 Oct 2021 21:45:11 +0100 Subject: [PATCH] Allow l4d2_slowdown_control to change crouch speed (#392) * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload * Update shared_settings.cfg * Update shared_settings.cfg * Update shared_settings.cfg * Update pmelite.cfg * Update shared_settings.cfg * Update shared_settings.cfg * Update shared_settings.cfg * Update shared_settings.cfg * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload * Update l4d2_slowdown_control.sp * Add files via upload --- .../optional/l4d2_slowdown_control.smx | Bin 8463 -> 9611 bytes .../scripting/l4d2_slowdown_control.sp | 83 ++++++++++++++++-- cfg/cfgogl/apex/shared_settings.cfg | 1 + cfg/cfgogl/eq/shared_settings.cfg | 1 + cfg/cfgogl/nextmod/shared_settings.cfg | 1 + cfg/cfgogl/pmelite/pmelite.cfg | 1 + cfg/cfgogl/zonehunters/shared_settings.cfg | 1 + cfg/cfgogl/zonemod/shared_settings.cfg | 1 + cfg/cfgogl/zonemodold/shared_settings.cfg | 1 + cfg/cfgogl/zoneretro/shared_settings.cfg | 1 + 10 files changed, 86 insertions(+), 5 deletions(-) diff --git a/addons/sourcemod/plugins/optional/l4d2_slowdown_control.smx b/addons/sourcemod/plugins/optional/l4d2_slowdown_control.smx index 7a4de6df039d66bb306e6bb769d790bb5f250993..141efe56406adf362d4de918d8f15f28e06edcc8 100644 GIT binary patch delta 9472 zcmW-iWmHt(+lB`a@JF{&gGfn(%m&jN*EeMkd~GlX^`#)>F$(n7#N0k z{_k1qTKBcr+0V1%!#Qy>QOdyk_Zr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KQj!q$&!SABJR`2B zNL--cJ%q#~d)BYvQohCDN4V9WU(e`;KOyIp<{t5R!2J}u-X|TsUg#8Xzqk2qu^3bD zdy^SD+-#^3@%yJr8;VcH-jw07exEF9c@RB~+VQymL3oFX^}(U@%xrPZc8^>^uK5Yr zo_FB|c~k5x(~hJSz1Jw$zysa->EKsB1CWUW3LrIq2Q@IPI06K?>YR>dc53cN09%U!ydo*xFGhdp z`&w30AVNRm2d(jtd80qPKFSPb*2v5!clbg@H9d|q_gR{?N1{d@`-^*RSD3k2I!)MkDNt-*~ zA}Nzxd?>A>{1(SuWWy|h@nVugU|Q$eW||otE);prI#GhW_da0|oI?l7Xi$r)JV0KV zxfYMb2B_k-N8V7r&mfYjjkZ>NtI|>Ax<}Uh)AJ1;Ym(lCpV$N+O7Xt8^lvd2f+^DP zfy}3KZkvG#xgffC4~`ojw#%AVzGv2`nv$TGONU4P!+k|drYx|A%d`6$H({|` z(iWPSU05D|k9q1J6E)kA#4d5%(!l^`6&6-u-ql1tF1NiZ=hf_iw#XZf_W>?8W0RS{ zqJ7`M8i*O8>1OA*_tjjD&+C4^7P`9hnb7)UO{VO{Jb$l9m4|E;Zdh7+A!*nyyX!si t6O>L6$S?5g!nz$ff(OoSOgu diff --git a/addons/sourcemod/scripting/l4d2_slowdown_control.sp b/addons/sourcemod/scripting/l4d2_slowdown_control.sp index d80bd6f8f..91761852c 100644 --- a/addons/sourcemod/scripting/l4d2_slowdown_control.sp +++ b/addons/sourcemod/scripting/l4d2_slowdown_control.sp @@ -22,6 +22,7 @@ #pragma newdecls required #include +#include #include #include @@ -52,22 +53,26 @@ ConVar hCvarSdInwaterSurvivor, hCvarSdInwaterDuringTank, hCvarSurvivorLimpspeed, - hCvarTankSpeedVS; + hCvarTankSpeedVS, + hCvarCrouchSpeedMod; float fTankWaterSpeed, fSurvWaterSpeed, fSurvWaterSpeedDuringTank, - fTankRunSpeed; + fTankRunSpeed, + fCrouchSpeedMod; bool - tankInPlay = false; + tankInPlay = false, + bFoundCrouchTrigger = false, + bPlayerInCrouchTrigger[MAXPLAYERS + 1]; public Plugin myinfo = { name = "L4D2 Slowdown Control", - author = "Visor, Sir, darkid, Forgetest, A1m`", - version = "2.6.6", + author = "Visor, Sir, darkid, Forgetest, A1m`, Derpduck", + version = "2.6.7", description = "Manages the water/gunfire slowdown for both teams", url = "https://github.com/SirPlease/L4D2-Competitive-Rework" }; @@ -79,6 +84,7 @@ public void OnPluginStart() hCvarSdInwaterTank = CreateConVar("l4d2_slowdown_water_tank", "-1", "Maximum tank speed in the water (-1: ignore setting; 0: default; 210: default Tank Speed)", _, true, -1.0); hCvarSdInwaterSurvivor = CreateConVar("l4d2_slowdown_water_survivors", "-1", "Maximum survivor speed in the water outside of Tank fights (-1: ignore setting; 0: default; 220: default Survivor speed)", _, true, -1.0); hCvarSdInwaterDuringTank = CreateConVar("l4d2_slowdown_water_survivors_during_tank", "0", "Maximum survivor speed in the water during Tank fights (0: ignore setting; 220: default Survivor speed)", _, true, 0.0); + hCvarCrouchSpeedMod = CreateConVar("l4d2_slowdown_crouch_speed_mod", "1.0", "Modifier of player crouch speed when inside a designated trigger, 75 is the defualt for everyone (1: default speed)", _, true, 0.0); hCvarSdPistolMod = CreateConVar("l4d2_slowdown_pistol_percent", "0.0", "Pistols cause this much slowdown * l4d2_slowdown_gunfire at maximum damage."); hCvarSdDeagleMod = CreateConVar("l4d2_slowdown_deagle_percent", "0.1", "Deagles cause this much slowdown * l4d2_slowdown_gunfire at maximum damage."); @@ -101,6 +107,7 @@ public void OnPluginStart() hCvarSdInwaterSurvivor.AddChangeHook(OnConVarChanged); hCvarSdInwaterDuringTank.AddChangeHook(OnConVarChanged); hCvarTankSpeedVS.AddChangeHook(OnConVarChanged); + hCvarCrouchSpeedMod.AddChangeHook(OnConVarChanged); HookEvent("tank_spawn", TankSpawn, EventHookMode_PostNoCopy); HookEvent("round_start", RoundStart, EventHookMode_PostNoCopy); @@ -124,6 +131,7 @@ void CvarsToType() fSurvWaterSpeed = hCvarSdInwaterSurvivor.FloatValue; fSurvWaterSpeedDuringTank = hCvarSdInwaterDuringTank.FloatValue; fTankRunSpeed = hCvarTankSpeedVS.FloatValue; + fCrouchSpeedMod = hCvarCrouchSpeedMod.FloatValue; } public Action TankSpawn(Event event, const char[] name, bool dontBroadcast) @@ -158,6 +166,48 @@ public Action Timer_CheckTank(Handle timer) public Action RoundStart(Event event, const char[] name, bool dontBroadcast) { tankInPlay = false; + HookCrouchTriggers(); +} + +public void HookCrouchTriggers() +{ + bFoundCrouchTrigger = false; + + // Hook trigger_multiple entities that are named "l4d2_slowdown_crouch_speed" + if (fCrouchSpeedMod != 1.0) { + // Reset array + for (int i = 1; i <= MaxClients; i++) { + bPlayerInCrouchTrigger[i] = false; + } + + int iEntity = -1; + char targetname[128]; + + while ((iEntity = FindEntityByClassname(iEntity, "trigger_multiple")) != -1) { + GetEntPropString(iEntity, Prop_Data, "m_iName", targetname, sizeof(targetname)); + + if (StrEqual(targetname, "l4d2_slowdown_crouch_speed", false)) { + HookSingleEntityOutput(iEntity, "OnStartTouch", CrouchSpeedStartTouch); + HookSingleEntityOutput(iEntity, "OnEndTouch", CrouchSpeedEndTouch); + + bFoundCrouchTrigger = true; + } + } + } +} + +public void CrouchSpeedStartTouch(const char[] output, int caller, int activator, float delay) +{ + if (0 < activator <= MaxClients && IsClientInGame(activator)) { + bPlayerInCrouchTrigger[activator] = true; + } +} + +public void CrouchSpeedEndTouch(const char[] output, int caller, int activator, float delay) +{ + if (0 < activator <= MaxClients && IsClientInGame(activator)) { + bPlayerInCrouchTrigger[activator] = false; + } } /** @@ -250,6 +300,29 @@ public Action L4D_OnGetRunTopSpeed(int client, float &retVal) return Plugin_Continue; } +/** + * + * Slowdown from crouching: All players + * +**/ +public Action L4D_OnGetCrouchTopSpeed(int client, float &retVal) +{ + if (fCrouchSpeedMod == 1.0 || !bFoundCrouchTrigger || !IsClientInGame(client)) { + return Plugin_Continue; + } + + if (bPlayerInCrouchTrigger[client]) { + bool bGrounded = (GetEntityFlags(client) & FL_ONGROUND) ? true : false; + + if (bGrounded) { + retVal = retVal * fCrouchSpeedMod; // 75 * modifier + return Plugin_Handled; + } + } + + return Plugin_Continue; +} + // The old slowdown plugin's cvars weren't quite intuitive, so I'll try to fix it this time float GetActualValue(ConVar cvar) { diff --git a/cfg/cfgogl/apex/shared_settings.cfg b/cfg/cfgogl/apex/shared_settings.cfg index cf0102ef9..15cfed2bb 100644 --- a/cfg/cfgogl/apex/shared_settings.cfg +++ b/cfg/cfgogl/apex/shared_settings.cfg @@ -83,6 +83,7 @@ confogl_addcvar l4d2_slowdown_gunfire_tank 0.23 confogl_addcvar l4d2_slowdown_water_tank 0 confogl_addcvar l4d2_slowdown_water_survivors -1 confogl_addcvar l4d2_slowdown_water_survivors_during_tank 220 +confogl_addcvar l4d2_slowdown_crouch_speed_mod 1 confogl_addcvar l4d2_slowdown_pistol_percent 0.5 confogl_addcvar l4d2_slowdown_deagle_percent 0.8 confogl_addcvar l4d2_slowdown_uzi_percent 0.7 diff --git a/cfg/cfgogl/eq/shared_settings.cfg b/cfg/cfgogl/eq/shared_settings.cfg index 69c51be93..1aae188b8 100644 --- a/cfg/cfgogl/eq/shared_settings.cfg +++ b/cfg/cfgogl/eq/shared_settings.cfg @@ -79,6 +79,7 @@ confogl_addcvar l4d2_slowdown_gunfire_tank 0 confogl_addcvar l4d2_slowdown_water_tank 0 confogl_addcvar l4d2_slowdown_water_survivors 220 confogl_addcvar l4d2_slowdown_water_survivors_during_tank 0 +confogl_addcvar l4d2_slowdown_crouch_speed_mod 1 // [l4d_tank_damage_announce.smx] confogl_addcvar l4d_tankdamage_enabled 1 diff --git a/cfg/cfgogl/nextmod/shared_settings.cfg b/cfg/cfgogl/nextmod/shared_settings.cfg index 0cb86d66f..9375e4637 100644 --- a/cfg/cfgogl/nextmod/shared_settings.cfg +++ b/cfg/cfgogl/nextmod/shared_settings.cfg @@ -88,6 +88,7 @@ confogl_addcvar l4d2_slowdown_gunfire_tank 0 confogl_addcvar l4d2_slowdown_water_tank 0 confogl_addcvar l4d2_slowdown_water_survivors -1 confogl_addcvar l4d2_slowdown_water_survivors_during_tank 220 +confogl_addcvar l4d2_slowdown_crouch_speed_mod 1 // [l4d2_horde_equaliser.smx] confogl_addcvar l4d2_heq_checkpoint_sound 1 diff --git a/cfg/cfgogl/pmelite/pmelite.cfg b/cfg/cfgogl/pmelite/pmelite.cfg index 3875a0cd3..7ae770b92 100644 --- a/cfg/cfgogl/pmelite/pmelite.cfg +++ b/cfg/cfgogl/pmelite/pmelite.cfg @@ -271,6 +271,7 @@ confogl_addcvar l4d2_slowdown_gunfire_tank 0.24 confogl_addcvar l4d2_slowdown_water_tank 0 confogl_addcvar l4d2_slowdown_water_survivors -1 confogl_addcvar l4d2_slowdown_water_survivors_during_tank 220 +confogl_addcvar l4d2_slowdown_crouch_speed_mod 1 confogl_addcvar l4d2_slowdown_pistol_percent 0.5 confogl_addcvar l4d2_slowdown_deagle_percent 0.8 confogl_addcvar l4d2_slowdown_uzi_percent 0.7 diff --git a/cfg/cfgogl/zonehunters/shared_settings.cfg b/cfg/cfgogl/zonehunters/shared_settings.cfg index 7c70d6d30..b3992c431 100644 --- a/cfg/cfgogl/zonehunters/shared_settings.cfg +++ b/cfg/cfgogl/zonehunters/shared_settings.cfg @@ -75,6 +75,7 @@ confogl_addcvar l4d2_slowdown_gunfire_tank 0 confogl_addcvar l4d2_slowdown_water_tank 0 confogl_addcvar l4d2_slowdown_water_survivors -1 confogl_addcvar l4d2_slowdown_water_survivors_during_tank 220 +confogl_addcvar l4d2_slowdown_crouch_speed_mod 1.4 // [l4d_tank_damage_announce.smx] confogl_addcvar l4d_tankdamage_enabled 1 diff --git a/cfg/cfgogl/zonemod/shared_settings.cfg b/cfg/cfgogl/zonemod/shared_settings.cfg index 1810fe6d5..c83e55cc9 100644 --- a/cfg/cfgogl/zonemod/shared_settings.cfg +++ b/cfg/cfgogl/zonemod/shared_settings.cfg @@ -79,6 +79,7 @@ confogl_addcvar l4d2_slowdown_gunfire_tank 0 confogl_addcvar l4d2_slowdown_water_tank 0 confogl_addcvar l4d2_slowdown_water_survivors -1 confogl_addcvar l4d2_slowdown_water_survivors_during_tank 220 +confogl_addcvar l4d2_slowdown_crouch_speed_mod 1.4 // [l4d_tank_damage_announce.smx] confogl_addcvar l4d_tankdamage_enabled 1 diff --git a/cfg/cfgogl/zonemodold/shared_settings.cfg b/cfg/cfgogl/zonemodold/shared_settings.cfg index 307e8339c..fe7e0faff 100644 --- a/cfg/cfgogl/zonemodold/shared_settings.cfg +++ b/cfg/cfgogl/zonemodold/shared_settings.cfg @@ -78,6 +78,7 @@ confogl_addcvar l4d2_slowdown_gunfire_tank 0 confogl_addcvar l4d2_slowdown_water_tank 0 confogl_addcvar l4d2_slowdown_water_survivors -1 confogl_addcvar l4d2_slowdown_water_survivors_during_tank 220 +confogl_addcvar l4d2_slowdown_crouch_speed_mod 1 // [l4d2_horde_equaliser.smx] confogl_addcvar l4d2_heq_checkpoint_sound 1 diff --git a/cfg/cfgogl/zoneretro/shared_settings.cfg b/cfg/cfgogl/zoneretro/shared_settings.cfg index b3b2e3821..f7f0130d4 100644 --- a/cfg/cfgogl/zoneretro/shared_settings.cfg +++ b/cfg/cfgogl/zoneretro/shared_settings.cfg @@ -76,6 +76,7 @@ confogl_addcvar l4d2_slowdown_gunfire_tank 0 confogl_addcvar l4d2_slowdown_water_tank 0 confogl_addcvar l4d2_slowdown_water_survivors -1 confogl_addcvar l4d2_slowdown_water_survivors_during_tank 220 +confogl_addcvar l4d2_slowdown_crouch_speed_mod 1.4 // [l4d_tank_damage_announce.smx] confogl_addcvar l4d_tankdamage_enabled 1