Skip to content

Commit

Permalink
Revolver, Armor rebalancing and SCP-939 speed on HP lost buff (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivesid authored Sep 4, 2023
1 parent c56d7d7 commit 26fe9af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions addons/sourcemod/configs/scp_sf/weapons.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,15 @@
"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"
"ammo" "0"
"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"
Expand Down Expand Up @@ -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"

Expand All @@ -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"

Expand All @@ -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"

Expand All @@ -965,4 +965,4 @@
{
"classname" "tf_wearable"
}
}
}
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/scp_sf/scps/939.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -119,4 +119,4 @@ public bool SCP939_OnGlowPlayer(int client, int victim)
return true;
}
return false;
}
}

0 comments on commit 26fe9af

Please sign in to comment.