Stability and performance

This commit is contained in:
quotefox
2019-10-10 02:40:36 +01:00
parent 10861f6fc2
commit 4f4362a8aa
13 changed files with 44 additions and 42 deletions
+2 -2
View File
@@ -19,12 +19,12 @@
var/atom/inertia_last_loc
var/inertia_moving = 0
var/inertia_next_move = 0
var/inertia_move_delay = 3
var/inertia_move_delay = 7
var/pass_flags = 0
var/moving_diagonally = 0 //0: not doing a diagonal move. 1 and 2: doing the first/second step of the diagonal move
var/list/client_mobs_in_contents // This contains all the client mobs within this container
var/list/acted_explosions //for explosion dodging
glide_size = 7
glide_size = 14
appearance_flags = TILE_BOUND|PIXEL_SCALE
var/datum/forced_movement/force_moving = null //handled soley by forced_movement.dm
var/floating = FALSE
+1 -1
View File
@@ -702,7 +702,7 @@
clear_fullscreen("critvision")
//Oxygen damage overlay
var/windedup = getOxyLoss() + getStaminaLoss() * 0.2 + stamdamageoverlaytemp
var/windedup = getOxyLoss() + getStaminaLoss() * 0.2
if(windedup)
var/severity = 0
switch(windedup)
@@ -61,6 +61,6 @@
var/next_hallucination = 0
var/cpr_time = 1 //CPR cooldown.
var/damageoverlaytemp = 0
var/stamdamageoverlaytemp = 0
var/drunkenness = 0 //Overall drunkenness - check handle_alcohol() in life.dm for effects
@@ -1783,7 +1783,6 @@ GLOBAL_LIST_EMPTY(roundstart_races)
if(CLONE)
H.adjustCloneLoss(damage * hit_percent * H.physiology.clone_mod)
if(STAMINA)
H.stamdamageoverlaytemp = 20
if(BP)
if(damage > 0 ? BP.receive_damage(0, 0, damage * hit_percent * H.physiology.stamina_mod) : BP.heal_damage(0, 0, abs(damage * hit_percent * H.physiology.stamina_mod), only_robotic = FALSE, only_organic = FALSE))
H.update_stamina()
+1 -2
View File
@@ -4,9 +4,8 @@
if(notransform)
return
if(damageoverlaytemp || stamdamageoverlaytemp)
if(damageoverlaytemp)
damageoverlaytemp = 0
stamdamageoverlaytemp = 0
update_damage_hud()
if(!IsInStasis())
+1 -1
View File
@@ -8,7 +8,7 @@
view = "15x15"
hub = "Exadv1.spacestation13"
name = "/tg/ Station 13"
fps = 20
fps = 10
#ifdef FIND_REF_NO_CHECK_TICK
loop_checks = FALSE
#endif
+2 -2
View File
@@ -291,10 +291,10 @@ TICK_LIMIT_MC_INIT 500
##Defines the ticklag for the world. Ticklag is the amount of time between game ticks (aka byond ticks) (in 1/10ths of a second).
## This also controls the client network update rate, as well as the default client fps
TICKLAG 0.5
#TICKLAG 0.5
##Can also be set as per-second value, the following value is identical to the above.
#FPS 20
FPS 10
## Comment this out to disable automuting
#AUTOMUTE_ON
+6
View File
@@ -92,6 +92,7 @@ PROBABILITY SECRET_EXTENDED 0
PROBABILITY DEVIL 0
PROBABILITY DEVIL_AGENTS 0
PROBABILITY CLOWNOPS 0
PROBABILITY WEREWOLF 1
## You probably want to keep sandbox off by default for secret and random.
PROBABILITY SANDBOX 0
@@ -114,6 +115,7 @@ CONTINUOUS CLOCKWORK_CULT
CONTINUOUS CHANGELING
CONTINUOUS WIZARD
#CONTINUOUS MONKEY
#CONTINUOUS WEREWOLF
##Note: do not toggle continuous off for these modes, as they have no antagonists and would thus end immediately!
@@ -136,6 +138,7 @@ MIDROUND_ANTAG CLOCKWORK_CULT
MIDROUND_ANTAG CHANGELING
MIDROUND_ANTAG WIZARD
#MIDROUND_ANTAG MONKEY
#MIDROUND_ANTAG WEREWOLF
## Uncomment these for overrides of the minimum / maximum number of players in a round type.
## If you set any of these occasionally check to see if you still need them as the modes
@@ -176,6 +179,9 @@ MIDROUND_ANTAG WIZARD
#MIN_POP MONKEY 20
#MAX_POP MONKEY -1
#MIN_POP WEREWOLF 20
#MAX_POP WEREWOLF -1
#MIN_POP METEOR 0
#MAX_POP METEOR -1
+27 -32
View File
@@ -1,6 +1,5 @@
/mob/living/simple_animal/hostile/mimic
name = "Mimic"
desc = "A creature with the ability to take the form of other objects."
icon = 'hyperstation/icons/mobs/mimic.dmi'
icon_state = "mimic"
icon_living = "mimic"
@@ -10,54 +9,50 @@
turns_per_move = 5
maxHealth = 30
health = 30
see_in_dark = 7
response_help = "pokes"
response_disarm = "shoves"
response_harm = "hits"
see_in_dark = 3
butcher_results = list(/obj/item/reagent_containers/food/snacks/meat/slab/killertomato = 2)
response_help = "prods"
response_disarm = "pushes aside"
response_harm = "smacks"
melee_damage_lower = 8
melee_damage_upper = 12
move_to_delay = 9
attacktext = "slams"
attack_sound = 'sound/weapons/punch1.ogg'
ventcrawler = VENTCRAWLER_ALWAYS
faction = list("mimic")
var/unstealth = FALSE
faction = list("plants")
atmos_requirements = list("min_oxy" = 5, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0)
minbodytemp = 150
maxbodytemp = 500
gold_core_spawnable = HOSTILE_SPAWN
var/unstealth = FALSE
/mob/living/simple_animal/hostile/mimic/Initialize()
// When initialized, make sure they take the form of something.
unstealth = FALSE
Mimictransform()
/mob/living/simple_animal/hostile/mimic/proc/Mimictransform()
var/transformitem = rand(1,3)
/mob/living/simple_animal/hostile/mimic/proc/activate()
if(!unstealth)
visible_message("<b>[src]</b> starts to move!")
unstealth = TRUE
if (unstealth == FALSE)
switch(transformitem)
if(1)
//Glass
icon = 'icons/obj/drinks.dmi'
icon_state = "glass_empty"
aggro_vision_range = 0
if(2)
//Glass
icon = 'icons/obj/drinks.dmi'
icon_state = "glass_empty"
aggro_vision_range = 0
/mob/living/simple_animal/hostile/mimic/LoseTarget()
..()
icon_state = initial(icon_state) //when lost target, return into stealth form.
unstealth = FALSE
/mob/living/simple_animal/hostile/mimic/crate/ListTargets()
if(unstealth)
return ..()
return ..(1)
//If stealthed, do not target
/mob/living/simple_animal/hostile/mimic/adjustHealth(amount, updating_health = TRUE, forced = FALSE)
activate()
//if taking damage, trigger.
if(3)
//Glass
icon = 'icons/obj/drinks.dmi'
icon_state = "glass_empty"
aggro_vision_range = 0
else
//back to normal
icon = 'hyperstation/icons/mobs/mimic.dmi'
icon_state = "mimic"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 927 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

+3
View File
@@ -2832,7 +2832,10 @@
#include "code\modules\VR\vr_sleeper.dm"
#include "code\modules\zombie\items.dm"
#include "code\modules\zombie\organs.dm"
#include "hyperstation\code\gamemode\werewolf\werewolf.dm"
#include "hyperstation\code\mobs\mimic.dm"
#include "hyperstation\code\mobs\werewolf.dm"
#include "hyperstation\code\modules\antagonists\werewolf\werewolf.dm"
#include "interface\interface.dm"
#include "interface\menu.dm"
#include "interface\stylesheet.dm"