Singularity Engine
-Recoded some parts, still works mostly the same
Welders
-Recoded, it works mostly the same but is easier to use in code
-Cyborgs have a larger fuel tank
-Brought most if not all of the areas that use welders upto spec
Moved the changeling chem recharge code into the human life proc
New players who log out before spawning in are now deleted
New minor Common event
Machines around the station use more power, system might need some changes later
Likely few other minor changes that I just cant think of atm

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@945 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
mport2004@gmail.com
2011-02-03 08:15:17 +00:00
parent e78f6c0d50
commit cd79ae951d
67 changed files with 3276 additions and 3238 deletions
+3
View File
@@ -12,6 +12,9 @@ Pipelines + Other Objects -> Pipe network
obj/machinery/atmospherics
anchored = 1
power_usage = 10
power_channel = ENVIRON
var/initialize_directions = 0
var/color
@@ -46,7 +46,6 @@ obj/machinery/atmospherics/binary/pump
return
if(!on)
return 0
use_power(5)
var/output_starting_pressure = air2.return_pressure()
@@ -69,7 +68,6 @@ obj/machinery/atmospherics/binary/pump
if(network2)
network2.update = 1
use_power(round(air2.volume/12))
return 1
//Radio remote control
+18 -25
View File
@@ -6,7 +6,6 @@
desc = "Has a valve and pump attached to it"
level = 1
var/channel = ENVIRON
var/area_uid
var/id = null
@@ -42,7 +41,6 @@
name = "Large Air Vent"
New()
..()
channel = EQUIP
air_contents.volume = 1000
update_icon()
@@ -66,7 +64,6 @@
if(!on)
return 0
use_power(5, channel)
if(welded)
return 0
@@ -87,7 +84,6 @@
var/datum/gas_mixture/removed = air_contents.remove(transfer_moles)
use_power(round(air_contents.volume/12), channel)
loc.assume_air(removed)
if(network)
@@ -108,8 +104,6 @@
if (isnull(removed)) //in space
return
use_power(round(air_contents.volume/12), channel)
air_contents.merge(removed)
if(network)
@@ -151,7 +145,7 @@
initialize()
..()
//some vents work his own spesial way
radio_filter_in = frequency==initial(frequency)?(RADIO_FROM_AIRALARM):null
radio_filter_out = frequency==initial(frequency)?(RADIO_TO_AIRALARM):null
@@ -228,22 +222,21 @@
on = 0
return
attackby(obj/item/W, mob/user) // Added for aliens -- TLE
// Stolen from the Emitter welding code of the Singularity
if(istype(W, /obj/item/weapon/weldingtool) && W:welding)
if (W:get_fuel() < 1)
attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/weapon/weldingtool))
if (W:remove_fuel(2,user))
user << "\blue Now welding the vent."
if(do_after(user, 20))
playsound(src.loc, 'Welder2.ogg', 50, 1)
if(!welded)
user.visible_message("[user] welds the vent shut.", "You weld the vent shut.", "You hear welding.")
welded = 1
else
user.visible_message("[user] unwelds the vent.", "You unweld the vent.", "You hear welding.")
welded = 0
else
user << "\blue You need more welding fuel to complete this task."
return 1
W:use_fuel(1)
playsound(src.loc, 'Welder2.ogg', 50, 1)
if(!welded)
user.visible_message("[user] welds the vent shut.", "You weld the vent shut.", "You hear welding.")
welded = 1
else
user.visible_message("[user] unwelds the vent.", "You unweld the vent.", "You hear welding.")
welded = 0
examine()
set src in oview(1)
..()
@@ -251,10 +244,10 @@
usr << "It seems welded shut."
power_change()
if(powered(channel))
stat &= ~NOPOWER
else
stat |= NOPOWER
// if(powered(EVNIRON))
// stat &= ~NOPOWER
// else
// stat |= NOPOWER
update_icon()
attackby(var/obj/item/weapon/W as obj, var/mob/user as mob)
@@ -97,8 +97,7 @@
var/datum/gas_mixture/removed = loc.remove_air(transfer_moles)
if (isnull(removed)) //in space
return
var/power = (scrub_Toxins+scrub_CO2+scrub_N2O)*volume_rate/12
use_power(round(power+5), ENVIRON)
//Filter it
var/datum/gas_mixture/filtered_out = new
filtered_out.temperature = removed.temperature
@@ -130,7 +129,7 @@
else //Just siphoning all air
if (air_contents.return_pressure()>=50*ONE_ATMOSPHERE)
return
use_power(round(volume_rate/12)+5, ENVIRON)
var/transfer_moles = environment.total_moles()*(volume_rate/environment.volume)
var/datum/gas_mixture/removed = loc.remove_air(transfer_moles)
+5 -4
View File
@@ -1,4 +1,5 @@
obj/machinery/atmospherics/pipe
power_usage = 0
var/datum/gas_mixture/air_temporary //used when reconstructing a pipeline that broke
var/datum/pipeline/parent
@@ -205,14 +206,14 @@ obj/machinery/atmospherics/pipe
normalize_dir()
var/node1_dir
var/node2_dir
for(var/direction in cardinal)
if(direction&initialize_directions)
if (!node1_dir)
node1_dir = direction
else if (!node2_dir)
node2_dir = direction
for(var/obj/machinery/atmospherics/target in get_step(src,node1_dir))
if(target.initialize_directions & get_dir(target,src))
node1 = target
@@ -298,14 +299,14 @@ obj/machinery/atmospherics/pipe
normalize_dir()
var/node1_dir
var/node2_dir
for(var/direction in cardinal)
if(direction&initialize_directions_he)
if (!node1_dir)
node1_dir = direction
else if (!node2_dir)
node2_dir = direction
for(var/obj/machinery/atmospherics/pipe/simple/heat_exchanging/target in get_step(src,node1_dir))
if(target.initialize_directions_he & get_dir(target,src))
node1 = target