From 40033e9dab40769675a9aa75f02d151f031ebb11 Mon Sep 17 00:00:00 2001 From: BotoX Date: Thu, 9 Aug 2018 19:44:44 +0200 Subject: [PATCH] PushNades: add config --- PushNades/scripting/PushNades.sp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/PushNades/scripting/PushNades.sp b/PushNades/scripting/PushNades.sp index 636a079a..a75a6490 100644 --- a/PushNades/scripting/PushNades.sp +++ b/PushNades/scripting/PushNades.sp @@ -27,14 +27,12 @@ public void OnPluginStart() g_hCVar_PushScale = CreateConVar("sm_hegrenade_push_scale", "0", "Make the push scale with the distance to the explosion", 0, true, 0.0, true, 1.0); g_hCVar_PushRange = CreateConVar("sm_hegrenade_push_range", "500", "Range arround Explosion in which Zombies are affected by the push."); g_hCVar_PushStrength = CreateConVar("sm_hegrenade_push_strength", "2500", "How strong the HE-Grenade pushes back"); + + AutoExecConfig(true, "plugin.PushNades"); + HookEvent("hegrenade_detonate", OnHEDetonate); } -public void OnMapStart() -{ - -} - public Action OnHEDetonate(Event hEvent, const char[] sEvent, bool bDontBroadcast) { if (!GetConVarBool(g_hCVar_PushNadesEnabled)) @@ -109,4 +107,4 @@ bool IsValidClient(int client, bool nobots = true) return false; } return IsClientInGame(client); -} \ No newline at end of file +}