- Mech pilots are completely immune to airlock electrocution from now on.

- Yo dawg we herd yo dislike errors, so we removed a link from yo link.
- Added health for space pods.
- 2 projectile sprite.
- Misc.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1520 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
panurgomatic
2011-05-03 02:03:24 +00:00
parent d335f66f37
commit b831680eed
9 changed files with 51 additions and 34 deletions

View File

@@ -58,6 +58,7 @@ Data storage vars:
var/state = 0
New(list/arguments=null,autostart=1)
delay = delay>0?(delay):1
if(forbid_garbage) //prevents garbage collection with tag != null
tag = "\ref[src]"
set_process_args(arguments)
@@ -73,13 +74,10 @@ Data storage vars:
src.stop()
return 0
result = src.process(arglist(arg_list))
if(src.delay>0)
for(var/sleep_time=src.delay;sleep_time>0;sleep_time--) //uhh, this is ugly. But I see no other way to terminate sleeping proc. Such disgrace.
if(!src.control_switch)
return 0
sleep(1)
else
sleep(src.delay) //delay can also be 0 and -1
for(var/sleep_time=src.delay;sleep_time>0;sleep_time--) //uhh, this is ugly. But I see no other way to terminate sleeping proc. Such disgrace.
if(!src.control_switch)
return 0
sleep(1)
return 0
proc/start(list/arguments=null)
@@ -126,7 +124,7 @@ Data storage vars:
proc/set_delay(new_delay)
if(isnum(new_delay))
delay = new_delay
delay = new_delay>0?(new_delay):1
return 1
else
return 0