Commit Graph

1170 Commits

Author SHA1 Message Date
Cael Aislinn de4a906c25 Merge pull request #329 from Carn/Issue304
Resolves Issue #304
2013-04-08 00:28:50 -07:00
carnie 6a98fc89d0 >datum/event and datum/event_control were renamed to datum/round_event and datum/round_event_control. This is because datum/event was already used by a different/more-general event queue system (used primarily on mechas)
Removed overriding of event values via feeding in an associative list into datum/round_event/New(). Instead you can do basic initializations (i.e. feed it constants) by doing new /datum/round_event{variablename=5;}(). This method is handled well by the compiler (it's the same method the maps use), so it will detect unrecognized variablenames etc.
More complex initializations for post setup() stuff can be done by accessing variables directly Event.variablename = whatever;
round_events now have a processing variable, which effectively pauses them.
2013-04-08 07:42:46 +01:00
Cael Aislinn 2f2bda3adf Merge pull request #302 from Nodrak/parrot_fixes
Parrot fixes
2013-04-06 07:29:35 -07:00
Nodrak c29a358d85 Moves the copy/pasted code into a function. 2013-04-06 09:45:03 -04:00
Nodrak 570d6d3a7a Parrot fixes
- Parrots will now reset to wander after being stuck for long enough.

- Attacking a parrot will no longer give the attacker a "you have nothing to drop" message, that was a typical 'usr' error, woops.

- Fixed some typos in the comments.. What? That's totally commit log material!
2013-04-05 21:08:48 -04:00
Tastyfish 2480e4f485 Fixed robots having a low charge getting their equipment state and UI out of sync. 2013-04-04 15:04:20 -04:00
Pete Goodfellow 33e9dca33a Added two if(stat == CONSCIOUS) checks and a comment to human_defense.dm. Stops dead/unconscious people giving 'x was knocked unconscious' style messages. 2013-04-04 00:20:25 +01:00
Cael Aislinn 5c53a7a36f Merge pull request #208 from Carn/Issue114
Closes Issue #114 - Placing paper/pda to a camera will now print a link ...
2013-04-03 03:03:53 -07:00
carnie 6c44ab7130 Closes Issue #114 - Placing paper/pda to a camera will now print a link to AI's chat, where they can view the message.
This is far from the best solution, but it was all I could think of.
2013-04-03 08:35:34 +01:00
Cael Aislinn bdfc088f91 Merge pull request #181 from Carn/Issue105
Partial solution to #105. Will fix a bunch of mislinks in admin toolpanels + PM system.
2013-04-02 19:05:47 -07:00
Cael Aislinn 861084061e Merge pull request #167 from Petethegoat/implantdiskfix
Cavity implant disk fix, steal objective finding fixes
2013-04-01 10:32:17 -07:00
Cael Aislinn 91c15c13dc Merge pull request #173 from Petethegoat/runtime_fixes
Runtime fixes
2013-04-01 09:56:25 -07:00
carnie 66e6a2dbf0 Mobs each now have a unique tag which are not after they are deleted (unlike byond's \ref[] macro)
Since tag replaces the output of the \ref[] macro, this means that menus which use hrefs with \ref[mob] will no longer be able to accidentally link to the wrong mob.
The tags are of the form "mob_475" etc

Admin_pms now use ckey instead of client-reference. This means that PMs will no longer accidentally get sent to the wrong people.
There is no risk of players using hrefs to send adminhelps to known admin ckeys to see if they are online (as I'd already changed the PM system to not tell non-admin users whom received their message).

key_name() now accepts text input (key or ckey) - it is slightly more efficient to feed it a client or mob however!
This functionality is provided to allow certain admintools to become more robust when we want to talk about e.g. a griefer whom has just DCed whom no-longer has a corpse (no client/mob...just a ckey reference).
key_name() now reports DCed players properly.
2013-03-31 11:26:22 +01:00
Pete Goodfellow f09166bd8f Added feedback when grabbing someone fails because they're buckled. 2013-03-29 17:11:23 +00:00
carnie 732d72e227 Merge branch 'master' of github.com:tgstation/-tg-station into pr/151
Conflicts:
	code/modules/mob/new_player/new_player.dm
2013-03-28 18:35:37 +00:00
Giacomand c9dc653e88 Merge pull request #157 from Aranclanos/Second
Fixes reactive armor issues with buckled users
2013-03-28 10:32:05 -07:00
Giacomand 720a2a3b12 Merge pull request #153 from Petethegoat/forcesayfixes
Fixes forcesay working on dead people, and on asay/dsay.
2013-03-28 10:31:16 -07:00
Pete Goodfellow d6267edab2 Fix for null.synch() grab runtime. 2013-03-28 17:15:24 +00:00
Giacomand 1673f79e0b Merge pull request #165 from aranclanos/Fifth
Slime extracts fingerprint fixes
2013-03-28 09:33:48 -07:00
Pete Goodfellow 078e119f33 Fixes Pun Pun dying as 'The Pun Pun'. 2013-03-28 13:06:53 +00:00
Pete Goodfellow 3496310ec3 Removes /obj/item/weapon/gift from the code, as it was completely unused.
Also removes the smallDelivery loop in /mob/proc/get_contents(). It's amazing that proc worked at all, it really does do what it's described as doing. I'm leaving it for now, as the game seems to have gotten on well enough so far, and it'll probably just increase processing for no gain if I fix it.
2013-03-28 13:02:46 +00:00
Aranclanos 3b4de0f276 Slimes will now save fingerprints, they had the flag FPRINT missing.
Injecting chemicals to a beaker, slime extract, etc. will now save your fingerprints on the target.
2013-03-28 08:30:58 -03:00
carnie 5ca166cae0 Refactored underwear to use datum/sprite_accessory/underwear similar to hair and facial_hair.
People may select any underwear (regardless of gender) at a dresser, but not in preferences.
random_underwear(gender) will return a random pair of underwear suitable for your gender.
Removed an unused variable in sprite_accessory

The new_player preferences screen now randomizes character slots for which there is no data (so no more bald, fat, white guys in diapers greeting new players)
datum/preferences character settings are randomised at New().
replaced /datum/preferences/proc/randomize_appearance_for(human/H) with /datum/preferences/proc/random_character(), it does the same stuff without the copying to a mob. Basically, now when you want to make a random character you just do var/datum/preferences/A = new(); A.copy_to(human_mob), randomisation of appearance and name will already be done. Easy.

Reworked the savefile updating/versioning code to make it easier to work with. I've used it to update underwear preferences to the new system as an example.

Signed-off-by: carnie <elly1989@rocketmail.com>
2013-03-28 11:11:40 +00:00
Aranclanos 37100ddd28 The reactive armor will now unbuckle the person if this was buckled, just like on the wizard spells. 2013-03-27 20:29:08 -03:00
Pete Goodfellow 2c9283dd05 Merge pull request #154 from aranclanos/Second
Surgery bugfix without other commits.
2013-03-27 12:52:36 -07:00
Pete Goodfellow 3a5166fbf7 Fixes forcesay working on dead people, and on asay/dsay. 2013-03-27 17:47:01 +00:00
Cheridan 10bd174a03 Underwear update! Adds two new undie styles, a modest tankini for ladies and red briefs for the guys.
Adjusts a couple hardcoded lines to make adding more undies in the future easier.
Adds dressers! Similar to mirrors, they let you change your underpants.
2013-03-27 00:08:45 -05:00
Pete Goodfellow a389835a30 Abstract items no longer show up on examine. 2013-03-24 23:43:58 +00:00
Aranclanos 327d3db770 Fixes items calling their afterattack() proc when they are used on surgeries, for example, inserting a syringe inside of a person and then starting to inject the contents of the syringe on said person.
afak, surgeries can't be handled on the afterattack() of the different surgery tools because of cavity implants, so this is a semi-decent fix that can be used for future features too. But I do not like touching this code. I appreciate any feedback about this.
2013-03-24 08:53:29 -03:00
Aranclanos eeb0e1dbe3 Same change here, but with monkeys. 2013-03-15 06:39:46 -03:00
Aranclanos dcfa1fcfab Fixed items not appearing on the HUD if they are given to a mob by another player with the strip panel.
This should also swap under the carpet (kinda ugh because the problem is still there and it might affect some other things) the problems with the roundstart problems with player's icons on high populated servers.

This should be the first step to reduce the amount of calls on the different icon update procs, but for the moment I'm focusing on more CPU expensive procs.
2013-03-15 06:08:48 -03: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 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 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
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 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
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 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
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