From 26fe9affabaf1edc6263b4c435c59816bb55aa1d Mon Sep 17 00:00:00 2001 From: rivesid <56509898+rivesid@users.noreply.github.com> Date: Mon, 4 Sep 2023 17:18:59 +0300 Subject: [PATCH] Revolver, Armor rebalancing and SCP-939 speed on HP lost buff (#116) --- addons/sourcemod/configs/scp_sf/weapons.cfg | 12 ++++++------ addons/sourcemod/scripting/scp_sf/scps/939.sp | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/sourcemod/configs/scp_sf/weapons.cfg b/addons/sourcemod/configs/scp_sf/weapons.cfg index 7164d942..9fa30df2 100644 --- a/addons/sourcemod/configs/scp_sf/weapons.cfg +++ b/addons/sourcemod/configs/scp_sf/weapons.cfg @@ -289,7 +289,7 @@ "61" // Revolver { "classname" "tf_weapon_revolver" - "attributes" "1 ; 0.760417 ; 6 ; 0.85 ; 43 ; 1 ; 96 ; 1.666667 ; 106 ; 0.25 ; 199 ; 0.9 ; 389 ; 3 ; 4363 ; 0.5" + "attributes" "2 ; 1.5 ; 5 ; 1.25 ; 96 ; 1.25 ; 106 ; 0.25 ; 389 ; 3" "strip" "1" "type" "1" "clip" "6" @@ -297,7 +297,7 @@ "bullet" "10" "class" "spy" - "model" "models/weapons/c_models/c_ambassador/c_ambassador.mdl" + "model" "models/weapons/c_models/c_revolver/c_revolver.mdl" "func_damage" "Items_HeadshotHit" "func_button" "Items_DisarmerButton" @@ -912,7 +912,7 @@ "30019" // Light Armor { "classname" "tf_weapon_fists" - "attributes" "62 ; 0.82 ; 64 ; 0.84 ; 66 ; 0.84 ; 252 ; 0.8 ; 476 ; 0" + "attributes" "54; 0.8 ; 62 ; 0.8 ; 64 ; 0.95 ; 66 ; 0.8 ; 252 ; 0.8 " "type" "6" "hide" "1" @@ -928,7 +928,7 @@ "30020" // Combat Armor { "classname" "tf_weapon_fists" - "attributes" "62 ; 0.68 ; 64 ; 0.74 ; 66 ; 0.74 ; 252 ; 0.6 ; 476 ; 0" + "attributes" "54 ; 0.75 ; 62 ; 0.95 ; 64 ; 0.7 ; 66 ; 0.7 ; 252 ; 0.5 " "type" "6" "hide" "1" @@ -945,7 +945,7 @@ "30021" // Heavy Armor { "classname" "tf_weapon_fists" - "attributes" "62 ; 0.68 ; 64 ; 0.68 ; 66 ; 0.68 ; 252 ; 0.4 ; 476 ; 0" + "attributes" "54 ; 0.7 ; 62 ; 0.9 ; 64 ; 0.6 ; 66 ; 0.6 ; 252 ; 0.2 " "type" "6" "hide" "1" @@ -965,4 +965,4 @@ { "classname" "tf_wearable" } -} \ No newline at end of file +} diff --git a/addons/sourcemod/scripting/scp_sf/scps/939.sp b/addons/sourcemod/scripting/scp_sf/scps/939.sp index 43ce20c1..46036a07 100644 --- a/addons/sourcemod/scripting/scp_sf/scps/939.sp +++ b/addons/sourcemod/scripting/scp_sf/scps/939.sp @@ -4,7 +4,7 @@ static const int HealthMax = 1800; // Max standard health static const int HealthExtra = 600; // Max regenerable health -static const float SpeedExtra = 50.0; // Extra speed while low health +static const float SpeedExtra = 70.0; // Extra speed while low health static const float GlowRange = 800.0; // Max outline range static int Health[MAXPLAYERS + 1]; @@ -66,7 +66,7 @@ public void SCP939_OnMaxHealth(int client, int &health) public void SCP939_OnSpeed(int client, float &speed) { - speed += (1.0-(Health[client]/HealthMax))*SpeedExtra; + speed += (1.0-(Pow(float(Health[client])/float(HealthMax), 2.0)))*SpeedExtra; } public Action SCP939_OnDealDamage(int client, int victim, int &inflictor, float &damage, int &damagetype, int &weapon, float damageForce[3], float damagePosition[3], int damagecustom) @@ -119,4 +119,4 @@ public bool SCP939_OnGlowPlayer(int client, int victim) return true; } return false; -} \ No newline at end of file +}