]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qh
DamageText code quality changes and new DT lifetime and accumulation lifetime cvars
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / damagetext / cl_damagetext.qh
index e76b4119a73944005b78cb666d47f3189500b2b3..f845a97cd225fd3d2fd3a9f1f62fd650db117617 100644 (file)
@@ -29,3 +29,14 @@ float autocvar_cl_damagetext_2d_close_range;
 bool autocvar_cl_damagetext_2d_out_of_view;
 vector autocvar_cl_damagetext_velocity_screen;
 vector autocvar_cl_damagetext_offset_screen;
+
+// TODO: remove the value init and sort them above properly after next (0.9) release
+// or the release after it to support the old-stable release
+// this can't be done now as players would lack these from their configs then
+#if 0
+float autocvar_cl_damagetext_lifetime = -1;
+float autocvar_cl_damagetext_accumulate_lifetime = -1;
+#else
+AUTOCVAR_SAVE(cl_damagetext_lifetime,             float,  -1,  "Damage text lifetime, edit this if you wish for damage text to disappear before it fades out");
+AUTOCVAR_SAVE(cl_damagetext_accumulate_lifetime,  float,  -1,  "Only update existing damage text when it is younger than this many seconds, negative always updates");
+#endif