Commit Graph

2499 Commits

Author SHA1 Message Date
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
MrPerson
8448fc0104 Remove that annoying ass "is_special_character used on an unknown silicon" debug message. 2013-03-17 16:34:49 -07:00
Benjamin Read
74f1c14fe2 *Fixed this buggyness and now it compiles. 2013-03-15 10:53:56 +11:00
Benjamin Read
3032c1b765 *Cleaned up grammar here and there
*Made unpopped popcorn do a tiny bit of damage (using 0.1 units of sacid)
2013-03-13 13:47:52 +11:00
Benjamin Read
60c3057978 Merge branch 'master' of https://github.com/sawu-tg/-tg-station into food-stuff 2013-03-13 12:43:26 +11: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
af938060f6 Revert "Remove transfer_fingerprint_to in favor of add_fingerprint"
This reverts commit 4a7ba48b11.

I misunderstood what this proc was doing.
2013-03-12 08:22:17 -07:00
Benjamin Read
80734523fd *Moved chocolatebar/attack_self() to super
*Moved chocolatebar/proc/Unwrap() from super.
2013-03-13 00:16:41 +11:00
MrPerson
4a7ba48b11 Remove transfer_fingerprint_to in favor of add_fingerprint
Add_fingerprint has sanity checks, which makes it a superior proc.
This fixes at the very least:
The following runtime has occured 14 time(s).
runtime error: Cannot execute null.Copy().
proc name: transfer fingerprints to (/atom/proc/transfer_fingerprints_to)
  source file: detective_work.dm,155
  usr: Engineering Cyborg-743 (/mob/living/silicon/robot)
  src: the disposal pipe (/obj/structure/disposalpipe/segment)
2013-03-12 04:40:00 -07: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
Giacomand
64971367a7 - Removed unneeded tags in the map file. The map was updated to Pete's changes to the sleeper before it was changed.
- Moved the cable define into the cable file.
2013-03-12 00:12:24 +00:00
Benjamin Read
bd142ae236 -Basic new 'fluff' system on eating.
* allows for random verbs per item while eating, and for items to be wrapped and require unwrapping before eating.

* this resolves the hunger message bug

* chocolate utilizes the unwrapping method using an all new sprite

* multiple items have been assigned custom verbs

* beet soup switch condensed
2013-03-12 09:42:09 +11:00
MrPerson
eb95e92d78 Err... ok so now is_special_character() is good. Sorry. 2013-03-11 11:59:18 -07:00
MrPerson
520a9cfdcd Tweaked is_special_character() to be meaner, leaner, and less buggy
Not that those bugs matter, they only effect traitor cyborgs.
2013-03-11 10:10:19 -07: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
Christian Bielert
51b6b9de60 Merge pull request #30 from MrPerson/master
Remove mind.original
2013-03-11 08:19:19 -07: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
5ddcc63b83 Removes an unnecessary check from the gun afterattack(). flag does handle rechargers. 2013-03-11 04:52:53 +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
Kortgstation@gmail.com
39145b95b0 Added admin logging to cutting power cables. It was incredibly easy to release the singularity/depower the station without leaving any record at all.
Added admin logging for people shooting fuel tanks to detonate them.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5829 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-09 02:21:01 +00:00
petethegoat@gmail.com
6ff8d60a15 New sprites for alien zone selection from Cheri~
Slightly updated how zone sel picks icons to enable this. First bit of OOP in hud code, I think.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5828 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-08 23:10:24 +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
giacomand@gmail.com
feabd92251 - Cleaned up the hostile mobs. It will also factor the mech's location, making sure it isn't too far away before doing a line of sight calculation. Moved these calculations into the ListTargets() proc, so nothing else bugged out because they didn't account for the mech's line of sight.
- You can now resist to unbuckle yourself, without having to click the chair!

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5823 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-08 18:10:14 +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
9950fadc5e Added forcesay() upon being attacked.
forcesay() takes what's currently typed in the player's chatbar, and if that is 'Say "'... it will remove any radio information, and automatically say it. It also ignores emotes.

Updated some more text styles.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5816 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-06 20:51:57 +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
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
giacomand@gmail.com
e14b52767b - Made cameranet chunk size a variable.
- Added a missing "changed = 0" to update the chunk's status. Thanks Uristqwerty for pointing it out. Should help optimize freelooking even more.
 - Moved a camera so it had better vision of the hallway.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5808 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-04 03:47:42 +00:00
Kortgstation@gmail.com
85f567cae2 Made cult blades/double barrel shotguns fit on exosuit slots again.
Wizard staffs, SAW, combat shotgun still don't

Added the Mjollnir and Singularity Hammer. Just silly melee weapons I coded/sprited for fun. Both are using the Mjollnir's sprites currently though I didn't have it in me to make a billion more inhands for the Singularity Hammer.

Mjollnir shocks the target and hurls them away/spews lightning around.

Singularity Hammer pulls everything nearby in towards the target.

Don't really have plans to balance them or make them obtainable in game but I thought as long as I'd coded them some admin or another may enjoy trading them to antags/giving them to the chaplain etc.

Lowered fireballs cooldown and decreased its explosion size (so wizards can use it without killing themselves by causing hull breaches)

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5805 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-03 01:46:25 +00:00
ericgfwong@hotmail.com
0dd88c7974 Increased slowdown of non-antagonist spacesuits and hardsuits.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5803 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-03 00:40:18 +00:00
giacomand@gmail.com
edbae4d9d5 - More runtime fixes.
- Committed carn's fix to events happening every 5 minutes, on the dot.
 - Changed some more turf which play sound so they do not play to everyone in the area.
 - Made the join screen a little bigger for the "view player polls" option.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5801 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-02 16:51:57 +00:00
giacomand@gmail.com
a3b74c9d2b - Multiple runtime fixes.
- Moved some fingerprint procs to detective_work.dm.
 - Removed some unnecessary del() usage in the detective code.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5800 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-02 01:19:02 +00:00
giacomand@gmail.com
6bf905a26a - Quick fix for the explode() proc in NTSL not accepting a null separator.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5798 316c924e-a436-60f5-8080-3fe189b3f50e
2013-03-02 00:30:49 +00:00
giacomand@gmail.com
763b07d8d4 - Cleaned up false walls a bit and fixed some issues with using a welding tool with it. Fixes Issue 1288.
- Greatly decreased the goat attack damage. Fixes Issue 1310.
 - Changed how the suffixes are assigned for mulebots. Fixes Issue 1204.
 - Added some checks for occupants in sleepers/cryo/cloner pod, stops an exploit of being able to have a friend teleport you to the sleeper when you're in danger.
 - Re-added advance proc call for debug flag.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5796 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-28 23:22:37 +00: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
giacomand@gmail.com
4729446ce9 - Replaced all turf code which used "src.loc" in the playsound arguements with "src". Before the sound would play to everyone who was in the area, as the loc of a turf is the area it is in. Fixes Issue 1315.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5791 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-26 22:28:01 +00:00
d_h2005@yahoo.com
dc6d26e067 -Fixes issue 1349 : Space bears not switching to dead sprites when dead. As an added bonus, also fixes space bears being unable to move in space. Durr.
-Moves the Add Note/Notes verbs from OOC tab to IC tab, since Notes holds your IC information such as traitor objectives.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5789 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-26 16:09:45 +00:00
giacomand@gmail.com
edd225527d - Added tunnel caves to the asteroid.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5788 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-26 12:35:57 +00:00
d_h2005@yahoo.com
7effacfcad Committing for Summoner: Fixes issue 1217 - xenos being unable to hiss.
Readds ghostblob verbs.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5787 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-26 03:23:48 +00:00
johnsonmt88@gmail.com
69b7e1e384 Updated config/rules.html to our new server rules. Fixes issue 1346.
Admin rejuvinate now clears the mob's reagent's list meaning that mobs who died due to toxins in their bloodstream wont just fall over dead after being revived again. Fixes issue 1338.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5785 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-26 01:09:48 +00:00
petethegoat@gmail.com
89f6892ffd Added exceptions to the cavity implant for the nuke disk and organs (because it would interfere with the getbrain/getappendix procs).
Added alien brains and surgery for getting them out of aliens. It differs from the human brain removal surgery.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5784 316c924e-a436-60f5-8080-3fe189b3f50e
2013-02-25 23:56:31 +00:00