/
light.dm
276 lines (245 loc) · 8.98 KB
/
light.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
// Light rigs are not space-capable, but don't suffer excessive slowdown or sight issues when depowered.
/obj/item/rig/light
name = "light suit control module"
desc = "A lighter, less armoured rig suit."
icon_state = "ninja_rig"
suit_type = "light suit"
armor = list(
melee = ARMOR_MELEE_KNIVES,
bullet = ARMOR_BALLISTIC_PISTOL,
laser = ARMOR_LASER_HANDGUNS,
energy = ARMOR_ENERGY_MINOR,
bomb = ARMOR_BOMB_PADDED
)
siemens_coefficient = 0.4
emp_protection = 10
online_slowdown = 0.5
offline_slowdown = 1
item_flags = ITEM_FLAG_THICKMATERIAL
offline_vision_restriction = TINT_NONE
max_pressure_protection = LIGHT_RIG_MAX_PRESSURE
min_pressure_protection = 0
chest_type = /obj/item/clothing/suit/space/rig/light
helm_type = /obj/item/clothing/head/helmet/space/rig/light
boot_type = /obj/item/clothing/shoes/magboots/rig/light
glove_type = /obj/item/clothing/gloves/rig/light
/obj/item/clothing/suit/space/rig/light
name = "suit"
breach_threshold = 18 //comparable to voidsuits
species_restricted = list(SPECIES_HUMAN,SPECIES_IPC)
allowed = list(
/obj/item/gun,
/obj/item/ammo_magazine,
/obj/item/ammo_casing,
/obj/item/melee/baton,
/obj/item/handcuffs,
/obj/item/tank,
/obj/item/device/suit_cooling_unit,
/obj/item/cell
)
max_w_class = ITEM_SIZE_SMALL
slots = 3 STORAGE_FREEFORM
/obj/item/clothing/gloves/rig/light
name = "gloves"
species_restricted = list(SPECIES_HUMAN,SPECIES_IPC)
/obj/item/clothing/shoes/magboots/rig/light
name = "boots"
species_restricted = list(SPECIES_HUMAN,SPECIES_IPC)
/obj/item/clothing/head/helmet/space/rig/light
name = "helmet"
species_restricted = list(SPECIES_HUMAN,SPECIES_IPC)
/obj/item/rig/light/hacker
name = "cybersuit control module"
suit_type = "cyber"
desc = "An advanced powered armour suit with many cyberwarfare enhancements. Comes with built-in insulated gloves for safely tampering with electronics."
icon_state = "hacker_rig"
req_access = list(access_syndicate)
airtight = 0
seal_delay = 5 //not being vaccum-proof has an upside I guess
helm_type = /obj/item/clothing/head/lightrig/hacker
chest_type = /obj/item/clothing/suit/lightrig/hacker
glove_type = /obj/item/clothing/gloves/lightrig/hacker
boot_type = /obj/item/clothing/shoes/lightrig/hacker
initial_modules = list(
/obj/item/rig_module/ai_container,
/obj/item/rig_module/power_sink,
/obj/item/rig_module/datajack,
/obj/item/rig_module/electrowarfare_suite,
/obj/item/rig_module/voice,
/obj/item/rig_module/vision/nvg,
/obj/item/rig_module/cooling_unit
)
//The cybersuit is not space-proof. It does however, have good siemens_coefficient values
/obj/item/clothing/head/lightrig/hacker
name = "HUD"
item_flags = 0
/obj/item/clothing/suit/lightrig/hacker
siemens_coefficient = 0.2
/obj/item/clothing/shoes/lightrig/hacker
siemens_coefficient = 0.2
item_flags = ITEM_FLAG_NOSLIP //All the other rigs have magboots anyways, hopefully gives the hacker suit something more going for it.
/obj/item/clothing/gloves/lightrig/hacker
siemens_coefficient = 0
item_flags = ITEM_FLAG_THICKMATERIAL | ITEM_FLAG_NOCUFFS
/obj/item/rig/light/ninja
name = "ominous suit control module"
desc = "A unique, vaccum-proof suit of nano-enhanced armor designed specifically for assassins."
suit_type = "ominous"
icon_state = "ninja_rig"
armor = list(
melee = ARMOR_MELEE_KNIVES,
bullet = ARMOR_BALLISTIC_PISTOL,
laser = ARMOR_LASER_HANDGUNS,
energy = ARMOR_ENERGY_RESISTANT,
bomb = ARMOR_BOMB_PADDED,
bio = ARMOR_BIO_SHIELDED
)
siemens_coefficient = 0.2 //heavy hardsuit level shock protection
emp_protection = 30
online_slowdown = 0
aimove_power_usage = 50
chest_type = /obj/item/clothing/suit/space/rig/light/ninja
glove_type = /obj/item/clothing/gloves/rig/light/ninja
cell_type = /obj/item/cell/hyper
req_access = list(access_syndicate)
initial_modules = list(
/obj/item/rig_module/teleporter,
/obj/item/rig_module/stealth_field,
/obj/item/rig_module/mounted/energy/energy_blade,
/obj/item/rig_module/vision,
/obj/item/rig_module/voice,
/obj/item/rig_module/fabricator/energy_net,
/obj/item/rig_module/chem_dispenser/ninja,
/obj/item/rig_module/grenade_launcher/ninja,
/obj/item/rig_module/ai_container,
/obj/item/rig_module/power_sink,
/obj/item/rig_module/datajack,
/obj/item/rig_module/self_destruct,
/obj/item/rig_module/cooling_unit,
/obj/item/rig_module/maneuvering_jets
)
/obj/item/rig/light/ninja/verb/rename_suit()
set name = "Name Operative Suit"
set desc = "Rename your hardsuit."
set category = "Object"
var/mob/M = usr
if(!M.mind) return 0
if(M.incapacitated()) return 0
var/input = sanitizeSafe(input("What do you want to name your suit?", "Rename suit"), MAX_NAME_LEN)
if(src && input && !M.incapacitated() && in_range(M,src))
if(!findtext(input, "the", 1, 4))
input = "\improper [input]"
SetName(input)
to_chat(M, "Suit naming successful!")
verbs -= /obj/item/rig/light/ninja/verb/rename_suit
return 1
/obj/item/rig/light/ninja/verb/rewrite_suit_desc()
set name = "Describe Operative suit"
set desc = "Give your hardsuit a custom description."
set category = "Object"
var/mob/M = usr
if(!M.mind) return 0
if(M.incapacitated()) return 0
var/input = sanitizeSafe(input("Please describe your voidsuit in 128 letters or less.", "write description"), MAX_DESC_LEN)
if(src && input && !M.incapacitated() && in_range(M,src))
desc = input
to_chat(M, "Suit description successful!")
verbs -= /obj/item/rig/light/ninja/verb/rename_suit
return 1
/obj/item/clothing/gloves/rig/light/ninja
name = "insulated gloves"
siemens_coefficient = 0
species_restricted = list(SPECIES_HUMAN,SPECIES_IPC)
/obj/item/clothing/suit/space/rig/light/ninja
breach_threshold = 38 //comparable to regular hardsuits
species_restricted = list(SPECIES_HUMAN,SPECIES_IPC)
/obj/item/rig/light/ninja/sol
name = "solar operative suit control module"
desc = "A sleek, military hardsuit with no model number or identifying logos besides a small Solar crest on its control module. Get tactical, marine."
suit_type = "operative"
icon_state = "solop_rig"
online_slowdown = 1
offline_slowdown = 2
initial_modules = list(
/obj/item/rig_module/vision,
/obj/item/rig_module/chem_dispenser/ninja,
/obj/item/rig_module/voice,
/obj/item/rig_module/grenade_launcher/ninja,
/obj/item/rig_module/ai_container,
/obj/item/rig_module/personal_shield,
/obj/item/rig_module/power_sink,
/obj/item/rig_module/datajack,
/obj/item/rig_module/self_destruct,
/obj/item/rig_module/cooling_unit,
/obj/item/rig_module/maneuvering_jets
)
/obj/item/rig/light/ninja/gcc
name = "gilgamesh heavy suit control module"
desc = "A ridiculously bulky military hardsuit with no model number or identifying logos besides a small ICCG crest on its control module. This suit is built like a tank and weighs as much as one."
suit_type = "heavy"
icon_state = "gcc_rig"
online_slowdown = 2 ///chunky
offline_slowdown = 4
armor = list(
melee = ARMOR_MELEE_VERY_HIGH,
bullet = ARMOR_BALLISTIC_RIFLE,
laser = ARMOR_LASER_MAJOR,
energy = ARMOR_ENERGY_RESISTANT,
bomb = ARMOR_BOMB_PADDED,
bio = ARMOR_BIO_SHIELDED
)
initial_modules = list(
/obj/item/rig_module/vision,
/obj/item/rig_module/chem_dispenser/ninja,
/obj/item/rig_module/voice,
/obj/item/rig_module/grenade_launcher/ninja,
/obj/item/rig_module/ai_container,
/obj/item/rig_module/power_sink,
/obj/item/rig_module/datajack,
/obj/item/rig_module/self_destruct,
/obj/item/rig_module/mounted/ballistic/minigun,
/obj/item/rig_module/mounted/power_fist,
/obj/item/rig_module/cooling_unit,
/obj/item/rig_module/maneuvering_jets
)
/obj/item/clothing/suit/space/rig/light/ninja/gcc
breach_threshold = 50 ///chunky
/obj/item/rig/light/ninja/corpo
name = "corporate mercenary suit control module"
desc = "A light hardsuit with minimal armor plating. The control panel marks it as a Hephaestus X-11 Lightweight, a mobile combat suit commonly issued to corporate security teams."
suit_type = "corporate"
icon_state = "corpo_rig"
online_slowdown = -1 ///speedster suit
armor = list(
melee = ARMOR_MELEE_RESISTANT,
bullet = ARMOR_BALLISTIC_RESISTANT,
laser = ARMOR_LASER_HANDGUNS,
energy = ARMOR_ENERGY_RESISTANT,
bomb = ARMOR_BOMB_PADDED,
bio = ARMOR_BIO_SHIELDED
)
initial_modules = list(
/obj/item/rig_module/actuators,
/obj/item/rig_module/mounted/arm_blade,
/obj/item/rig_module/mounted/energy/ion,
/obj/item/rig_module/vision,
/obj/item/rig_module/chem_dispenser/ninja,
/obj/item/rig_module/voice,
/obj/item/rig_module/grenade_launcher/ninja,
/obj/item/rig_module/ai_container,
/obj/item/rig_module/power_sink,
/obj/item/rig_module/datajack,
/obj/item/rig_module/self_destruct,
/obj/item/rig_module/cooling_unit,
/obj/item/rig_module/maneuvering_jets
)
/obj/item/rig/light/stealth
name = "stealth suit control module"
suit_type = "stealth"
desc = "A highly advanced and expensive suit designed for covert operations."
icon_state = "stealth_rig"
req_access = list(access_syndicate)
initial_modules = list(
/obj/item/rig_module/stealth_field,
/obj/item/rig_module/vision
)