Task #1240

Replace debug CVARs with Lua

Added by keMoN 3 months ago. Updated about 1 month ago.

Status:New% Done:

0%

Priority:LowSpent time:-
Assignee:-
Category:Mod CGAME
Target version:2.78
OS: Arch:

Description

There are various CVARs in the game which are clearly used only for debugging purposes and don’t need to be in a public mod.
Can those be removed from the mod and moved to an optional Lua script as well (see #1238) so devs in need of them can quickly attach them to their game?

CVARs in question:
cg_debugAnim
cg_debugEvents
cg_debugPosition
cg_debugSkills
cg_gun_frame
cg_showMiss
cg_stats
cl_debugMove
cl_showmouserate
cl_shownet
cl_shownuments
cl_showSend
cl_showServerCommands
cl_showTimeDelta
com_showTrace
com_speeds

I’ll populate this ticket with more if I find additional debug CVARs

//EDIT:
Maybe rename them all to debug_* and only make them accessible with enabled 'fs_debug’ mode


Related issues

Related to ET: Legacy Development - Task #1238: Replace medic syringe heal option by Lua Fixed 31.03.2019

History

#1 Updated by keMoN 3 months ago

  • Related to Task #1238: Replace medic syringe heal option by Lua added

#2 Updated by Spyhawk 3 months ago

Ah... not convinced by that one. Debug cvars have the purpose of helping developers. While the’re really useless for players, they’re essential to us (especially when Lua scripts cannot replace them efficiently).
We shoudl probably hide them behind a debug mode though - I believe there is a macro we use for some of these.

#3 Updated by keMoN 3 months ago

  • Description updated (diff)

cg_showMiss
cg_stats
com_showTrace

#4 Updated by keMoN 3 months ago

  • Description updated (diff)

#5 Updated by keMoN 2 months ago

  • Description updated (diff)

#6 Updated by keMoN about 1 month ago

  • Description updated (diff)

#7 Updated by keMoN about 1 month ago

  • Description updated (diff)

#8 Updated by keMoN about 1 month ago

  • Description updated (diff)

#9 Updated by keMoN about 1 month ago

  • Description updated (diff)

Also available in: Atom PDF