Commit Graph

438 Commits

Author SHA1 Message Date
Firecage
31c6e07e7d 3 absolute pathing files 2014-08-16 00:18:46 +02:00
ikarrus
df285ff7b3 Resolved conflicts:
code/modules/mob/mob.dm
2014-06-13 09:04:30 -06:00
ikarrus
40800b79e0 The Loggening: Admin Edition
-Build mode logging. A lot of its functions are highly abusable but not logged
-Gravity Catapults no longer spam asay. They will be kept in the game log.
-Logging for Cyborg handcuffs
-Logging for Stripping/equipping
-Logging for decreasing PA power control. Easier as an admin to tell when I should panic without having to watch them like a hawk.
-Logging for disposaling people
-Some code optimizations along the way as well
2014-06-02 23:13:33 -06:00
phil235
6c4c6314b2 under into under/rank 2014-05-31 00:16:57 +02:00
phil235
c04c72f033 under into under/rank 2014-05-31 00:16:18 +02:00
Mloc-Hibernia
8af8a43d6f Initial pass to convert LF to CRLF
Signed-off-by: Mloc-Hibernia <colmohici@gmail.com>
2014-03-24 08:53:40 +00:00
fleure
57ce15964c Merge remote-tracking branch 'upstream/master' into secclean
Conflicts:
	code/WorkInProgress/Sigyn/Department Sec/jobs.dm
2014-03-23 13:38:42 +00:00
Aranclanos
64c2138aa5 Merge pull request #3108 from TZK13/Bluebay-2-Electric-Bloogaloo
[MAP] Bluebay 2: Electric Bloogaloo
2014-03-22 20:01:55 -03:00
fleure
f74fe4536b Cleaned up security job code 2014-03-22 01:35:55 +00:00
MrPerson
6930283efc Merge branch 'master' of https://github.com/tgstation/-tg-station into qdel_r
Conflicts:
	code/game/gamemodes/changeling/changeling_mutations.dm
	code/game/gamemodes/changeling/changeling_powers.dm
	code/game/gamemodes/malfunction/Malf_Modules.dm
	code/game/objects/items/weapons/tanks/watertank.dm
	code/game/objects/structures/tables_racks.dm
	code/modules/research/server.dm
2014-03-21 03:05:39 -07:00
TZK13
e689130c03 Makes Greenbay into Bluebay, take two. 2014-03-17 22:25:57 -05:00
Rockdtben
a034e41f25 Removing TLE comment stamps and useless comments 2014-03-13 08:25:28 -05:00
fleure
bb2ca0f901 Merge pull request #3012 from Miauw62/goodbyecreed
Removes creed access from the game.
2014-03-11 00:27:15 +00:00
MrPerson
6b29fecda1 Merge branch 'master' of https://github.com/tgstation/-tg-station into qdel_r
Conflicts:
	code/game/machinery/bots/ed209bot.dm
	code/game/machinery/rechargestation.dm
	code/game/machinery/turrets.dm
	code/game/objects/structures/crates_lockers/closets.dm
	code/modules/research/circuitprinter.dm
2014-03-08 22:03:03 -08:00
Steelpoint
55beb8c8b3 TakeTwo 2014-03-08 23:50:15 +08:00
Miauw
1c629bcd69 Removes creed access from the game. 2014-03-06 20:00:28 +01:00
MrPerson
917a2dd2a4 Rename equip_to_slot_or_qdel() -> del()
Still qdel()'s them, just naming the proc back.
Should hopefully reduce the number of lines different in the pr.
2014-03-02 21:08:25 -08:00
MrPerson
9eee3e5067 First pass at a qdel() garbage collection system for tgstation
Works pretty well. If it can't GC something, it'll just del() it and be done.
Speed is amazing, holy shit.

New procs you should be aware of:
qdel(atom/movable) - sets up an object for garbage collection. Call this rather than del(atom/movable).
atom/movable/Destroy() - called right before the object is GC'd, so it still has a loc. Also called if the object is del()'d.
new controller - garbage.dm has all the details on this. Basically it nulls all references on GC'd objects and force del() them if necessary.
Generally speaking, objects should use Destroy() for behavior prior to deletion rather than Del(). You should also always call the parent so the object gets the right gc_destroyed var set.

ISSUES:
Tries to GC mobs atm. This actually works for new players, not so much for humans/monkies/simple_animals/anything. I'm guessing it needs to clear out their mind and HUD and maybe other things.
Gibbing is really bugged. It works, but the overlays just sit there for awhile and ugh. I'm very tempted just to del() mob/living and mob/camera and call it a day.
qdel() equipment doesn't unequip the item.
Pipes don't generally GC correctly. Debugging suggests they get referenced in many pipenets and that isn't cleared properly. However some do work fine. Need assistance here.
Bots don't GC, probably in the radio controller.
Lots of other shit doesn't GC but it's hard to find them because of the pipe spam.
I think I'm calling Destroy() twice by accident.
2014-02-23 14:55:12 -08:00
Cheridan
a92cce9163 Merge pull request #2821 from fleure/secfix
Better fix for security access
2014-02-18 22:41:39 -06:00
fleure
5b53c6cf45 Better fix for security access 2014-02-17 19:25:34 +00:00
Hornygranny
9d3f8f6a2d second pass 2014-02-15 20:11:12 -08:00
fleure
a186585c55 Removed redundant spawn to fix 2014-02-12 21:06:54 +00:00
fleure
d31b69e3ef Fixed sec not having department access 2014-02-12 20:15:08 +00:00
Jordie0608
ae1f18e6e4 Config option for sec starting in brig 2014-02-08 01:10:05 +11:00
Pete Goodfellow
473505a6f0 Fixes #2566. 2014-02-01 22:04:22 +00:00
Giacomand
7a76e9456b Ported the MiniStation branch.
MiniStation is now a single folder which isn't included by default. When you tick the code file for the ministation map, like with tgstation and metastation, it will then include the necessary code files itself. These code files modify certain datums, like jobs, supply packs and uplink datums.

The modified files outside the MiniStation folder are modifications made by the MiniStation branch which aren't changes exclusive to MiniStation.

Such as changing the unused circulator, which only MiniStation used, so that it was fixed and would correctly match the direction of the thermal generator.
The TEG was also changed to have a better interface and to include the above fix.
The department security was changed so it wouldn't runtime if it didn't find a checkpoint.
The preferences' SetChoices was changed so that the screen would automatically grow for every column in the job list.

The main difference between this version and the forked version is that the Unemployed and the Lieutenant was reverted back to their original names; since it would've been a massive pain to add support for that.
2014-01-29 22:36:10 +00:00
Aranclanos
42e13b8914 Turfs who spawn with the spawn verb or with buildmode will now use the ChangeTurf() proc and stop making Linda runtime to hell. 2014-01-07 09:19:59 -03:00
Kyrah Abattoir
560b50ec1b Reformatted the way objects and items structure their description text, added the little object "icon" everyone seems to be using.
Added superclass invoke for the arcane tome

Added superclass invoke to light switches, removed it's (unused) description.

FLightswitch description repetition derp

examine superclass invoke for gas flow meter, space heater, fire extinguishers, grenades/IEDs, fancy boxes and welder. Changed description for welder and fire extinguisher to show their content in a similar style.

Fixed tank, linen bins and janicart description, and added welder of previous commit (forgot to commit it)

REMOVED icon in mop_bucket description (now provided by item class).
REMOVED unused examine() override in clothing/gloves
REMOVED custom examine() for glass/rag
CHANGED using examine superclass on paperwork/paperbin, removed redundant description code
CHANGED examine superclass for power/apc
ADDED universal maxcharge readout for all the powercell types.
CHANGED using examine superclass on machinery/light, removed redundant description code

FIXED weapon/virusdish use a description field.
TWEAK lowercased some of the portable generators.

Fixed improperness of pacman names
2013-11-16 22:15:50 +01:00
Robson Richards
1c70008d0c Changes Limbs into Obj's
Reworked all the paths for it
Reworked all the procs for it
2013-10-11 19:11:55 +01:00
supersayu
a993ce62db Bugfixen and minor changes. Fixes #136.
Adjusts the click code to not use client/Click().  The code is largely unchanged, except that it allows the compiler default behaviour of calling atom/Click(), and then forwards the call to mob/ClickOn().  I had some reports that melee combat mixed with movement was behaving oddly, and I believe it may be due to the use of client/Click; the byond documentation says that redefining client/Click() causes additional overhead, and it isn't strictly necessary.

Alters the way double clicks are handled, in an attempt to better handle clickspam, as often occurs during pitched combat.  This may also be responsible for the above, but I don't know.

Inserts proximity (aka flag) checks in all afterattack() procs.  The old assumption was that unless an item used the USEDELAY flag, afterattack() was only called when adjacent, but this is no longer true.  This led to beakers, soap, crayons, etc, all being usable at all ranges.

Removes the NODELAY flag, which was unused.  Removes all existing uses of the USEDELAY flag so that it can be readded to things that need extra delay.

Removes the hand_* procs, previously used by restrained actions.  Instead, the mob helper mob/RestrainedClickOn() has abosrbed basically all the functionality they were used for, which is really only monkeys with jungle fever.

Adds a special case of the Adjacency() proc for doors.  This fixes #136, airlocks being unreachable due to border fire doors.  However, this only takes us back to the unpleasant position where you have to open-hand the door, switch to a crowbar, and pry open the firedoor; it still needs a better fix.
2013-09-17 18:19:14 -04:00
supersayu
475042a212 Click code rework
Fixes #646, #579, #863

Completely redoes the click code.  Moves all click related code into code/_onclick for reference.  Also moves hud datum code and all the screen object code I could find into code/_onclick/hud, as it is related.  Item attack(), attackby(), afterattack(), and attack_self() have been moved into item_attack.dm for consistency.

Completely removes dummy objects and adds atom.Adjacent(user).  This proc checks for border items and anything marked with throwpass for determining whether or not you can reach a given square.  A turf helper, ClickCross(), was added to facilitate this.

Removes the monolithic Atom.Click() proc in favor of an overridable click handler attached to mobs.  Click code no longer uses the : path operator as a consequence, and mob/lastDblClick has been moved to Client/next_click.  A few end arounds were necessary (screen objects, buildmode, and spells), but this has been handled by repurposing Atom.Click(); if you have special click code, insert it in the object's Click() function and return 1 to prevent normal processing.

This update adds support for attack_ghost(); the previous "new" click handler had support for it but was never finished.  I have taken the liberty of letting ghosts click portals, the gateway, and the teleporter to jump to the intended target square, and kept the previous default action of examine()ing every damn thing you click.  It is to be suggested that you could do more with this proc when ghost interactions are enabled.

This update also adds support for double clicking.  It is currently only used for ghosts and AIs, because the original (first) click still registers normally.  For both of these, double clicking a square will jump you to it, and double clicking a mob will follow it.  In the case of ghosts, double clicking bots and the singularity will also set you following it; if you double click your own corpse, you will re-enter it; this also works if your body is in a closet, sleeper, DNA scanner, etc.  Default mobs ignore double clicks as normal.

-- NOTE --

There are two flags which were previously unused or misused by click code: USEDELAY and NODELAY.  Ostensibly, USEDELAY would double the normal 1sec delay, and NODELAY would remove it.

Using either of these flags as intended would significantly affect the timing of the game.  In particular, USEDELAY is currently applied to guns and about everything else that acts at range.  I am adding USEDELAY as a half-second increase for now, but I have not put a significant amount of thought into it.  I considered lowering the normal 1sec delay to .8sec to balance it, but the consequences of that on combat involve more calculations than I care to make.

NODELAY seems to never have been used, and I did not implement it, but I could do so trivially.
2013-09-17 18:15:54 -04:00
Aranclanos
5af0af2eee Runtime fix for buildmode type path inputs, incorrect paths are now rejected. 2013-07-25 22:55:12 -03:00
Aranclanos
7b47514081 Runtime fix for buildmode, throwitem option, you can't select turfs anymore to throw. 2013-07-19 14:47:31 -03:00
giacomand@gmail.com
46dc7d6084 Committing Faerdan's UI overhaul. Includes a UI browser class to easily manage and standardize user interfaces. This first release does not convert all the user interfaces in the game but only most of them. You can find samples of these user interfaces here: http://imgur.com/a/5dr6E
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5794 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-27 20:02:42 +00:00
petethegoat@gmail.com
b8ec73853e Fix for r5760.
:silently weeps:

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5761 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-22 02:11:21 +00:00
petethegoat@gmail.com
f77a71fc04 This should fix the following runtimes:
The following runtime has occured 18248 time(s).
runtime error: Cannot execute null.IsIndexCut().
proc name: isWireCut (/obj/item/device/radio/proc/isWireCut)
  source file: radio.dm,185
  usr: Azerthene Severn (/mob/living/carbon/human)
  src: the security radio headset (/obj/item/device/radio/headset/headset_sec/department/med)

The following runtime has occured 165 time(s).
runtime error: bad index
proc name: recalculateChannels (/obj/item/device/radio/headset/proc/recalculateChannels)
  source file: headset.dm,261
  usr: Burningface (/mob/new_player)
  src: the security radio headset (/obj/item/device/radio/headset/headset_sec/department/engi)

It also makes the mirror automatically shave women when used.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5760 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-22 02:06:02 +00:00
petethegoat@gmail.com
75a7d34ec9 Committing datum based surgery proper. There's a brief explanation in surgery.dm, if you want to know how it works.
Basically, surgeries are now initiated by bedsheets or surgical drapes, and consist of separate steps.
Appendicitis is sort of hacky, but it should work for now. I'll update it when I add processing organs.

Added getbrain() and getappendix() procs, which can be used instead of checking the old (now missing) x_op_stage variables.

Added a surgical apron, using old sprites by matty.

Updated the map:
Removed the note with spell descriptions from the wizard's den for Kor.
Updated the operating room.
Updated xenobio to have appropriate tools for slime surgery.

Path changes:
/obj/item/brain > /obj/item/organ/brain
/obj/item/weapon/reagent_containers/food/snacks/appendix > /obj/item/organ/appendix
/obj/item/weapon/reagent_containers/food/snacks/appendix/inflamed > /obj/item/organ/appendix


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5703 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-14 01:20:58 +00:00
petethegoat@gmail.com
a1ac5f0e66 Renamed /datum/organ/external to /datum/limb.
Updated all files.

Removed the skeleton and skin organs.

Updated WIP surgery.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5689 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-11 18:52:33 +00:00
petethegoat@gmail.com
c573f25fa6 Committing WIP datum based surgery.
It is:
-functional

It's not:
-finished
-fun
-perfect

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5684 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-10 22:30:53 +00:00
petethegoat@gmail.com
6617344acc Fixes issue 1257. DeptSec: General officers spawning without clothes or ID
Added the skeletal mini bar sprite.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5614 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-26 22:50:39 +00:00
ericgfwong@hotmail.com
4d9af5c0a4 Recolored a bunch of objects to make medbay's department colours more clear and consistent. The colours are green/white.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5593 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-21 00:11:48 +00:00
petethegoat@gmail.com
ef129f53ac Fixed up dept sec so latejoining works. Dept sec also get their snazzy armbands!
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5487 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-07 19:29:44 +00:00
baloh.matevz@gmail.com
9cf23741ca - Fixed department security, so you no longer spawn in walls
- Applied some changes that happened to jobs since department security was started.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5467 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-05 03:37:22 +00:00
ericgfwong@hotmail.com
3a928012f1 Updated Department Security files to work with the new 2.1.0 map.
Updated the relevant readme file
Updated 2.1.0 with some missing air alarms and fire alarms.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5362 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-20 00:28:13 +00:00
petethegoat@gmail.com
15a80594a6 Fixed the softcurity readme.
Added grabbing cigarettes with your mouth for Malkevin.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5290 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-10 00:56:42 +00:00
petethegoat@gmail.com
fcf95c8d6f git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5281 316c924e-a436-60f5-8080-3fe189b3f50e 2012-12-08 00:41:32 +00:00
petethegoat@gmail.com
4b2a9d1b59 Added department sec experimental code.
Removed the softcurity map from the repo as it was a waste of space.
It's still available here; http://tgstation13.googlecode.com/files/tgstation.2.0.9_Softcurity.zip

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5277 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-07 19:51:57 +00:00
petethegoat@gmail.com
fe3acba8e7 Added a 'softcurity' or 'sissycurity' folder for TLE to run on Sigyn.
Of course, everyone else is welcome to try it out, but it is a massive nerf to sec.

It's an experiment, nothing more. Don't get your panties twisted.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5272 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-06 23:45:41 +00:00
aranclanos@hotmail.com
dee7b74a45 -Changed turf creations, merging everything to only one proc
-Fixes Issue 1085 - Artificers creating turfs with buggy lighting
-Spells now will use the proper proc to create turfs

Due to the amount of files changed, this is just the 'part one'. The merging in turf.dm is not finished, mineral walls and buildmode are still using the old system. The creation of turfs on the game panel is not using the proper procs yet. Stay tuned for this changes, but now, sleep.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5054 316c924e-a436-60f5-8080-3fe189b3f50e
2012-11-13 13:39:00 +00:00
elly1989@rocketmail.com
8720dd0e69 Removed the blinking from buildmode. There's no point in having to download additional dynamic icons just for that.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5000 316c924e-a436-60f5-8080-3fe189b3f50e
2012-11-03 14:42:23 +00:00