Commit Graph

3057 Commits

Author SHA1 Message Date
Carnie 2d41705d68 Merge pull request #75 from Uristqwerty/path-opt
Pathing optimization. Thanks UristQwerty!
2013-03-19 21:47:16 -07:00
Carnie 986b06bb10 Merge pull request #59 from Nodrak/master
Airlock Painters
2013-03-19 21:37:33 -07:00
Uristqwerty 48fafe66bb Pathing optimization
+ Added Distance_cardinal proc. Should result in slightly more CPU-efficient pathing when used with CardinalTurfsWithAccess, or other adjacent turf procs that do not return diagonals.
 + Changed calls to AStar that used CardinalTurfsWithAccess to use Distance_cardinal instead of Distance

Overall effect: A bit less CPU used during pathing, if a bot has to path around corners. If a bot doesn't have to path around corners, it should be about as fast as before.
2013-03-19 08:59:39 -04:00
carnie 2819651811 Very minor optimization to MrPerson's changes.
Replaced some ifs with a switch statement.
Replaced an uneeded loop through a list (list.Remove() does this anyway)

Signed-off-by: carnie <elly1989@rocketmail.com>
2013-03-18 03:15:31 +00:00
carnie 809539603b Merge branch 'master' of git://github.com/MrPerson/-tg-station into Testing 2013-03-18 02:20:15 +00:00
carnie 0ca3088074 Merge branch 'master' of git://github.com/Giacomand/-tg-station into Testing 2013-03-18 01:13:52 +00:00
carnie c983e287a3 Modifications/RuntimeFixes for Majorseph's cigarette lighting stuff:
>type mismatches in cigarette/attack()
>mob overlays now update correctly when lighting somebody else's cigarette/cigar/pipe/etc
>removed some copypasta procs (pipe/light(), pipe/attackby() and cigar/attackby())

Signed-off-by: carnie <elly1989@rocketmail.com>
2013-03-18 00:13:44 +00:00
carnie 45b708c819 Merge branch 'master' of git://github.com/majorsephiroth/-tg-station into CigaretteLighting 2013-03-17 17:39:32 +00:00
Nodrak 8b906530fe Changed the airlock_painter stuff back to how Ricotez had them coded. Instead of clicking on the painter and setting the airlock type that way, you do it when you click on the door with the painter.
Cheridan fixed the inhand sprites being off, thanks Cheridan!
2013-03-16 13:05:50 -04:00
Giacomand 8bb0ac8a1d Merge pull request #48 from aranclanos/master
EMP effects get garbage collected
2013-03-14 01:45:52 -07:00
majorsephiroth d3f7959350 Changelog updated. Added the ability to help people light cigs with cigs/cigars.
Signed-off-by: majorsephiroth <majorsephiroth@hotmail.com>
2013-03-14 10:44:22 +11:00
carnie 805e6344ad Merge branch 'master' of github.com:tgstation/-tg-station into Upstream 2013-03-13 19:04:03 +00:00
carnie 21949a5d2b Committing Elo001's job management stuff.
I made some very minor modifications (mainly tidied up the code a little bit so it's easier to read/modify).

I have made it so opened_positions can be negative. This means that reopening original positions, which were just closed, no longer requires an annoying cooldown period.

Removed the "AI" "Cyborg" "Assistant" checks since they were already handled within the blacklist.

The can_close_job and can_open_job procs now return codes for different reasons for failure (this removed a little bit of code duplication)

Nice work for a first commit, Elo :3
2013-03-13 18:54:09 +00:00
MrPerson 8f740222ef DNA Machine tweaks to fix runtimes for when the machine disappears
Really a fix on the commit from earlier, which I'm aware didn't work. I tested this extensively, works just fine.
2013-03-13 05:06:40 -07:00
majorsephiroth 33905ce24a Expanded what can light things. Cigars and pipes can now be lit by standard sources. Standard sources are: Lighter, Zippo, Igniter, weldingtool, energy sword, and candles. 2013-03-13 16:17:02 +11:00
Aranclanos e62295e98e Made the effects of EMP pulses get garbage collected. Less lag on the singularity (around 20 effect del per 5~10 seconds) 2013-03-13 00:08:20 -03:00
Nodrak beedf1bfb0 Airlock painters! Commit for Ricotez
- Adds a new device that will paint airlock assemblies. This works on both solid and glass airlock.
- Click on the sprite of the painter to set it.
- Uses toner as 'ammo'
http://forums.nanotrasen.com/viewtopic.php?f=16&t=12053

Featuring Teh_Wolf's paint sprayer sprite complete with inhands!
2013-03-12 19:36:15 -04:00
Elo e78896676b Forgot to remove a testing-output 2013-03-12 18:55:15 +01:00
Elo 4b76bcc2e0 Added logic checks to my stuff in topic() so you can't bork the server by griefing with byond://?src links 2013-03-12 18:46:20 +01:00
Giacomand af525cb75b - Urgent fix to NTSL. Sanitizes the output of NTSL, including the broadcast() function.
- Added a GetCleanVar to be used when getting a global variable to use inside the game code, it will sanitize() the variable if the compare argument is not equal to it; the compare argument should used to see if NTSL has changed the value.
 - Added a sanitize_data proc for the signal datum. It will sanitize all the data using strip_html_simple().
2013-03-12 16:50:28 +00:00
MrPerson a00e456b9c Moved a check in the DNA machine to hopefully fix that pesky "but there's nothing connected!" runtime.
Thanks Carn and CIB.

The following runtime has occured 7 time(s).
runtime error: Cannot read null.occupant
proc name: Topic (/obj/machinery/computer/scan_consolenew/Topic)
  source file: dna.dm,891
  usr: Trey Campbell (/mob/living/carbon/human)
  src: DNA Scanner Access Console (/obj/machinery/computer/scan_consolenew)
2013-03-12 07:38:19 -07:00
MrPerson 71ad5c0faa Runtime fix for Telecomms machines, hopefully
Runtime in question:
The following runtime has occured 17 time(s).
runtime error: Cannot read null.name
proc name: Topic (/obj/machinery/telecomms/Topic)
  source file: machine_interactions.dm,346
  usr: M.I.N.D. (/mob/living/silicon/ai)
  src: Bus Mainframe (/obj/machinery/telecomms/bus/preset_three)
2013-03-12 07:19:04 -07:00
Elo 1a97f052f5 Re-enabled closing original positions with a cooldown 2013-03-12 11:23:24 +01:00
MrPerson b76f521767 Fixes for the following 3 runtimes
runtime error: Cannot read null.occupant
proc name: Topic (/obj/machinery/computer/scan_consolenew/Topic)
Added a check to make sure there's an occupant.

runtime error: Cannot read null.key
proc name: toggle power (/obj/machinery/particle_accelerator/control_box/proc/toggle_power)
Added a check for if there's a usr.

runtime error: Cannot read null.backup_author
proc name: attack hand (/obj/machinery/newscaster/attack_hand)
Added a check for if the feed still exists.
2013-03-12 02:27:57 -07:00
Pete Goodfellow 30be75160a Improves readability of /obj/machinery/Topic(). Includes text styling. 2013-03-11 22:41:26 +00:00
Pete Goodfellow 38bad51a6d Fixes gcode issue 1380. Updates and improves cryo and sleepers, including standardization and text styling.
Changes the heater to use freezer sprites.
Updates the map with sleeper directions, and Cryogenic2.dmi with sprites.
2013-03-11 22:40:53 +00:00
Elo b5b7ddcaa5 Modifies ID computers to allow opening additional positions for latejoiners. Very restricted at the moment to test how it's used by the playerbase
See http://forums.nanotrasen.com/viewtopic.php?f=16&t=12490&p=195140#p195140 for details
2013-03-11 21:00:39 +01:00
carnie 7c01c25232 Merge branch 'master' of git://github.com/Cheridan/-tg-station 2013-03-11 17:51:19 +00:00
Cheridan 971cf6e628 Cable coils and cable cuffs now use the inhand sprites. Only red and blue, for now. 2013-03-11 11:53:27 -05:00
Giacomand 9593bf4fc2 Merge pull request #32 from Petethegoat/issue_1376_fix
Rewrote how handcuffs work. Fixes gcode issue 1376.
2013-03-11 09:51:37 -07:00
Pete Goodfellow 14b1777359 Rewrote how handcuffs work. Fixes gcode issue 1376.
Includes standardization and text styling.
2013-03-11 15:54:00 +00:00
Christian Bielert 51b6b9de60 Merge pull request #30 from MrPerson/master
Remove mind.original
2013-03-11 08:19:19 -07:00
Pete Goodfellow 5f2d7eb9c0 Added the slashes before the paths. 2013-03-11 14:13:47 +00:00
MrPerson a88b30ab31 Removed mind.original
All usage of it on silicons is replaced by is_special_character()
is_special_character moved from admin.dm to mob_helpers.dm
Also fixed a runtime having to do with objectives.
2013-03-11 05:40:21 -07:00
Pete Goodfellow 4812d3deed Cleanup of recharger code, including text styling.
Makes removing items from the recharger go straight into your hand.
2013-03-11 04:52:04 +00:00
Pete Goodfellow b02c459505 Adding google code commits r5836 to r5849. RIP in peace google code. 2013-03-11 04:26:54 +00:00
d_h2005@yahoo.com a0045477be -Committing a slightly changed version of Startoad's bureaucracy crate patch.
-Dualsabers now come in the alternate colors, sprites courtesy of mjrseph.
-Adds the Vealrender, a harmless and goofy version of the veilrender, courtesy of supersayu. You can possibly find it in mining asteroid surprise rooms.
-*flap and *aflap are gender sensitive now, whoa!


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5834 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-09 06:00:40 +00:00
petethegoat@gmail.com 97e0f9b6f7 Smallified Centcomm and removed a large amount of the unused machines. This affects most stuff on z2.
Removed the administration shuttle and the stupid alien dinghy.
Removed the beach (hey, it's an away mission now).

Removed syndicate deathsquads on account of them being stupid and redundant.
Temporarily removed regular deathsquads- search for "DEATH SQUADS" to find the locations to uncomment. Additional code is in unused/specops.dm and unused/specops_shuttle.dm.

Added a single tile fake window for unsim windows.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5831 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-09 04:35:37 +00:00
petethegoat@gmail.com 1af9267159 Fixed the plasmafire theme active left hand sprite.
Fixed the baton text styling.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5827 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-08 22:13:54 +00:00
petethegoat@gmail.com 8ff7285645 Updates HUD stuff!
The main goal was to remove all the pointless shit in the UI style dmis, but this commit actually goes a bit deeper than that.

Formally renames the "hurt" intent to "harm", in line with everything else in the world.

Removes the old screen1_... .dmis. They've been replaced with screen_... .dmis. They function much the same.
screen_gen.dmi is used for things which apply to multiple UI styles, such as storage slot sprites, or the intent selector. (These can still be overridden in HUD code, though.)

Item action buttons have been changed to use a template from the UI style, and the icon_state of the item.
var/icon_action_button has been removed- varvar/action_button_name must be used instead to add action buttons for items.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5826 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-08 21:32:00 +00:00
elly1989@rocketmail.com 0fbd92f5c3 Shuffled all the #defines in global.dm and setup.dm
They have been separated into low-level stuff that you wouldn't really want to ever edit (like the definition of PI) which are in __DEFINES.dm
The others, which hosts could possibly want to modify for their server, are located in _compile_options.dm

I've tried to group it together in some sort of logical way so it's easier to find what you need. Feel free to move whatever.

Main reason for the change is so we can add some more compile options into the game to make it more configurable.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5825 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-08 19:02:19 +00:00
elly1989@rocketmail.com 8849cd16d3 Replaced get_apprentice_candidates() with get_candidates(BE_WIZARD)
/proc/testing("message") will now only print message to world.log if #define TESTING is uncommented. This will allow coders to make in-depth debug messages for confusing bits of code. Said debug messages would not be visible on th elive server, but coders can enable them by compiling with #define TESTING uncommented. This should make debugging ikky horrible code easier (assuming people bother to use testing())

Temporarily removed the weightless (aka gravity failure) event, due to people hating it. ;(

Replaced references to KILL with PROCESS_KILL (I didn't realise I had already defined something like that). Setup.dm and global.dm are rather cluttered. I will be cleaning them up and will remove a few unused defines like #define KILL in my next commit.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5822 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-08 17:16:29 +00:00
aranclanos@hotmail.com df1b5394da Changes on how some simple hostile mobs search for targets, they now make a list of mobs at sight with the heareable() proc and add the mechs of a new global list instead of checking all the atoms in a radius of 21x21.
The new global list is called mechas_list, it contains all the mechs (sadly the 8 mechs of centcomm are added to this list, just to avoid problems with other servers with different maps)
Clowns, goats and spiders still use the old way to track targets (the view() proc).

The goal of this commit is to reduce lag, it will be really noticeable on the carp migration event, they should be 70% less laggy.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5820 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-08 07:22:34 +00:00
petethegoat@gmail.com 5566c4dbec Commented and improved code/modules/mob/screen.dm.
Removed targeting hands and feet. Those areas now go to arms and legs instead.
Updated the zone_sel.dmi icon_states for this.

MouseDown() is now completely unused. From the Byond ref:
"Don't define this unless you need it, because it generates extra communication that is otherwise avoided."

Fixes issue 1378. Carbon jetpacks are used as internals
Back tanks are now checked last when searching for internals.

Moved var/foldable from /obj/item/weapon/storage to ..storage/box.
Changed verb/quick_equip() to be on humans instead of all mobs (it was only usable by humans anyway.)
Updated locker resist code a little bit, mainly removing a spawn(0).

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5819 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-07 19:35:33 +00:00
petethegoat@gmail.com bdf8abff40 Overhauled grabs. They should pretty much do the same thing as before, although they should be a fair bit more effective.
Updated some text styles and such along the way.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5818 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-07 01:30:29 +00:00
giacomand@gmail.com 3443c31c6a - Made cryogenics cells stop cooling you down in life() if there is less than 10 moles of gas in the pipe's gas mixture. Fixes Issue 1367.
- Restructured viruses in the reagent container to be more maintainable. Should also fix some issues with vaccines.
 - Restructured some code in the PANDEMIC.
 - You can now mix vaccines together, it will combine the list of viruses it will vaccine against.
 - Fixed Carp stunning Cyborgs.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5817 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-06 21:18:15 +00:00
petethegoat@gmail.com 786242f9b2 Big text styling overhaul. Mostly affects reagent related stuff.
Adds a new 'userdanger' class, which is bold and red. 'danger' is now just red. Adjusts all dangerous messages I could think of to use the appropriate class.

Trash items can now be washed away in sinks.

Removes the robodropper, on account of it being awful. Borgs get a normal dropper instead.

Changes the probability of blood spatter from attacking someone from 33 to item.force * 2

Path changes:
/obj/item/weapon/reagent_containers/ld50_syringe > /obj/item/weapon/reagent_containers/syringe/lethal
/obj/item/weapon/reagent_containers/ld50_syringe/choral > /obj/item/weapon/reagent_containers/syringe/lethal/choral
possibly some others? i think this is it.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5815 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-06 17:44:49 +00:00
ericgfwong@hotmail.com d9f4eb9b72 Changed "nuclear gun" to "advanced energy gun" to make it clear what you're supposed to steal.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5813 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-06 04:15:49 +00:00
johnsonmt88@gmail.com c21c2b0ab2 Airlock settings for the RCD.
Committing for Ricotez:
http://forums.nanotrasen.com/viewtopic.php?f=16&t=12054

This adds a verb to the RCD which allows the player to select which type of airlock it spits out. 

I've set the hand-held RCD is set to create any colour airlock while the borg's RCD can only spawn the default glass and solid airlock. The reason for this is that the borg has no way to change the ID requirements of the door and the borg's RCD is already vastly superior to the handheld version because of how it draws power.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5812 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-06 02:34:03 +00:00
aranclanos@hotmail.com 3a2673a284 Changes for all the different update icons procs of humans and monkeys, they now update their own sprite and hud icon (if it's a proc of a slot item) without having to call for update_icons().
A lot of different calls for update_inv_[slot] now won't call for update_icons.dm(). Such as dropping, throwing, picking up objects, moving objects around your gear, using your active hand, firing guns, stripping, etc.
All the different calls for UpdateDamageIcon() now they won't call for update_icons()
The different sprites of humans/monkeys will now have their own layer, humans starting with MUTANTRACE_LAYER in layer -1 to R_HAND_LAYER in layer -20, so the sprites don't get messy overlapping eachother if update_icons() is not called. To help this change, all layers numbers were changed, R_HAND_LAYER used to be 1, now it's 20. (This can be changed back if it ends up being confusing or ugly to read)

TL;RL I removed 90% of the calls for update_icons() modifying the different update procs of update_icons.dm of monkeys/humans. The goal is to reduce lag.

JUST IN CASE, lying down will call for update_icons(), so players have an easy way to update their icons if something goes horribly wrong. Which won't. I hope.


Fixes issue 842. Handcuffs sprites appearing on the player's UI if this one was handcuffed. Because I liked this we'll call it feature and add some awesome sprites made by Cheridan, you'll now have a new sprite on your UI telling you "you're handcuffed buddy!". (Also he named the sprites so don't blame me)

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5809 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-04 05:01:07 +00:00