Skip to content

ConVars

Phil25 edited this page Dec 28, 2023 · 18 revisions

Overview

NAME VALUES DESCRIPTION DEFAULT
⚙️ GENERAL
sm_rtd2_version string Current RTD version, do not change. based on version
sm_rtd2_enabled 0/1 Enable or disable RTD. 1
sm_rtd2_autoupdate 0/1 Enable or disable automatic updating of RTD when Updater is installed. 1
sm_rtd2_reloadupdate 0/1 Enable or disable automatic RTD reloading when a new version has been downloaded. 1
sm_rtd2_custom_config string Enable or disable automatic RTD reloading when a new version has been downloaded. rtd2_perks.custom.cfg
💬 MESSAGES
sm_rtd2_log 0/1 Should the plugin's actions be logged. 1
sm_rtd2_chat flags Which chat messages should be shown. How to use. 1
sm_rtd2_showtriggers 0/1 Should the chat triggers be shown once they're typed? 1
sm_rtd2_showtime 0/1 Should the duration the perk was applied for be displayed? 1
sm_rtd2_show_description 0/1 Should the description of the perk be displayed? 1
💬 PERK APPLICATION
sm_rtd2_duration integer Default time for the perk to last. This value can be overridden for any perk in rtd2_perks.custom.cfg 1
sm_rtd2_interval integer Time in seconds a client has to wait to roll again after a perk has finished. 1
sm_rtd2_disabled string Enter the effects you'd like to disable, separated by commas. You can use IDs, tokens or tags which occur in a single perk (ex. 0, toxic, sandvich disables first 3). 1
💬 ACCESS & TRIGGERS
sm_rtd2_accessflags string Admin flags which are required to use RTD. If blank, all is assumed. 1
sm_rtd2_insetup 0/1 Should players be able to roll in Setup? 1
sm_rtd2_triggers string Chat triggers which will initiate rolls, seperated by comma. 1
💬 MODES & RESTRICTIONS
sm_rtd2_team 0/1/2 Restrict teams, 0 - No team restriction, 1 - Only BLU, 2 - Only RED. 1
sm_rtd2_mode 0/1/2 No restrain except the interval, 1 - Limit by rollers, 2 - Limit by rollers in team. 1
sm_rtd2_playerlimit number How many players could use RTD at once. Active only when RTD Mode is 1 1
sm_rtd2_teamlimit number How many players in each team could use RTD at once. Active only when RTD Mode is 2 1
sm_rtd2_respawnstuck 0/1 Should players who's been detected stuck be automatically respawed (e.g. after Tiny Mann)? 1
sm_rtd2_repeat_player number How many perks are not allowed to repeat, per player. 1
sm_rtd2_repeat_perk number How many perks are not allowed to repeat, globally. 1
💬 RANDOMNESS
sm_rtd2_chance 0.0-1.0 Chance of rolling a good perk. 1
sm_rtd2_dchance 0.0-1.0 Chance of rolling a good perk if roller is a donator. 1
sm_rtd2_donatorflag flag Admin flag required for donators. 1
💬 HUD
sm_rtd2_timerpos_x 0.0-1.0 The X position of the perk HUD timer display. -1.0 to center. 1
sm_rtd2_timerpos_y 0.0-1.0 The Y position of the perk HUD timer display. -1.0 to center. 1

Using sm_rtd2_chat

  • 1 — RTD ad at round start,
  • 2 — Perk applications for the roller,
  • 4 — Perk applications for others,
  • 8 — Perk removals for the roller,
  • 16 — Perk removals for others,
  • 32 — Reasons for being unable to roll.

You must add/subtract the values to edit the functionality. For example:

  • "63" — enable all messages (1 + 2 + 4 + 8 + 16 + 32),
  • "0" — disable all messages,
  • "46" — display perk applications to all, removals to the rollers and the reasons for being unable to roll (2 + 4 + 8 + 32).