Merge branch 'master' of github.com:Baystation12/Baystation12

This commit is contained in:
cib
2012-11-13 15:39:38 +01:00
15 changed files with 121 additions and 67 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ var/list/department_radio_keys = list(
var/rendered = null
if (length(heard_a))
var/message_a = say_quote(message)
var/message_a = say_quote(message,is_speaking_soghun,is_speaking_skrell,is_speaking_taj)
if (italics)
message_a = "<i>[message_a]</i>"
+1 -1
View File
@@ -6,7 +6,7 @@
var/datum/ai_laws/laws = null//Now... THEY ALL CAN ALL HAVE LAWS
var/list/alarms_to_show = list()
var/list/alarms_to_clear = list()
immune_to_ssd = 1
var/list/alarm_types_show = list("Motion" = 0, "Fire" = 0, "Atmosphere" = 0, "Power" = 0, "Camera" = 0)
var/list/alarm_types_clear = list("Motion" = 0, "Fire" = 0, "Atmosphere" = 0, "Power" = 0, "Camera" = 0)
+1 -4
View File
@@ -3,7 +3,6 @@
layer = 4.0
animate_movement = 2
// flags = NOREACT
glide_size = 8
var/datum/mind/mind
var/stat = 0 //Whether a mob is alive or dead. TODO: Move this to living - Nodrak
@@ -227,6 +226,4 @@
var/has_limbs = 1 //Whether this mob have any limbs he can move with
var/can_stand = 1 //Whether this mob have ability to stand
var/immune_to_ssd = 0
//Animation speed changer
var/lastmovementdelay = 0
var/immune_to_ssd = 0
+5 -25
View File
@@ -282,29 +282,18 @@
return 0
move_delay = world.time//set move delay
var/mdelay = 0
switch(mob.m_intent)
if("run")
if(mob.drowsyness > 0)
mdelay += 6
mdelay += 2+config.run_speed
move_delay += 6
move_delay += 1+config.run_speed
if("walk")
mdelay += 7+config.walk_speed
move_delay += 7+config.walk_speed
move_delay += mob.movement_delay()
if(config.Tickcomp)
mdelay -= 1.3
move_delay -= 1.3
var/tickcomp = ((1/(world.tick_lag))*1.3)
mdelay += tickcomp
move_delay += mdelay
mob.UpdateGlide(mdelay)
if (mob.pulling)
if (istype(mob.pulling,/mob))
var/mob/M = mob.pulling
M.UpdateGlide(mdelay)
else
mob.pulling.glide_size = mob.glide_size
//We are now going to move
moving = 1
@@ -326,7 +315,6 @@
else
diag = null
if ((get_dist(mob, M) > 1 || diag))
M.UpdateGlide(mdelay)
step(M, get_dir(M.loc, T))
else
for(var/mob/M in L)
@@ -335,7 +323,6 @@
M.animate_movement = 3
for(var/mob/M in L)
spawn( 0 )
M.UpdateGlide(mdelay)
step(M, direct)
return
spawn( 1 )
@@ -514,10 +501,3 @@
prob_slip = round(prob_slip)
return(prob_slip)
//Updates Glide_size of mob according to its speed.
/mob/proc/UpdateGlide(var/mdelay = 2)
if (mdelay != lastmovementdelay)
lastmovementdelay = mdelay
glide_size = 32*(world.tick_lag)/lastmovementdelay
//src << "Debug: Your new glide speed is [glide_size]"