X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fmutator%2Fdamagetext%2Fcl_damagetext.qh;h=f845a97cd225fd3d2fd3a9f1f62fd650db117617;hb=df1b8ac95e18b7f00fa01d2f081bf6a0772ff2e9;hp=e76b4119a73944005b78cb666d47f3189500b2b3;hpb=95a6bb7464dc7023b6548df1a064a350dc61a25d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qh b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qh index e76b4119a..f845a97cd 100644 --- a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qh +++ b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qh @@ -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