]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update the help me ping a bit to be more useful
authorSamual Lenks <samual@xonotic.org>
Mon, 10 Sep 2012 06:10:59 +0000 (02:10 -0400)
committerSamual Lenks <samual@xonotic.org>
Mon, 10 Sep 2012 06:10:59 +0000 (02:10 -0400)
gamemodes.cfg
qcsrc/server/mutators/gamemode_ctf.qc

index 22a09e5681ec2253dee4ed6726a0c1c89ec22ff2..f5c9acdf72e9e6ccc9983bb93900cb360e5fddca 100644 (file)
@@ -174,7 +174,7 @@ set g_ctf_flag_return_time 15
 set g_ctf_flag_return_dropped 100
 set g_ctf_flag_return_damage 0
 set g_ctf_flag_return_when_unreachable 1 "automatically return the flag if it falls into lava/slime/trigger hurt"
-set g_ctf_flagcarrier_auto_helpme_when_damaged 50
+set g_ctf_flagcarrier_auto_helpme_when_damaged 100
 set g_ctf_flagcarrier_allow_vehicle_carry 1 
 set g_ctf_flagcarrier_selfdamagefactor 1
 set g_ctf_flagcarrier_selfforcefactor 1
index cf28dc168d96a6f9fe8fbee3052ffbff602e1d93..ad047a221c5ab65976d1a97b2ba218d40b3dc39c 100644 (file)
@@ -1040,7 +1040,7 @@ MUTATOR_HOOKFUNCTION(ctf_PlayerDamage) // for changing damage and force values t
        else if(frag_target.flagcarried && (frag_target.deadflag == DEAD_NO) && IsDifferentTeam(frag_target, frag_attacker)) // if the target is a flagcarrier
        {
                if(autocvar_g_ctf_flagcarrier_auto_helpme_when_damaged > ('1 0 0' * healtharmor_maxdamage(frag_target.health, frag_target.armorvalue, autocvar_g_balance_armor_blockpercent)))
-                       WaypointSprite_HelpMePing(frag_target.wps_flagcarrier); // TODO: only do this if there is a significant loss of health?
+                       WaypointSprite_HelpMePing(frag_target.wps_flagcarrier);
        }
        return FALSE;
 }