Commit Graph

176 Commits

Author SHA1 Message Date
Albert Iordache
b94b57e04c Partially fixed the double definition of BROKEN, renamed organ definitions 2012-07-13 23:42:05 +03:00
Erthilo
f5b221bb63 Fixes a few places where if statements wouldn't work due to syntax errors. 2012-06-29 02:31:46 +01:00
Erthilo
67c5e8e3a8 Medical System Updates...
* Dragging someone while injured (brute) will have a small chance of injuring them further that increases depending on how damaged they are. This coincides with the blood spatters that are already generated.
* Blood is now actually lost from the person being dragged.

* Added splints that can be applied to broken arms and legs, and will reduce effects of broken limbs. These can be removed the same way as handcuffs. They show up on the mob and on examine.
* Added an autoinjector that can only hold five units, but acts like a hypospray.
* Added an advanced medical kit that Medical Doctors spawn with that has Advanced Trauma Kits, Advanced Burn Kits, autoinjectors, and splints.
* Health Scanners now show unsplinted fractures ONLY in arms or legs.

* People in critical (less than -50 health) from external trauma (100+ damage from brute and/or burn) bleeding, and with unsplinted limbs, will send a message to anyone trying to drag them, to warn them it would be a bad idea trying to move them. They will suffer a lot more damage if dragged while lying down.
* The correct procedure is therefore, A) Bring a roller bed, or B) Splint all limbs, stop all bleeding with gauze, and then drag them.

* Fixed CPR being performed at weird health levels.
2012-06-25 01:18:55 +01:00
SkyMarshal
3efa1d4e6b More fixes. 2012-06-23 17:00:28 -07:00
SkyMarshal
62c3d1d11d De-retarded wound system. 2012-06-23 16:35:58 -07:00
Erthilo
a9bfaf4173 TG: - Added basic heavy-duty cables, they cannot be destroyed with wirecutters,
unfortunately they currently cannot be created either. Not present anywhere on
the map yet.
- Fixed a bug with masks, which did not follow the equipment rules of the
SLOT_MASK flag.
- Fixed a problem where monkeys could not equip a backpack.
Revision: r3774
Author: 	 baloh.matevz

TG: - Added the heavy cable sprites, sprited by Thunder11.
Revision: r3775
Author: 	 baloh.matevz
2012-06-23 16:21:44 +01:00
SkyMarshal
668f81c329 Some tweaks and fixes for UL and any while loops I find, as well as removing generally bad procs. 2012-06-22 12:50:45 -07:00
SkyMarshal
14de2f0ff5 Merge pull request #1314 from SkyMarshal/Lighting
Ultralight, Sped up how fast fires burn and use fuel, Removed deletion logging (Speeds up world shudown),  added icon for welder fuel.
2012-06-18 20:43:22 -07:00
SkyMarshal
aeb850fef0 Working UL 2012-06-18 15:02:34 -07:00
caelaislinn
d6d8007295 reduced spawn chance, added chance to touch on pull
Signed-off-by: caelaislinn <cael_aislinn@yahoo.com.au>
2012-06-19 07:56:47 +10:00
Erthilo
86feaac9c2 TG: Ban moved into IsBanned so that people whom are banned can actually see -why-
they are banned. Another perk of using IsBanned and not client/New() is that we
now disconnect potential clients before they are given a client object and start
downloading any resources...which is like a 30Mb saving per failed login (after
each server update).

Tidied up the Login and Logout procs for mobs. Moved the sandbox buildmode stuff
to mob/living/login.dm so you shouldn't have to log-out and back in to enable
build mode.

Removed the logged_in variable for mobs as it was the most pointless thing ever.

Made the multikeying checks a separate proc. People are checked the second they
get a new_player mob. Its notices are also less spammy.

Changed AllowUpload from the default. It now restricts uploads of over 1Mb to
prevent admins uploading massive .Oggs and lagging the server to hell whilst it
sends the ogg to 40+ players. Feel free to change the limit.

Moved some of the core client procs into one folder; they should really be
together and not in /modules/mob/mob.dm and various other places. I will be
giving the client stuff a belated spring-clean over the next few commits, just
got to iron out some of the kinks.
Revision: r3694
Author: 	 elly1...@rocketmail.com
2012-06-03 01:09:26 +01:00
Erthilo
11529c1c4a TG: Fixes a derp I made with the PA in a recent commit.
Rules verb moved to the interface to make it more visible (so new players may
actually -read- it occasionally).

Minor changes to investigate singulo based on feedback. Entries are now
timestamped and the "time \ref[src] (location)" bit is in a smaller font.
Collectors note how much fuel they are loaded with.
Revision: r3687
Author: 	 elly1...@rocketmail.com
2012-06-02 01:12:34 +01:00
SkyMarshal
beb63529f9 Made some better text procs for when a gender is ambiguous. Added a proc that will return the proper form of reference to the mob it is called on (mob.get_visible_gender()) which returns a list with the proper forms of reference in it. (In the form of a hashtable.) Also added the proc "get_gender_form("form")" Where it takes the given form and returns the proper one. E.g. on a non disguised man, it will take "it" and return "him". 2012-05-31 17:53:23 -07:00
SkyMarshal
b70673e0c8 Some comments, tweaks, and improvements to detective work, evidence bags, and packages. Removed a worthless proc, and moved a few proc definitions into better places. 2012-05-31 15:48:52 -07:00
cib
3a74270e29 Merge github.com:Baystation12/Baystation12
Conflicts:
	code/modules/mob/mob.dm
	code/modules/projectiles/projectile/change.dm
2012-05-29 13:43:20 +02:00
SkyMarshal
7a37d9bb05 Merge pull request #1167 from Erthilo/TGUpdates
TG Updates r3648 to r3657
2012-05-28 11:52:44 -07:00
cib
0799cddb4b Cleanup of all the update_clothing() calls.
Mostly I replaced them with rebuild_appearance() or update_body_appearance() where suitable.

I also reorganized the new update_clothing() code a bit.
2012-05-27 20:43:52 +02:00
cib
23c97901d8 update_clothing() needs only be called by drop_item() if something was actually dropped. 2012-05-27 16:43:39 +02:00
Erthilo
7e3a28bb82 Merge branch 'master' of github.com:Baystation12/Baystation12 into TGUpdates
Conflicts:
	baystation12.dme
2012-05-26 13:46:06 +01:00
Albert Iordache
084e2ae561 Added /mob/proc/getFiles() 2012-05-26 09:18:48 +03:00
Albert Iordache
fd542d14c4 Fixed the bug where people would not see the formatted changelog 2012-05-26 09:01:24 +03:00
Erthilo
bb747b2b7b TG: Adds admin memos. It allows admins to leave all the other admins little messages
which they can see when they log in. It is available to Game Admin rank and
upwards.

type "memo" to access the memo features:
>write: write a memo
>show: shows memos from all admins
>delete: delete your own. (Game Masters may delete other admins' memos)
Typing "memo write" etc works too.

Feature can be disabled by defining ENABLE_MEMOS as 0

MOTD moved to new_player/Login so peole don't see that big motd everytime they
DC
Revision: r3650
Author: 	 elly1...@rocketmail.com
2012-05-25 22:45:27 +01:00
Erthilo
276b83589e TG: Added an emergency shutdown proc to the holodeck control computer.
- Destroying, damaging or emping the computer will now cause the holodeck to
revert to its original state. Meaning this should help stop people taking
eswords out of the holodeck.

The detective's gun renaming verb moved from the BYOND default 'you did not set
a category' tab into the 'objects' tab

Mob.dm's stripping proc was a single very looooooooooooong line of code. It is
now multiple lines of code.
Revision: r3649
Author: 	 johnsonmt88
2012-05-25 22:32:26 +01:00
Albert Iordache
a100fd78bc Bugfix for #1073 2012-05-17 00:55:38 +03:00
Miniature
2a7336f61f Merge branch 'master' of github.com:Baystation12/Baystation12
Conflicts:
	config/config.txt
2012-05-12 00:52:42 +09:30
Miniature
77987f76f5 Made banned people who aren't banned under the same key they are trying to log in as show what key they were banned as to admins
turned on the thing to show where to go to appeal
2012-05-12 00:48:17 +09:30
Erthilo
8aae642d83 TG: Some fixes for topic calls and inputs.
There's like 1001 things to fix so some of this is somewhat crude for now.

new helper proc located in procs/helpers.dm
reject_bad_text(var/text)
just feed any text in and it will either return the original text or null (if it
contains odd characters such as \ / < > or characters reserved by BYOND. It also
rejects if there are no non-whitespace characters)
Revision: r3571
Author: 	 elly1...@rocketmail.com
2012-05-10 03:02:56 +01:00
Erthilo
ffeb9a958a TG: Fixes some mix-up with what hand was lost
Regenerate admin verb now restores limbs/lost blood
Fixes power_loss proc to actually respect the electrical channel something is
on.
Revision: r3539
Author: 	 VivianFoxfoot
2012-05-09 23:29:06 +01:00
Erthilo
ea78585d1d Comments out weird Geas stuff. 2012-05-09 23:10:40 +01:00
Erthilo
d21cbab61c TG: Fixed dust() and gib() leaving invisible overlays everywhere
Fixed deaths at the end of nuke rounds, optimised the code a little

gib() is now hgib() (ie it's specific to humans). gibs.dm() now only spawns
generic gibs that could be from any mob.
Likewise for dust.
Awaiting generic dust() and gib() animations.

Fixed (hopefully, depends if firewalls block this method) getruntimelog.
GameMasters no longer have the getruntimelog verb. Instead they have
.giverutimelog . This allows them to grant a specific client access to the
server's runtime logs. (they can grant themself access this way too). NOTE:
runtime logs can be used to meta, only grant access to coders or people you
trust. It may also be wise to ensure they do not play in the current round.

Introducing .getserverlog . It allows any admin above moderator to access ANY
archived server/attack logs. Should mkae processing forum ban requests a lot
easier since all admins with ban capabilities now have access.

getruntimelog renamed to .getruntimelog . File-request spam prevention increased
to 60seconds to discourage access serverlogs too much! They can reach sizes of
4Mb sometimes so please be responsible with them admins.

runtime logs should now be saved to /data/logs/runtime/ (you may have to create
this folder yourself)

ummm... fixed gibs appearing below shuttle turfs. Trimmed some uneeded fluff
text from the logs.
Revision: r3509
Author: 	 elly1...@rocketmail.com
2012-05-06 18:50:52 +01:00
Erthilo
7685e6bef9 TG: Adds tickcomp, an attempt to make mob movement speeds level across all
tickrates.  Works pretty well.
Adds a (disabled) framework for making people drop where they're stunned without
waiting for the next tick
Shuffles sleeping and resting, making them cause effects of their own rather
than just relying on 2 ticks of paralysis or whatever.
You now stand up before being able to move again (called in canmove)
Reduces slip chance from 50 to 0 when knocked out (more in line with the
comments in the code, and it just makes more sense)
Revision: r3503
Author: 	 VivianFoxfoot
2012-05-06 17:56:28 +01:00
Erthilo
bec822a049 TG: Rewrote the cinematic system to be centralised and controlled by the gameticker,
rather than handled per mob with like, 3 loops and a seperate process for each
mob.dmPlease report any bugs/derps to me asap. I've tested it as much as I can
locally, but because it relates to events that require a large number of players
it's very hard to test.

TODO: I was intending to use dust to kill players off on a nuclear-loss. However
dust() is very very broken. So I've hardcoded everything to die until I can fix
dust().

Added an adminverb for 'Game Master's. It was a debug verb so I could test
cinematics but I've left it in as it might be handy for events, especially if we
get more cinematics. To access it type "cinematic" in full into the input bar as
a Game Master, then follow the prompts. At the moment, it only handles nuclear
stuff (that's all there is anyway). You can choose where the nuke detonated 0=
on station; 1= near station but in space; 2= off the z-level. You can also force
a cinematic from another game-mode to play with the prompt after that one.

Note: All mobs are buckled to a bed located inside the gameticker (odd I know)
whilst a cinematic is playing. The bed is deleted afterwards releasing all
players. If off_station=0 then all mobs will be killed too. This is to stop
people running around and doing stuff during the cinematic. I really didn't want
to add more variables/checks to mobs.
Revision: r3481
Author: 	 elly1...@rocketmail.com
2012-05-05 22:28:05 +01:00
Erthilo
1a5d772ae5 TG: Fixes some runtimes, involving do_mob, observe, send_status on mulebots,
check_gas_mixture, the explosion cinematic, sleeper get_reagents_amount, and a
possible (albeit unlikely) fix for throw_at
Revision: r3478
Author: 	 quartz235
2012-05-05 22:13:20 +01:00
Ren Erthilo
39f6da4c59 TG: Rewrote blackholes (gravitational anomalies) and wormholes to try and optimise
them a little. If you have any concerns about how I've done so just give me a
shout and I'll either rework them or revert my changes back. Wormholes
especially seem a bit faster on my laptop. Smoke has temporarily been removed
from the blackhole event until I get time to investigate why the hell
effect_systems are using so much memory ( spark effects were using 40% of my
processor a second ago D: ). To compensate this I made them a new sprite.

Commented out the authentication system. It was the remnants of the old goon
authentication stuff (or maybe even older) and wasn't actually used in our code
at all (at least not in any useful way, it was merely called and short-circuited
to 1, so all those if(authenticated) were totally pointless. This has removed 3
unused variables from every client, a bunch of unused variables from the config
and two empty text files!

Committed (as a config option) a feature requested by Apoc station. It causes a
'reply to' window to popup when an admin PMs a non-admin player. It's meant to
grab their attention so they can't say "I didn't see your PM". It defaults to
off. To turn it on just uncomment the #POPUP_ADMIN_PM line in config/config.txt

Fixed a derp in isday where it was fetching the month instead of the day.

Removed medal references from Gib()

Removed the medal_hub global variables because they aren't used in any way shape
or form.
Revision: r3444
Author: 	 elly1...@rocketmail.com
Date: 	Apr 12, 2012
2012-05-03 02:22:25 +01:00
Ren Erthilo
9c40ed3e9f TG: Fixing dem runtimes:
Temp-fix for mob/say.dm It's being sent null from Tcomms, so I'll leave it to
somebody with experience with that.

Fix for items bein  in your inventory and on the floor

Fix to stop people pulling themselves and causing runtimes (lol)

Fixes a bunch of stuff in the flash code. EMPs will now cause flashes to flash
their holder. They don't runtime when flashing cadavers. They don't runtime when
being EMPed. They will (hopefully) rev those select few buggy people who weren't
getting reved previously. (I can't fix that totally without playing with a bunch
of mind stuff)

Fix for throwing nothing. :P

Fix for removing tanks that don't exist from transfer valves.
Revision: r3441
Author: 	 elly1...@rocketmail.com
2012-05-02 23:58:53 +01:00
Ren Erthilo
a4e04d2915 TG: Runtime fixes for:
runtime error: Cannot modify null.layer. proc name: done
(/obj/effect/equip_e/human/done) usr: Ramona Fawkes (/mob/living/carbon/human)
src: the human (/obj/effect/equip_e/human)
call stack: the human (/obj/effect/equip_e/human): done() the human
(/obj/effect/equip_e/human): process()

runtime error: Cannot execute null.use(). proc name: attackby
(/obj/structure/barricade/wooden/attackby) usr: Jeffery Long
(/mob/living/carbon/human) src: the wooden barricade
(/obj/structure/barricade/wooden) call stack: the wooden barricade
(/obj/structure/barricade/wooden): attackby(null, Jeffery Long
(/mob/living/carbon/human)) the wooden barricade
(/obj/structure/barricade/wooden): DblClick(the floor (159,129,1)
(/turf/simulated/floor), "mapwindow.map", "icon-x=15;icon-y=12;left=1;scr...")

Rewrote wielded weapons to be their own weapon subclass. There was no point
having a var/wielded var/twohanded var/force_unwielded var/force_wielded for
every damn item when there is only 1 wield-able weapon anyway. All the wield-
able stuff is now in twohanded.dm

Changed the adminhelpsound to some creative commons sound I pinched. Until
somebody can get a better one. I'm sick of MAAAAAAAAOOOOOOW.

All PMs trigger the adminhelp sound. That means when you OM a player they get
the sound, if a admin is PMed they only hear it if their adminhelp sounds are
enabled. This should allow people to get eachother's attention when t he chat is
busy.

Fixed some bad code with poddoors (which is used for the shutters in QM)
Revision: r3435
Author: 	 elly1...@rocketmail.com
2012-05-02 23:09:19 +01:00
Ren Erthilo
59762d4207 TG: An attempt to make the master controller more robust. This shouldn't cause
terrible additional lag, given that the master controller doesn't actually fire
that often, and can also give us a clue as to what part of the controller has
died in case of failure
Modifies do_after to something that fires a lot less, and is hopefully more
robust against infinite loops. It is now theoretically possible to run around
and then come back to the same place and have it complete, but that's only
really valid for extremely long times (like handcuff removal) and if you get
lucky and dodge one of the timed checks.
Revision: r3421
Author: 	 VivianFoxfoot
2012-05-02 21:39:41 +01:00
Ren Erthilo
e1c69ed8a1 Commented out metadata and some other non-sensical stuff. 2012-05-02 21:22:19 +01:00
Ren Erthilo
ba68248ab6 TG: Re-adds metadata support.
Adds ghost sight as its own verb to see all emotes in the world.
Revision: r3419
Author: 	 VivianFoxfoot
2012-05-02 00:35:39 +01:00
Ren Erthilo
61cf24f087 Fixes custom item name. 2012-05-01 02:59:20 +01:00
Ren Erthilo
e429c57816 Ported respawn timer. Allows respawn after 30 minutes for all modes except meteor and epidemic. Config change to allow respawn on all modes. 2012-05-01 02:06:08 +01:00
Ren Erthilo
c467b4f84e TG: Adds Halloss as a damage type weapons can do. Halloss can be healed by
sleeping.  Halloss now effects the interface more fully.
Adds a holodeck to fitness!
Tensioner now respects antagonist preferences (Mmph.  More antagonist for me.)
More flailing attempts to fix the tensioner assigning braindead people.  (How?)
Revision: r3342
Author: 	 VivianFoxfoot
2012-04-29 23:16:02 +01:00
Ren Erthilo
1fa9b6a848 TG: Committing fixes to code for examining mobs. Burn damage wasn't showing properly
on some mobs. Fixed grammar, icons and stuff.
Added some  stylesheet classes. Approved by Urist. If you're adding game text,
please use the class that best describes the text. This way all the text
formatting can be edited from the stylesheet rather than traipsing through the
code like I am.
Cyborg names reflect their module choice.
Cyborgs can no longer drop their module-items on conveyor belts.
Please remember to add the line: gender = PLURAL to any new item defines if the
item is plural, ie metal rods and such.
Much more to come. ;-; Just need to check them and merge... why did I start
climbing this mountain?
 Revision: r3232
Author: 	 elly1...@rocketmail.com
Date: 	Mar 2, 2012
2012-04-25 02:06:30 +01:00
Ren Erthilo
fc6e9e6114 TG: Buckling to chairs no longer causes you to drop anything.
Added Nodrak's Jump to Mob verb.
Added Sieve's lantern fix. Commented out the silicate recipe.
Added Skaer's sec cartridge box to the armoury.

Moved the check_if_buckled() proc to mob/living, rather than having it repeated.
Revision: r3168
Author: 	 petethegoat
2012-04-24 18:58:33 +01:00
Ren Erthilo
2d7c9354d7 TG: - All PM links are now tied to clients and not mobs. What this means is that all
PM links (the links admins get in admin messages which lead to a PM) should now
point directly to the client, if one still exists or report them as
disconnected. This means that there should no longer be problems with clients
which swap mobs.
- Made the player-side admin pm message more visible and obnoxious. Some players
might find it annoying but at least it will not leave much room to complain
about "missing PM-s"
Screenshot:
http://www.kamletos.si/admin%20message%20format.PNG
- Fixed that awkward X in asay messages, which moved whatever mob you were in to
the location of the person who said the message. Replaced it with JMP, which
does the same as the JMP in adminhelps - makes a ghost and moves that ghost to
the location:
Screenshot:
http://www.kamletos.si/admin%20say.PNG
- Ghosts which find themselves locked in any form of container (closets most
commonly) will now (FINALLY) exit the container (and it is any container!) after
they click one of the arrow keys.
 Revision: r3121
Author: 	 baloh.matevz
2012-04-22 23:05:25 +01:00
Ren Erthilo
17d249c2c7 TG: - Replaced a few more conveyor switches with the one-way conveyor switch.
- Added feedback gathering for radio, rc and pda message use. (Only the number
of messages sent is recorded)
- Generalized the 'round_end' time feedback logging into a proc that now also
handles the radio/pda/rc processing at round end. (
blackbox.round_end_data_gathering(), where blackbox is the blackbox recorder
object. )
 Revision: r3111
Author: 	 baloh.matevz
2012-04-22 21:07:45 +01:00
Ren Erthilo
8080b4b688 Adds a neat warden hat. Jobbans now display an appeal link. 2012-04-17 02:53:00 +01:00
Ren Erthilo
e2bd08a336 TG: Fixed a few runtimes.
Moved the all player mobs death check into the parent death proc.
Revision: r2940
Author: 	 mport2004
2012-04-15 17:00:51 +01:00
SkyMarshal
f0490787ef Merge pull request #819 from Erthilo/TGUpdates
TG Updates up to r2928
2012-04-11 11:36:41 -07:00
SkyMarshal
2b619a2dd5 Made bans automatically show the address for the appeal forum, if set in config. 2012-04-10 23:52:28 -07:00