forked from ColonialMarines-Mirror/ColonialMarines-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface.dm
161 lines (151 loc) · 4.12 KB
/
interface.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
//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()
set name = "wiki"
set desc = "Visit the wiki."
set hidden = 1
if(config.wikiurl)
if(alert("This will open the wiki in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.wikiurl)
else
to_chat(src, "<span class='warning'>The wiki URL is not set in the server configuration.</span>")
return
/client/verb/forum()
set name = "forum"
set desc = "Visit the forum."
set hidden = 1
if(config.forumurl)
if(alert("This will open the forum in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.forumurl)
else
to_chat(src, "<span class='warning'>The forum URL is not set in the server configuration.</span>")
return
/client/verb/rules()
set name = "rules"
set desc = "Read our rules."
set hidden = 1
if(config.rulesurl)
if(alert("This will open the rules in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.rulesurl)
else
to_chat(src, "<span class='warning'>The rules URL is not set in the server configuration.</span>")
return
/client/verb/patreon()
set name = "Patreon"
set desc = "Like our server? Buy us and get satisfaction for your efforts."
set hidden = 1
if(config.donationurl)
if(alert("This will open our donation page in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.donationurl)
else
to_chat(src, "<span class='warning'>The donation URL is not set in the server configuration.</span>")
return
/client/verb/submitbug()
set name = "Submit Bug"
set desc = "Submit a bug."
set hidden = 1
if(config.bugtrackerurl)
if(alert("This will open our bug tracker page in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.bugtrackerurl)
else
to_chat(src, "<span class='warning'>The bug tracker URL is not set in the server configuration.</span>")
return
/client/verb/webmap()
var/ship_link
var/ground_link
set name = "webmap"
set desc = "Opens the webmap"
set hidden = 1
var/choice = alert("Do you want to view the ground or the ship?",,"Ship","Ground","Cancel")
switch(choice)
if("Ship")
switch(MAIN_SHIP_NAME)
if("USS Almayer")
ship_link = config.almayer_url
if(!ship_link)
to_chat(src, "<span class='warning'>This ship map has no webmap setup.</span>")
return
src << link(ship_link)
if("Ground")
switch(map_tag)
if("Ice Colony")
ground_link = config.icecolony_url
if("LV-624")
ground_link = config.lv624_url
if("Solaris Ridge")
ground_link = config.bigred_url
if("Prison Station")
ground_link = config.prisonstation_url
if("Whiskey Outpost")
ground_link = config.whiskeyoutpost_url
if(!ground_link)
to_chat(src, "<span class='warning'>This ground map has no webmap setup.</span>")
return
src << link(ground_link)
else
return
return
/client/verb/hotkeys_help()
set name = "hotkeys-help"
set category = "OOC"
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
\tm = me
\tt = say
\to = ooc
\tspace = unique-action (commonly for pumping shotguns)
\tx = swap-hand
\tz = activate held object (or y)
\t1 = help-intent
\t2 = disarm-intent
\t3 = grab-intent
\t4 = harm-intent
</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+o = ooc
\tspace = unique-action (commonly for pumping shotguns)
\tCtrl+1 = help-intent
\tCtrl+2 = disarm-intent
\tCtrl+3 = grab-intent
\tCtrl+4 = harm-intent
\tDEL = pull
\tINS = cycle-intents-right
\tHOME = drop
\tPGUP = swap-hand
\tPGDN = activate held object
\tEND = throw
</font>"}
var/admin = {"<font color='purple'>
Admin:
\tF3 = Asay (adminsay)
\tF5 = Aghost (admin-ghost)
\tF6 = player-panel
\tF7 = admin-pm
\tF8 = Invisimin
</font>"}
src << hotkey_mode
src << other
if(holder)
src << admin