Skip to content

Commit 2247f9b

Browse files
author
x0MRk
committed
Аккаунто_Апдейт
1 parent 13cd09d commit 2247f9b

File tree

1,072 files changed

+91541
-30700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,072 files changed

+91541
-30700
lines changed

Acceses.dm

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Checked jobs: HoP, HoS, Security Officer, Doctor, CE, Detective, Scientist RD, C
2323
access_emergency_storage = 14 (HoP, CE, Atmos Tec) (Got name from Strumpet. Not used at all???)
2424
access_change_id = 15 (HoP)
2525
access_ai_facilities = 16 (HoP, CE)
26-
access_teleporter = 17 (HoS, RD)
26+
access_teleporter = 17 (HoS, RD, QM)
2727
access_eva = 18 (HoP, CE)
2828
access_heads_only = 19 (HoP, CE, RD, HoS)
2929
access_captain_only = 20
@@ -52,5 +52,5 @@ Checked jobs: HoP, HoS, Security Officer, Doctor, CE, Detective, Scientist RD, C
5252
access_hydroponics = 40 (Botanist)
5353
access_theater = 41 (Clown, Mime)
5454
access_HoSoffice = 42 (HoS)
55-
55+
access_mining = 43 (Shaft Miner, QM)
5656
*/

READ ME.txt

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
NSV Luna LG2 FP0
2+
�� ������ �����, ��� �������, ���� � ����� ��������� ����: http://forum.ss13.ru/index.php?showtopic=5767
3+
4+
����� libmysql.dll � database.sql �� ������� ��� ������� �� ���, ��� ������������� ��� ���������� ������� ������������� ��������/���������.
5+
6+
���� �� �������:
7+
1. ������ ����� � ����� http://www.denwer.ru/ .
8+
2. ������������� �����, ������������� � ��������� denwer. ��� denwer ������ ����������� ��������� ���������.
9+
3. ��������� � �������� http://localhost/Tools/phpMyAdmin/ .
10+
3.1 (���������� ���� ��������� ���������) ������ ������������ 80 ����� � ����� 7. ������ ����� ������� ������ W3SVC � ���������� �����. ������������� denwer. ��������� phpMyAdmin - ��������� � ������ 4 .
11+
4. ���� ������ - ������� ���� ������ luna .
12+
5. �������� �� luna � ������, ��������� �� ������� SQL.
13+
6. ���������� ���� ���������� database.sql � ������� ������ �������. ���� ��.
14+
7. ������� ���������, ������� admins, �������� ��������.
15+
8. � ���� ckey �������� �������� ������ ���������� �������, � rank ����� 6. ���� ��.
16+
9. � ����� config � ����� db_config.txt ����������� ����� ��������:
17+
DB_SERVER 127.0.0.1
18+
DB_USER root
19+
DB_PASSWORD
20+
DB_DBNAME luna
21+
DB_PORT 3306
22+
10. �������� ���� �, ��������, ��������� ��. ��� �� �����! ��� �����! �����! �������!
23+
24+
�������, ������ ������ ��� �� �� - ��������. ������������ ������ ���-����� denwer ���� MySQL � phpMyAdmin - ����. �� ��� ������ ������.

README.txt

-2
This file was deleted.

bs12.dme

+234-52
Large diffs are not rendered by default.

code/ATMOSPHERICS/atmospherics.dm

+1-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,4 @@ obj/machinery/atmospherics
4646
// associated with reference pipe_network for use in rebuilding the networks gases list
4747
// Is permitted to return null
4848

49-
disconnect(obj/machinery/atmospherics/reference)
50-
51-
update_icon()
52-
return null
49+
disconnect(obj/machinery/atmospherics/reference)

code/ATMOSPHERICS/components/binary_devices/pump.dm

+119-33
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,23 @@ Thus, the two variables affect pump operation are set in New():
1212
but overall network volume is also increased as this increases...
1313
*/
1414

15+
16+
/*
17+
Every cycle, the pump uses the air in air_in to try and make air_out the perfect pressure.
18+
19+
node1, air1, network1 correspond to input
20+
node2, air2, network2 correspond to output
21+
22+
Thus, the two variables affect pump operation are set in New():
23+
air1.volume
24+
This is the volume of gas available to the pump that may be transfered to the output
25+
air2.volume
26+
Higher quantities of this cause more air to be perfected later
27+
but overall network volume is also increased as this increases...
28+
*/
29+
1530
obj/machinery/atmospherics/binary/pump
16-
icon = 'pump.dmi'
31+
icon = 'icons/obj/atmospherics/pump.dmi'
1732
icon_state = "intact_off"
1833

1934
name = "Gas pump"
@@ -22,12 +37,18 @@ obj/machinery/atmospherics/binary/pump
2237
var/on = 0
2338
var/target_pressure = ONE_ATMOSPHERE
2439

25-
attack_hand(mob/user)
26-
on = !on
27-
update_icon()
40+
var/frequency = 0
41+
var/id = null
42+
var/datum/radio_frequency/radio_connection
43+
44+
on
45+
on = 1
46+
icon_state = "intact_on"
2847

2948
update_icon()
30-
if(node1&&node2)
49+
if(stat & NOPOWER)
50+
icon_state = "intact_off"
51+
else if(node1 && node2)
3152
icon_state = "intact_[on?("on"):("off")]"
3253
else
3354
if(node1)
@@ -36,18 +57,18 @@ obj/machinery/atmospherics/binary/pump
3657
icon_state = "exposed_2_off"
3758
else
3859
icon_state = "exposed_3_off"
39-
on = 0
40-
4160
return
4261

4362
process()
44-
..()
63+
// ..()
64+
if(stat & (NOPOWER|BROKEN))
65+
return
4566
if(!on)
4667
return 0
4768

4869
var/output_starting_pressure = air2.return_pressure()
4970

50-
if(output_starting_pressure >= target_pressure)
71+
if( (target_pressure - output_starting_pressure) < 0.01)
5172
//No need to pump gas if target is already reached!
5273
return 1
5374

@@ -75,7 +96,7 @@ obj/machinery/atmospherics/binary/pump
7596
radio_controller.remove_object(src, frequency)
7697
frequency = new_frequency
7798
if(frequency)
78-
radio_connection = radio_controller.add_object(src, frequency)
99+
radio_connection = radio_controller.add_object(src, frequency, filter = RADIO_ATMOSIA)
79100

80101
broadcast_status()
81102
if(!radio_connection)
@@ -85,44 +106,109 @@ obj/machinery/atmospherics/binary/pump
85106
signal.transmission_method = 1 //radio signal
86107
signal.source = src
87108

88-
signal.data["tag"] = id
89-
signal.data["device"] = "AGP"
90-
signal.data["power"] = on
91-
signal.data["target_output"] = target_pressure
109+
signal.data = list(
110+
"tag" = id,
111+
"device" = "AGP",
112+
"power" = on,
113+
"target_output" = target_pressure,
114+
"sigtype" = "status"
115+
)
92116

93-
radio_connection.post_signal(src, signal)
117+
radio_connection.post_signal(src, signal, filter = RADIO_ATMOSIA)
94118

95119
return 1
96120

97-
var/frequency = 0
98-
var/id = null
99-
var/datum/radio_frequency/radio_connection
121+
interact(mob/user as mob)
122+
var/dat = {"<b>Power: </b><a href='?src=\ref[src];power=1'>[on?"On":"Off"]</a><br>
123+
<b>Desirable output pressure: </b>
124+
[round(target_pressure,0.1)]kPa | <a href='?src=\ref[src];set_press=1'>Change</a>
125+
"}
126+
127+
user << browse("<HEAD><TITLE>[src.name] control</TITLE></HEAD><TT>[dat]</TT>", "window=atmo_pump")
128+
onclose(user, "atmo_pump")
100129

101130
initialize()
102131
..()
103132
if(frequency)
104133
set_frequency(frequency)
105134

106135
receive_signal(datum/signal/signal)
107-
if(signal.data["tag"] && (signal.data["tag"] != id))
136+
if(!signal.data["tag"] || (signal.data["tag"] != id) || (signal.data["sigtype"]!="command"))
108137
return 0
109138

110-
switch(signal.data["command"])
111-
if("power_on")
112-
on = 1
139+
if("power" in signal.data)
140+
on = text2num(signal.data["power"])
113141

114-
if("power_off")
115-
on = 0
142+
if("power_toggle" in signal.data)
143+
on = !on
116144

117-
if("power_toggle")
118-
on = !on
145+
if("set_output_pressure" in signal.data)
146+
target_pressure = between(
147+
0,
148+
text2num(signal.data["set_output_pressure"]),
149+
ONE_ATMOSPHERE*50
150+
)
119151

120-
if("set_output_pressure")
121-
var/number = text2num(signal.data["parameter"])
122-
number = min(max(number, 0), ONE_ATMOSPHERE*50)
152+
if("status" in signal.data)
153+
spawn(2)
154+
broadcast_status()
155+
return //do not update_icon
123156

124-
target_pressure = number
157+
spawn(2)
158+
broadcast_status()
159+
update_icon()
160+
return
125161

126-
if(signal.data["tag"])
127-
spawn(5 * tick_multiplier) broadcast_status()
128-
update_icon()
162+
163+
attack_hand(user as mob)
164+
if(..())
165+
return
166+
src.add_fingerprint(usr)
167+
if(!src.allowed(user))
168+
user << "\red Access denied."
169+
return
170+
usr.set_machine(src)
171+
interact(user)
172+
return
173+
174+
Topic(href,href_list)
175+
if(..()) return
176+
if(href_list["power"])
177+
on = !on
178+
if(href_list["set_press"])
179+
var/new_pressure = input(usr,"Enter new output pressure (0-4500kPa)","Pressure control",src.target_pressure) as num
180+
src.target_pressure = max(0, min(4500, new_pressure))
181+
usr.set_machine(src)
182+
src.update_icon()
183+
src.updateUsrDialog()
184+
return
185+
186+
power_change()
187+
..()
188+
update_icon()
189+
190+
/* attackby(var/obj/item/weapon/W as obj, var/mob/user as mob)
191+
if (!istype(W, /obj/item/weapon/wrench))
192+
return ..()
193+
if (!(stat & NOPOWER) && on)
194+
user << "\red You cannot unwrench this [src], turn it off first."
195+
return 1
196+
var/turf/T = src.loc
197+
if (level==1 && isturf(T) && T.intact)
198+
user << "\red You must remove the plating first."
199+
return 1
200+
var/datum/gas_mixture/int_air = return_air()
201+
var/datum/gas_mixture/env_air = loc.return_air()
202+
if ((int_air.return_pressure()-env_air.return_pressure()) > 2*ONE_ATMOSPHERE)
203+
user << "\red You cannot unwrench this [src], it too exerted due to internal pressure."
204+
add_fingerprint(user)
205+
return 1
206+
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
207+
user << "\blue You begin to unfasten \the [src]..."
208+
if (do_after(user, 40))
209+
user.visible_message( \
210+
"[user] unfastens \the [src].", \
211+
"\blue You have unfastened \the [src].", \
212+
"You hear ratchet.")
213+
new /obj/item/pipe(loc, make_from=src)
214+
del(src)*/

0 commit comments

Comments
 (0)