]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
cvar in cfg
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 17 Nov 2016 18:26:00 +0000 (19:26 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 17 Nov 2016 18:26:00 +0000 (19:26 +0100)
defaultXonotic.cfg
qcsrc/common/mutators/mutator/damagetext/damagetext.qc

index 7322bd42de0fd4bcafe4ea446a6ed53be7326f50..5ca7f4e549a8a480d6c5596caff7a81523baf4c3 100644 (file)
@@ -786,6 +786,7 @@ seta g_waypointsprite_tactical 1 "tactical overlay on turrets when in a vehicle"
 seta cl_damagetext "1" "Draw damage dealt where you hit the enemy"
 seta cl_damagetext_format "-{total}" "How to format the damage text. {health}, {armor}, {total}, {potential}: full damage not capped to target's health, {potential_health}: health damage not capped to target's health"
 seta cl_damagetext_format_verbose 0 "{health} shows {potential_health} too when they differ; {total} shows {potential} too when they differ"
+seta cl_damagetext_format_hide_redundant 0 "hide {armor} if 0; hide {potential} and {potential_health} when same as actual"
 seta cl_damagetext_color "1 1 0" "Damage text color"
 seta cl_damagetext_color_per_weapon "0" "Damage text uses weapon color"
 seta cl_damagetext_size "8" "Damage text font size"
index 7514882e3c0b8967f1983586d36fc16f165f32be..9cd5bdf3074c275c602bd9ecfc95957fedea2255 100644 (file)
@@ -17,7 +17,7 @@ REGISTER_MUTATOR(damagetext, true);
 AUTOCVAR_SAVE(cl_damagetext,                        bool,   true,       "Draw damage dealt where you hit the enemy");
 AUTOCVAR_SAVE(cl_damagetext_format,                 string, "-{total}", "How to format the damage text. {health}, {armor}, {total}, {potential}: full damage not capped to target's health, {potential_health}: health damage not capped to target's health");
 AUTOCVAR_SAVE(cl_damagetext_format_verbose,         bool,   false,      "{health} shows {potential_health} too when they differ; {total} shows {potential} too when they differ");
-AUTOCVAR_SAVE(cl_damagetext_format_hide_redundant,  bool,   false,      "hide {armor} if 0 and potential when same as actual"); // TODO cfg
+AUTOCVAR_SAVE(cl_damagetext_format_hide_redundant,  bool,   false,      "hide {armor} if 0; hide {potential} and {potential_health} when same as actual");
 STATIC_INIT(DamageText_LegacyFormat) {
     if (strstrofs(autocvar_cl_damagetext_format, "{", 0) < 0) autocvar_cl_damagetext_format = "-{total}";
 }