mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-10 04:36:06 +00:00
225 lines
6.1 KiB
Plaintext
225 lines
6.1 KiB
Plaintext
//Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs.
|
|
/client/verb/wiki(query as text)
|
|
set name = "wiki"
|
|
set desc = "Type what you want to know about. This will open the wiki on your web browser."
|
|
set category = "OOC"
|
|
if(config_legacy.wikiurl)
|
|
if(query)
|
|
if(config_legacy.wikisearchurl)
|
|
var/output = replacetext(config_legacy.wikisearchurl, "%s", url_encode(query))
|
|
src << link(output)
|
|
else
|
|
to_chat(src, SPAN_WARNING("The wiki search URL is not set in the server configuration."))
|
|
else
|
|
src << link(config_legacy.wikiurl)
|
|
else
|
|
to_chat(src, SPAN_WARNING("The wiki URL is not set in the server configuration."))
|
|
return
|
|
|
|
/client/verb/forum()
|
|
set name = "forum"
|
|
set desc = "Visit the forum."
|
|
set hidden = 1
|
|
if( config_legacy.forumurl )
|
|
if(alert("This will open the forum in your browser. Are you sure?",,"Yes","No")=="No")
|
|
return
|
|
src << link(config_legacy.forumurl)
|
|
else
|
|
to_chat(src, SPAN_WARNING("The forum URL is not set in the server configuration."))
|
|
return
|
|
|
|
/client/verb/rules()
|
|
set name = "Rules"
|
|
set desc = "Show Server Rules."
|
|
set hidden = 1
|
|
|
|
if(config_legacy.rulesurl)
|
|
if(alert("This will open the rules in your browser. Are you sure?",,"Yes","No")=="No")
|
|
return
|
|
src << link(config_legacy.rulesurl)
|
|
else
|
|
to_chat(src, SPAN_DANGER("The rules URL is not set in the server configuration."))
|
|
return
|
|
|
|
/client/verb/map()
|
|
set name = "Map"
|
|
set desc = "See the map."
|
|
set hidden = 1
|
|
|
|
if(config_legacy.mapurl)
|
|
if(alert("This will open the map in your browser. Are you sure?",,"Yes","No")=="No")
|
|
return
|
|
src << link(config_legacy.mapurl)
|
|
else
|
|
to_chat(src, SPAN_DANGER("The map URL is not set in the server configuration."))
|
|
return
|
|
|
|
/client/verb/github()
|
|
set name = "GitHub"
|
|
set desc = "Visit the GitHub"
|
|
set hidden = 1
|
|
|
|
if(CONFIG_GET(string/githuburl))
|
|
if(alert("This will open the GitHub in your browser. Are you sure?",,"Yes","No")=="No")
|
|
return
|
|
src << link(CONFIG_GET(string/githuburl))
|
|
else
|
|
to_chat(src, SPAN_DANGER("The GitHub URL is not set in the server configuration."))
|
|
return
|
|
|
|
/client/verb/reportissue()
|
|
set name = "report-issue"
|
|
set desc = "Report an issue"
|
|
set hidden = 1
|
|
var/githuburl = CONFIG_GET(string/githuburl)
|
|
if(githuburl)
|
|
var/message = "This will open the Github issue reporter in your browser. Are you sure?"
|
|
if(GLOB.revdata.testmerge.len)
|
|
message += "<br>The following experimental changes are active and are probably the cause of any new or sudden issues you may experience. If possible, please try to find a specific thread for your issue instead of posting to the general issue tracker:<br>"
|
|
message += GLOB.revdata.GetTestMergeInfo(FALSE)
|
|
if(tgalert(src, message, "Report Issue","Yes","No")!="Yes")
|
|
return
|
|
var/static/issue_template = file2text(".github/ISSUE_TEMPLATE.md")
|
|
var/servername = "Citadel Station 13 RP" // CONFIG_GET(string/servername)
|
|
var/url_params = "Reporting client version: [byond_version].[byond_build]\n\n[issue_template]"
|
|
if(GLOB.round_id || servername)
|
|
url_params = "Issue reported from [GLOB.round_id ? " Round ID: [GLOB.round_id][servername ? " ([servername])" : ""]" : servername]\n\n[url_params]"
|
|
DIRECT_OUTPUT(src, link("[githuburl]/issues/new?body=[url_encode(url_params)]"))
|
|
else
|
|
to_chat(src, "<span class='danger'>The Github URL is not set in the server configuration.</span>")
|
|
return
|
|
|
|
/client/verb/changelog()
|
|
set name = "Changelog"
|
|
set category = "OOC"
|
|
if(!GLOB.changelog_tgui)
|
|
GLOB.changelog_tgui = new /datum/changelog()
|
|
|
|
GLOB.changelog_tgui.ui_interact(usr)
|
|
if(prefs.lastchangelog != GLOB.changelog_hash)
|
|
prefs.lastchangelog = GLOB.changelog_hash
|
|
prefs.save_preferences()
|
|
winset(src, "infowindow.changelog", "font-style=;")
|
|
|
|
/client/verb/hotkeys_help()
|
|
set name = "hotkeys-help"
|
|
set category = "OOC"
|
|
|
|
var/admin = {"<font color='purple'>
|
|
Admin:
|
|
\tF5 = Aghost (admin-ghost)
|
|
\tF6 = player-panel-new
|
|
\tF7 = admin-pm
|
|
\tF8 = Invisimin
|
|
</font>"}
|
|
|
|
var/hotkey_mode = {"<font color='purple'>
|
|
Hotkey-Mode: (hotkey-mode must be on)
|
|
\tTAB = toggle hotkey-mode
|
|
\ta = left
|
|
\ts = down
|
|
\td = right
|
|
\tw = up
|
|
\tq = drop
|
|
\te = equip
|
|
\tr = throw
|
|
\tt = say
|
|
\t5 = emote
|
|
\tx = swap-hand
|
|
\tz = activate held object (or y)
|
|
\tj = toggle-aiming-mode
|
|
\tf = cycle-intents-left
|
|
\tg = cycle-intents-right
|
|
\t1 = help-intent
|
|
\t2 = disarm-intent
|
|
\t3 = grab-intent
|
|
\t4 = harm-intent
|
|
\tCtrl+Click = pull
|
|
\tShift+Click = examine
|
|
</font>"}
|
|
|
|
var/other = {"<font color='purple'>
|
|
Any-Mode: (hotkey doesn't need to be on)
|
|
\tCtrl+a = left
|
|
\tCtrl+s = down
|
|
\tCtrl+d = right
|
|
\tCtrl+w = up
|
|
\tCtrl+q = drop
|
|
\tCtrl+e = equip
|
|
\tCtrl+r = throw
|
|
\tCtrl+x = swap-hand
|
|
\tCtrl+z = activate held object (or Ctrl+y)
|
|
\tCtrl+f = cycle-intents-left
|
|
\tCtrl+g = cycle-intents-right
|
|
\tCtrl+1 = help-intent
|
|
\tCtrl+2 = disarm-intent
|
|
\tCtrl+3 = grab-intent
|
|
\tCtrl+4 = harm-intent
|
|
\tF1 = adminhelp
|
|
\tF2 = ooc
|
|
\tF3 = say
|
|
\tF4 = emote
|
|
\tDEL = stop pulling
|
|
\tINS = cycle-intents-right
|
|
\tHOME = drop
|
|
\tPGUP = swap-hand
|
|
\tPGDN = activate held object
|
|
\tEND = throw
|
|
</font>"}
|
|
|
|
var/robot_hotkey_mode = {"<font color='purple'>
|
|
Hotkey-Mode: (hotkey-mode must be on)
|
|
\tTAB = toggle hotkey-mode
|
|
\ta = left
|
|
\ts = down
|
|
\td = right
|
|
\tw = up
|
|
\tq = unequip active module
|
|
\tt = say
|
|
\tx = cycle active modules
|
|
\tz = activate held object (or y)
|
|
\tf = cycle-intents-left
|
|
\tg = cycle-intents-right
|
|
\t1 = activate module 1
|
|
\t2 = activate module 2
|
|
\t3 = activate module 3
|
|
\t4 = toggle intents
|
|
\t5 = emote
|
|
\tCtrl+Click = pull
|
|
\tShift+Click = examine
|
|
</font>"}
|
|
|
|
var/robot_other = {"<font color='purple'>
|
|
Any-Mode: (hotkey doesn't need to be on)
|
|
\tCtrl+a = left
|
|
\tCtrl+s = down
|
|
\tCtrl+d = right
|
|
\tCtrl+w = up
|
|
\tCtrl+q = unequip active module
|
|
\tCtrl+x = cycle active modules
|
|
\tCtrl+z = activate held object (or Ctrl+y)
|
|
\tCtrl+f = cycle-intents-left
|
|
\tCtrl+g = cycle-intents-right
|
|
\tCtrl+1 = activate module 1
|
|
\tCtrl+2 = activate module 2
|
|
\tCtrl+3 = activate module 3
|
|
\tCtrl+4 = toggle intents
|
|
\tF1 = adminhelp
|
|
\tF2 = ooc
|
|
\tF3 = say
|
|
\tF4 = emote
|
|
\tDEL = stop pulling
|
|
\tINS = toggle intents
|
|
\tPGUP = cycle active modules
|
|
\tPGDN = activate held object
|
|
</font>"}
|
|
|
|
if(isrobot(src.mob))
|
|
to_chat(src, robot_hotkey_mode)
|
|
to_chat(src, robot_other)
|
|
else
|
|
to_chat(src, hotkey_mode)
|
|
to_chat(src, other)
|
|
if(holder)
|
|
to_chat(src, admin)
|