Commit Graph

451 Commits

Author SHA1 Message Date
AndrewJacksonThe2nd
d70279e203 Merge branch 'master' of https://github.com/tgstation/-tg-station into goon_port 2016-03-22 16:13:17 -07:00
Kyle Spier-Swenson
94dbb51347 Removing from active needs to happen before excited group garbage collection 2016-03-20 03:40:49 -07:00
Kyle Spier-Swenson
f81ec7fc44 remove_from_active now handles unsimulated turfs properly 2016-03-20 03:27:37 -07:00
oranges
d4a5d61ea5 Minor tweak and fixes to subsystem logic
-only process roundstart spawners when they're needed

-use the same method to call atom_spawners for template loading.
    Assuming user is adding to the appropriate process list, this will not
cause issues
2016-03-19 22:41:38 +00:00
oranges
f9e6e2bca7 Add subsystem for safely spawning atoms at roundstart
This system is called just before initialize and does not use a world
loop, so it is safe to spawn and create new atoms.

Any atom can inherit this behaviour by overriding the
spawn_atom_to_world proc and spawning atoms there at roundstart

Make sure you register the atom in question to the list of spawner atoms
by doing SSobj.atom_spawners += src, and then remove when you are done
spawning objects
2016-03-19 22:41:38 +00:00
MrStonedOne
5945c38608 Adds lag checks to SSsmooth 2016-03-15 03:44:41 -07:00
MrStonedOne
9829b34abb Config option for generating minimaps, defaults to disabled, for coder's sanity 2016-03-15 03:39:45 -07:00
MrStonedOne
aa328e404f Adds lag check to diseases and events (and removes lighting from dwait)
lighting removed from dewait because lag checks are better for it and lag checked subsystems that are also dwait systems are given lower priority, we don't want that to happen to lighting.
2016-03-15 03:39:44 -07:00
MrStonedOne
bc8ff11f3f Lag check on initialization (and on a missed del-all proc) 2016-03-15 03:39:43 -07:00
MrStonedOne
09fb8c2b10 Explosions and singulo use spiral range (and other changes) 2016-03-15 03:39:41 -07:00
MrStonedOne
093668a445 fixes deadlocking 2016-03-15 03:39:40 -07:00
MrStonedOne
2887dc7ce0 Removes lag.
This setup allows subsystems to pause themselves until next mc fire if they are about to go over a tick, and resume on the next mc tick
It also makes it so we prioritize running subsystems we skipped because there wasn't enough time in the current tick to run them based on their avg tick usage. (as well as subsystems paused mid way thru)

Adds a macro for adding this to non-mc procs. just drop it in the loop. There is a define version as well for if checks if you want to know if you just slept to avoid lag.

This is all inside #if DM_VERSION defines, so once i test that 509 still works to compile/test this should be good to merge
2016-03-15 03:39:39 -07:00
Cheridan
0288f7c592 Merge pull request #16067 from xxalpha/silky_smooth
icon smooth ss
2016-03-15 04:59:48 -05:00
Sawu
fc56e7f529 SNPC Expansion v. Traitorous Scum
* Fixes SNPCs still healing people
* SNPCs now use similar speech handling to Poly, and will mimic phrases in addition to their usual speech
* SNPCs can now be spawned as traitors, and given a special role.
* Greytide SNPCs now wear assistant outfits
* Certain jobs are now restricted to their area (can be toggled with restrictedJob)
* SNPCs start with a minor variation in stats
* Bartender SNPCs should now appropriately serve people
* Chef SNPC workflow redone, they will now prioritise preparing food over making it, and should serve more food to tables
* Third attempt at fixing infighting
* SNPCs should no longer repeatedly stun a target
* Friendly SNPCs now no longer have a combat module, and they are the station's faction
* NPCPool will routinely trim orders from it, reducing the amount of order ping-pong
2016-03-13 18:21:37 +11:00
xxalpha
e2dd404d39 Smooth z1 and z2 on initialize. 2016-03-13 00:43:37 +00:00
xxalpha
688137c7dc icon smooth ss
adjustments

adjustements

atharrachaidhean
2016-03-12 23:57:45 +00:00
Jordie0608
5ee92abad3 fixes broken regex 2016-03-11 21:43:32 +11:00
AndrewJacksonThe2nd
6ad6cb55ca fixes 2016-03-05 14:25:10 -08:00
AndrewJacksonThe2nd
afd0a20432 Goon Port #1: Stock Market 2016-03-04 20:39:27 -08:00
tkdrg
41a42922d2 Merge pull request #15709 from Malkevin/cuffsandclean
Cuffs and sec clean up
2016-03-01 20:28:56 -03:00
tkdrg
3af98e5bc3 Merge pull request #15807 from MrStonedOne/patch-162
Makes qdeleted less sucky
2016-02-28 23:11:40 -03:00
tkdrg
d45db06d25 Merge pull request #15790 from AnturK/fix2
Minor fixes
2016-02-28 22:38:41 -03:00
Kyle Spier-Swenson
ac0b0c2e8d I was stupid, This is less stupid
(also fixes a minor code fuckup)
2016-02-27 16:32:03 -08:00
AnturK
b444f4f5da Fixes shuttle loan events not creating crates. 2016-02-27 17:49:09 +01:00
Sawu
9caed06d78 Condenses cleanNull() using listclearnulls() 2016-02-27 07:02:50 +11:00
Sawu
3369739693 SNPCs v3: Robustaloo
Makes a number of changes and tweaks to SNPCs to make them work better in general.
* NPCPool now automatically clears nulls from its list (badminnery, singulo, gibbing etc)
* NPCs now correctly update their eyes when delegating
* NPCs will blacklist items they deem unusable (currently only empty guns)
* Augmentation chance is now singular instead of recursive
* NPCs support favoured types, which they will use above others when equipping, fighting and looting
* Renamed the non-descript "isnotfunc" to "IsDeadOrIncap"
* enforce_hands() now ensures the held items are still held by the npc (no more floaty items and ghostly guns)
* take_to_slot() now supports taking to hands directly
* NPCs will now appropriately dress themselves
* Interest/Timeout rates tweaked to create smoother transitions between states
* NPC choice system moved from prob to switch to create more activity
* NPCs now have a basic pathfinding system that should work (in most cases)
* Shitcurity NPCs now use any restraints, not just handcuffs
* NPCs spawned with the janitor job will now do some basic janitorial duties
* NPCs priorities in terms of weapons and held objects have been completely rebalanced
* NPCs will now appropriately equip, fire and discard guns.
* NPCs using guns will attempt to maintain a range instead of shooting point blank
* NPCs doorscan now uses all directions to improve mobility
* NPCs doorscan places the NPC in the door instead of attempting to path to it.
2016-02-27 06:11:13 +11:00
malkevin
8a627b9e66 Cuffs and sec clean up
Sometime last year sec officers lost one of the two pairs of cuffs they started with (I think its when the adv taser was added on spawn, cuffs used to be in the armor slot and were replaced by the taser but never placed anywhere else)
Seeing as cuffs are the only thing stopping sec officers beating the clown to death, I'm readding them.

I've also done a general clean up on sec lockers, removing the extra standard headset (why the f weren't these just replaced by the bowmans in the first place?), and stuffed the locker contents into the sec belts - because fuck the RSI inducing clickfest that is gearing up.
Reordered some of the contents of lockers, again for less repetitive clicks.

Gave the HoS a proper stun baton (I've notice most HoS's pinch a spare one from an officer's locker).
Swapped the detectives collapsible baton for a classic baton, seeing as they're as shit as collapsible batons now and fit the detective's film noir look better. Also gave him some pepperspray because its terrible enough for him to use.

:CL: Malkevin
tweak: Sec officers have two sets of cuffs again (one on spawn, one in locker)
tweak: Done some optimisation of sec spawn equipment lists and lockers to remove some of the repetitive clicking, sec belts are now preloaded with equipment.
tweak: HoS has a full baton instead of the collapsible one
tweak: Detective has a classic police baton and pepper spray instead of the collapsible baton (some made police batons shit, so don't get overly happy)
bugfix: pop scaled additional lockers spawned were the wrong type, changed them to the right type which has batons now.
/:CL:
2016-02-23 21:46:59 +00:00
Cheridan
9766395322 Merge pull request #15355 from tkdrg/yeah
Improves admin counting for irc
2016-02-22 01:27:43 -06:00
Kyle Spier-Swenson
514446d6ee Scale down dynamic wait on atmos now that the lag bug is fixed 2016-02-17 16:31:17 -08:00
phil235
95f825e7ed Fixes inventory things appearing above the nuke cinematic. 2016-02-17 01:49:03 +01:00
tkdrg
80301881de Merge pull request #15515 from MrStonedOne/patch-154
attempts to solve minimaps crashing the server. (again)
2016-02-15 16:32:32 -03:00
MrStonedOne
a2ae265064 Brings the rest of atmos into the new turf list system (and some more speed ups for process_cell()) 2016-02-14 00:07:43 -08:00
Kyle Spier-Swenson
35518eeefb converts sleep to proc form 2016-02-13 20:29:49 -08:00
Kyle Spier-Swenson
798711eac2 attempts to solve minimap crashing. (again)
so lummox knows about this, he thinks it's an icon's internal storage not getting properly freed until the proc ends, but we haven't narrowed it down, other then that Blend() is the cause.
2016-02-13 20:28:49 -08:00
tkdrg
31a5782dff Merge pull request #15311 from MrStonedOne/patch-148
Fixes pai don't ask me again (I think)
2016-02-13 22:59:40 -03:00
Kyle Spier-Swenson
2663cb2937 lets try another way of doing this. 2016-02-13 17:27:53 -08:00
Kyle Spier-Swenson
94ca3fb84b Fixes Runtime 2016-02-11 18:09:42 -08:00
Tkdrg
b441767693 Improves admin counting for irc
This is intended to support future improvements to the #adminbus bot.
2016-02-09 21:37:44 -03:00
Kyle Spier-Swenson
bd519dca11 "YOU MISSED A SPOT!" 2016-02-08 21:21:10 -08:00
Kyle Spier-Swenson
be51ea1d17 you saw nothing 2016-02-08 21:15:49 -08:00
Kyle Spier-Swenson
a0bba45587 Fixes queued for queuing objects not being detected as qdeleted 2016-02-08 21:15:16 -08:00
Kyle Spier-Swenson
87e81c308f Fixes warning 2016-02-08 21:11:26 -08:00
tkdrg
3bd79ccadb Merge pull request #15262 from neersighted/damnshuttle
Rework crates, supply packs, and supply orders
2016-02-08 11:36:26 -03:00
Bjorn Neergaard
fd5b61a156 Implement robust cargo logging 2016-02-08 04:28:19 -06:00
Kyle Spier-Swenson
3b849aa499 Fixes pai don't ask me again
The way it did it here was weird and i think it caused the bug because it would check the ask time + 600 and that would wrap around.

I don't know for sure if that's the cause of the bug, but this is an improvement none the less.
2016-02-07 22:55:13 -08:00
tkdrg
6141c62c80 Merge pull request #15223 from MrStonedOne/patch-145
Makes the qdel/GC system delay soft deletion until the next garbage controller tick
2016-02-07 21:57:50 -03:00
Bjorn Neergaard
4ef2667ff2 Rewrite supply packs/cargo orders 2016-02-07 04:45:55 -06:00
Bjorn Neergaard
ede93b63a6 Put shuttles in their proper place, split out secure crates 2016-02-07 01:18:56 -06:00
phil235
fdec37b76f Merge branch 'master' of https://github.com/tgstation/-tg-station into VisionUpdateRefactor
Conflicts:
	code/_onclick/hud/alien.dm
	code/_onclick/hud/alien_larva.dm
	code/_onclick/hud/hud.dm
	code/_onclick/hud/human.dm
	code/_onclick/hud/monkey.dm
	code/_onclick/hud/other_mobs.dm
	code/_onclick/hud/robot.dm
	code/game/machinery/Sleeper.dm
	code/modules/mob/living/carbon/alien/larva/death.dm
	code/modules/mob/living/carbon/brain/death.dm
	code/modules/mob/living/carbon/human/death.dm
	code/modules/mob/living/carbon/human/life.dm
	code/modules/mob/living/carbon/human/species.dm
	code/modules/mob/living/carbon/life.dm
	code/modules/mob/living/carbon/monkey/death.dm
	code/modules/mob/living/death.dm
	code/modules/mob/living/life.dm
	code/modules/mob/living/silicon/ai/death.dm
	code/modules/mob/living/silicon/ai/life.dm
	code/modules/mob/living/silicon/ai/login.dm
	code/modules/mob/living/silicon/pai/death.dm
	code/modules/mob/living/silicon/robot/death.dm
	code/modules/mob/living/silicon/robot/robot.dm
	code/modules/mob/mob_defines.dm
2016-02-06 15:42:13 +01:00
Bjorn Neergaard
159ca02294 Find and replace strikes again 2016-02-06 04:05:03 -06:00