Commit 936ebc01 authored by Martin Taibr's avatar Martin Taibr

simplify cl_handicap, update description

parent 9c4bfba7
......@@ -1072,7 +1072,7 @@ alias gl_flashblend_update "_gl_flashblend_update_$r_shadow_realtime_dlight$r_sh
set sv_clones 0 "number of clones a player may make (reset by the \"kill\" command)"
set cl_handicap 1 "the higher, the more damage you will receive (client setting) NOTE: reconnect or use sendcvar command to update the choice."
set cl_handicap 1 "multiplies damage received and divides damage dealt NOTE: reconnect or use 'sendcvar cl_handicap' to update the choice."
seta cl_clippedspectating 1 "movement collision for spectators so that you can't pass through walls and such. (client setting) NOTE: reconnect or use sendcvar command to update the choice."
......
......@@ -318,9 +318,9 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
if(!DEATH_ISSPECIAL(deathtype))
{
damage *= sqrt(bound(1.0, this.cvar_cl_handicap, 100.0));
damage *= bound(1.0, this.cvar_cl_handicap, 10.0);
if(this != attacker)
damage /= sqrt(bound(1.0, attacker.cvar_cl_handicap, 100.0));
damage /= bound(1.0, attacker.cvar_cl_handicap, 10.0);
}
if (time < this.spawnshieldtime && autocvar_g_spawnshield_blockdamage < 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment