Commit Graph

64 Commits

Author SHA1 Message Date
SkyratBot
417e938fb2 [MIRROR] emote_type refactor to bitflags [MDB IGNORE] (#15430)
* emote_type refactor to bitflags

* Update emotes.dm

Co-authored-by: Mooshimi <85910816+Mooshimi@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-08-08 01:12:28 +01:00
SkyratBot
9ff90d9e3b [MIRROR] Fix audible emotes playing sounds while mob is gagged, mute, tongueless, or under a vow of silence [MDB IGNORE] (#15450)
* Fix audible emotes playing sounds while mob is gagged, mute, tongueless, or under a vow of silence

* Update emote.dm

Co-authored-by: Tim <timothymtorres@gmail.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-08-08 01:11:49 +01:00
SkyratBot
cd814c127f [MIRROR] Adds an option to generate typecaches as zebras. [MDB IGNORE] (#11330)
* Adds an option to generate typecaches as zebras.

* Update energy_ball.dm

Co-authored-by: TemporalOroboros <TemporalOroboros@gmail.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-02-08 01:54:04 +00:00
GoldenAlpharex
01db35d656 The Roleplay Update - Slightly more versatile emotes (#9395)
* Better emotes and auto-punctuation.

* Making ' and " work, adding ' to the characters that cause the space to get removed

* Making one part use RegEx

* Makes this even better.

* Removing auto-punctuation

* Improving subtler code, again.

* Time to test this out instead

* Properly fixing it, while also making it more efficient, yeet!
2021-11-25 04:14:30 +00:00
nikothedude
e31f626fe8 Fixes borg emotes, wooooooooo! (#9448)
* nympho

* hey. why are you like this?

* aaa

* document + delete

* hate ticks
2021-11-16 16:35:48 -05:00
SkyratBot
f24d8a532d [MIRROR] Small implant code cleanup. [MDB IGNORE] (#8971)
* Small implant code cleanup. (#62226)

Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>

* Small implant code cleanup.

* Update mortis.dm

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-10-23 00:46:43 +01:00
SkyratBot
7341c53692 [MIRROR] Lets Player-Controlled Monkeys Make Noise When Using *Screech [MDB IGNORE] (#8966)
* Lets Player-Controlled Monkeys Make Noise When Using *Screech (#62206)

This PR lets player-controlled monkeys make screeching noises using *screech.

Under the hood, this PR also adds a new proc to emotes called, should_play_sound. What this does by default is the same check run_emote used to do with only_forced_audio, but now that it's in a proc you can override it if you want to. Though, let's be real here, this is only going to get used for this PR because the only reason you'd want to bypass that check is if you're doing something for monkeys. The amount of extremely specific circumstances which even warranted something like this could only stem from some stupid monkey/alien specific crap anyway, BUT JUST IN CASE YOU NEED IT, here it is.

Considering all the screeching AI monkeys do, it's a big shame that currently player monkeys can't do similar.

Considering that monkeys are valid salad and that AI monkeys already screech a lot anyway, I don't think letting players get in on the fun is a bad idea. If need be, we can just tune up the sound cooldown on *screech but I don't think it's really that abusable to begin with.

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@ users.noreply.github.com>

* Lets Player-Controlled Monkeys Make Noise When Using *Screech

Co-authored-by: IndieanaJones <47086570+IndieanaJones@users.noreply.github.com>
Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@ users.noreply.github.com>
2021-10-23 00:24:20 +01:00
Seris02
ff98069a5f [semi-modular] fixes runtimes with a certain collar and with emotes (#8757)
* hblep

* hblep2
2021-10-13 20:24:40 +01:00
Seris02
3c5207b882 [SEMI-MODULAR] (mostly) fixes AI improvement PR code (#7621)
* GANDALF WHY

* fixed

* skip typecheck

* yes
2021-08-21 22:27:42 +01:00
SkyratBot
7a1d3700bb [MIRROR] Drugs of the 26th century. Three new hella rad drugs, one less lame drug and more! (#7481)
* Drugs of the 26th century. Three new hella rad drugs, one less lame drug and more!

* Update traits.dm

* Update maint_loot_trash.dm

Co-authored-by: Krysonism <49783092+Krysonism@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-08-15 23:52:58 +01:00
SkyratBot
7de144512a [MIRROR] stops dchat clog from clientless mobs (#7527)
* stops dchat clog from clientless mobs (#60772)

bug fix, because obviously the user.client check in the emote proc was supposed to work for this, but they forgot to put it in manual_emote as well.
also moved the user.client check in the emote proc a few lines above, for sliiiightly better performance, ghosts will still get the message from visible_message, but only if nearby, so it has the same effect as where it was before.

* stops dchat clog from clientless mobs

Co-authored-by: Seris02 <49109742+Seris02@users.noreply.github.com>
2021-08-12 22:53:45 +01:00
linnpap
4248405b7e [NON-MODULAR] [BOUNTY] AI Quality Of Life Improvements (#7063)
* ais can see *mes now

* more stuff

* muh snake_case
2021-07-28 22:27:20 +01:00
SkyratBot
9fca372b73 [MIRROR] Fixes a bug with pronoun swapping inside of names (#7025)
* Fixes a bug with pronoun swapping inside of names (#60266)

fixes #60253

the above issue showcased a really weird issue with "manual_emote()" which took an emote and then changed the pronoun mid-use, which on its own is ok, but some mobs include names with their emote, hence changing "pronouns" in the middle of peoples names

this method of using manual_emote() is dumb because theres already a proc for changing pronouns in a string, as well as dedicated procs for inserting the correct pronoun for the given mob DIRECTLY in the emote string itself

so what I did was remove the part of the code in manual_emote() that swapped pronouns, it wasnt needed, and instead went to every single emote string that used it and used the [p_they()] procs to get the correct pronouns.

while i was at it, i also touched up descriptions and other miscallaneous emotes and mob communication to get rid of "It's". mobs are by default plural, they arent objects, instead replaced with "they're" etc... a mobs and mob subtypes gender WAS respected

also gave the male gender to two very specific clown mobs which are clearly coded male. gave the void_corgi a neuter gender, since its description makes it a reference to the "void stares back" phrase, which makes it genderless as the void is not a noun.

EDIT: oh, and i did fix an issue with the replace_pronouns() proc, which uses "msg" as its var, but one if statement was "message".

* Fixes a bug with pronoun swapping inside of names

Co-authored-by: 小月猫 <alina.r.starkova@gmail.com>
2021-07-20 14:42:02 +02:00
SkyratBot
7d1d0e1fad [MIRROR] Refactors most spans into span procs (#6315)
* Refactors most spans into span procs

* AA

* a

* AAAAAAAAAAAAAAAAAAAAAA

* Update species.dm

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-06-16 00:24:49 +01:00
SkyratBot
c5b0804d9a [MIRROR] Makes it so *me and *custom no longer rely on a datum variable to store messages (#6220)
* Makes it so *me and *custom no longer rely on a datum variable to store messages

* Mirror!

Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
Co-authored-by: Funce <funce.973@gmail.com>
2021-06-11 10:49:15 +12:00
SkyratBot
bc06f8161a [MIRROR] Added audio cooldown for emotes TAKE 2 (#6158)
* Added audio cooldown for emotes TAKE 2

* Mirror!

Co-authored-by: ModDownloading <dsodium92@gmail.com>
Co-authored-by: Funce <funce.973@gmail.com>
2021-06-08 14:03:50 +12:00
SkyratBot
b674884f5e [MIRROR] Makes the Surrender Emote grammatically consistent (and improves replace_pronoun()) (#6139)
* makes the surrender emote grammatically consistent (#59495)

* Makes the Surrender Emote grammatically consistent (and improves replace_pronoun())

Co-authored-by: Y0SH1M4S73R <legoboyo@earthlink.net>
2021-06-05 16:54:50 +12:00
Seris02
39ca7ad1fa Sorts the majority of the rest of the Skyrat specific unsorted chat (#5378)
* yay

* forgot to commit this

* Update tgui/packages/tgui-panel/chat/constants.js

Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-05-07 02:32:09 +01:00
SkyratBot
c84d208fa6 [MIRROR] Sorts the majority of the rest of the unsorted chat (#5459)
* Sorts the majority of the rest of the unsorted chat

* 0.

* Update database_changelog.txt

Co-authored-by: Seris02 <49109742+Seris02@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-05-06 23:48:08 +01:00
SkyratBot
b2f8706776 [MIRROR] Adds cooldown feedback to emotes (#3678)
* Adds cooldown feedback to emotes

* Update emotes.dm

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
Co-authored-by: KathrinBailey <53862927+KathrinBailey@users.noreply.github.com>
2021-02-27 15:02:02 +00:00
SkyratBot
b332b46b65 [MIRROR] Remove hideous inline tab indentation, and bans it in contributing guidelines (#3394)
* Remove hideous inline tab indentation, and bans it in contributing guidelines

* a

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
2021-02-15 15:32:02 +00:00
Gandalf
19bfbd2bed Actually fix synth emotes (#3145)
* sa

* Update emotes.dm

* Update emotes.dm

* Update emotes.dm

* s

* Update silicon_emotes.dm

* Update synth_emotes.dm

* Update synth_emotes.dm

* Update synth_emotes.dm
2021-02-07 14:15:51 +00:00
Alex 'Avunia' Takiya
a7a0e7f403 Allow blind and/or deaf characters to see/hear emotes (#2495)
* Add deaf and blind message to emotes

* Add prefix to blind/deaf message
2021-01-05 04:59:37 +01:00
Gandalf
76466b2827 Emote spam + Fixes (#2320)
* Update emotes.dm

* Update emotes.dm

* Update emotes.dm

* Fix spacing, redo some checks, fix bugs

* Add PR to readme, add new file overwrite, fix styling

* Add cooldown to long silicon emotes

* Fixes a metric fuckton, adds global cooldown, etc.

* cry

* unit test makes me cry

* Readd global cooldown on /datum/emote

* Overwrite /emote/beep modularily, instead of having two

* Bugfixes, mixed gender noises, refactors

* Add requested cooldown and volume change, move code about, blahblahblah

* Remove unnecessary cooldown vars from silicon emotes

* Update and prettify readme further.

* Switch default emote gender to female, no sound for non-carbons on certain emotes

* Add volume var and vary to scream run_emote

Co-authored-by: Avunia Takiya <git@takiya.cloud>
2020-12-30 20:51:51 +01:00
SkyratBot
9be3a7b8f6 [MIRROR] Moblity refactor: hands blocked and restrained edition. (#1051)
* Moblity refactor: hands blocked and restrained edition.

* Update carbon_defense.dm

* Update emotes.dm

Co-authored-by: Rohesie <rohesie@gmail.com>
Co-authored-by: Azarak <azarak10@gmail.com>
2020-09-29 13:57:02 +02:00
SkyratBot
ca85f2fb4e [MIRROR] Makes GHOST_SIGHT not show messages from mobs that dont have a client to reduce chatspam (#849)
* Makes GHOST_SIGHT not show messages from mobs that dont have a client to reduce chatspam (#53707)

* Makes GHOST_SIGHT not show messages from mobs that dont have a client to reduce chatspam

Co-authored-by: Azarak <azarak10@gmail.com>
2020-09-17 15:05:22 +02:00
SkyratBot
12cd35c594 Crit status refactor (#53117) (#500)
Co-authored-by: Rohesie <rohesie@gmail.com>
2020-08-25 00:11:20 +02:00
SkyratBot
1f7572847a [MIRROR] Petting more animals now causes floating hearts and a moodlet, borgs can now pet animals. (#243)
* Petting more animals now causes floating hearts and a moodlet, borgs can now pet animals. (#52594)

* Petting.

* Oops.

* Update code/modules/mob/living/simple_animal/friendly/penguin.dm

Co-authored-by: Fikou <piotrbryla@onet.pl>

* Working on underlying redo.

* More.

* Fixing to work with new emote system.

* Move proc and defines to living instead of mob.

* ...Moves it to simple_animal instead.

* Revert cat crate fix (other PR handling), fixes emote thing.

* Appveyor did not care for that.

* Comment typo.

* Very descriptive var name.

* Borgs can now commit pet.

* sweeps up missing manual_emotes, adds a hop to link for ghosts, and moves the name preface to ghost only

* More descriptive vars and proc name.

* Better descriptive vars.

* Making the borg code slightly nicer.

Co-authored-by: Fikou <piotrbryla@onet.pl>
Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>

* Petting more animals now causes floating hearts and a moodlet, borgs can now pet animals.

Co-authored-by: uomo <51800976+uomo91@users.noreply.github.com>
Co-authored-by: Fikou <piotrbryla@onet.pl>
Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
2020-08-08 02:08:14 +01:00
SkyratBot
5dfd1cc353 [MIRROR] Adds a coder override emote so manual custom emotes work properly (#186)
* Adds a coder override emote so manual custom emotes work properly (#52602)

* Adds a coder override emote to skip dumb shit with me

* I know this sucks, I can't comprehend how to do this cleanly without a full rewrite

* cleaner now

* Adds a coder override emote so manual custom emotes work properly

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
2020-08-03 16:38:29 +02:00
L
9ee2907a68 runechat emotes 2020-07-19 22:11:44 -03:00
Emmett Gaines
53952e7622 Keybindable emotes followup (#47868)
Keybindable emotes followup
2019-11-19 16:54:30 -08:00
kingofkosmos
df1aa091b2 * adds warning-spans to various messages 2019-06-24 21:05:22 +03:00
AnturK
4be070827f Fixes simple animal emotes / Refactors emote list (#44458)
* Fixes simple animal emotes.

* Makes emotes support multiple datums per key properly.

* Apply suggestions from code review

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>
2019-06-13 09:33:48 -04:00
vuonojenmustaturska
fb45b7a017 Turns trait accessors into defines, fixes some bugs (#43820)
It's free performance.
2019-05-06 19:44:05 -04:00
Qustinnus
31c19654e0 reworks emote sound code & adds screaming (Which only works if the code forces it. *scream wont make a sound) (#42216)
* done

* adds moth scream

* Update code/datums/emotes.dm

Co-Authored-By: Qustinnus <Floydje123@hotmail.com>

* Update code/datums/emotes.dm

Co-Authored-By: Qustinnus <Floydje123@hotmail.com>

* Update code/datums/emotes.dm

Co-Authored-By: Qustinnus <Floydje123@hotmail.com>

* Update code/datums/emotes.dm

Co-Authored-By: Qustinnus <Floydje123@hotmail.com>

* 1

* fixed

* fixed

* wew
2019-01-11 13:43:03 -05:00
kevinz000
3e7184c975 Combat/Stun (slip) overhaul staging, mobility flags, adds crawling (#39967)
Aiming to implement the framework oranges has detailed in https://tgstation13.org/phpBB/viewtopic.php?f=10&t=19102
Moves canmove to a bitflag in a new variable called mobility_flags, that will allow finer grain control of what someone can do codewise, for example, letting them move but not stand up, or stand up but not move.

Adds Immobilize()d status effect that freezes movement but does not prevent anything else.
Adds Paralyze()d which is oldstun "You can't do anything at all and knock down).
Stun() will now prevent any item/UI usage and movement (which is similar to before).
Knockdown() will now only knockdown without preventing item usage/movement.
People knocked down will be able to crawl at softcrit-speeds
Refactors some /mob variables and procs to /mob/living.
update_canmove() refactored to update_mobility() and will handle mobility_flags instead of the removed canmove

cl
rscadd: Crawling is now possible if you are down but not stunned. Obviously, you will be slower.
/cl
Refactors are done. I'd rather get this merged faster than try to fine tune stuff like slips. The most obvious gameplay effect this pr has will be crawling, and I believe I made tiny tweaks but I can't find it Anything I missed or weird behavior should be reported.
2018-10-11 11:22:21 +13:00
vuonojenmustaturska
daba3009ba Eliminate some duplicate typecaches 2018-08-24 00:33:21 +03:00
Jordan Brown
4325bbff8d Merge pull request #39672 from zaracka/emote-and-suicide-restraint-checks
improves emote and suicide restraint checks
2018-08-18 12:03:48 -04:00
Patrick Chieppe
2c8248575a Logging system refactor and improvement (#39521)
* Refactor several log lines to use datum_info_line and atom_loc_line

* Add default return strings from datum_info_line and atom_loc_line

* Add parentheses around atom_loc_line data

* Change more logs to use atom_loc_line

* Add check in atom_loc_line for turfs to avoid calling get_turf on them

* Re-add removed 'at'

* Replace datum_info_line with key_name and atom_loc_line with loc_name

* Refactor logging functions

* Avoid double-logging self-interactions

* Fallback to simple stringification if all else fails in key_name()

* Rewrite muscle spasm logging to use log_message

* Standardize logging of martial arts

* Tweak individual logging panel look

* Fix individual logging panel source

* When I typed || I really meant &&

* Fix Telecomms logging always showing client logs in the panel

* Reverts addition of buggy ownership log to panel

* Remove colon

* Fix missing log_directed_talk tag

* Add warning for missing type in log_direted_talk

* Change warnings to stack_traces

* Add square brackets around fallthrough key_name() case to help parsing

* Allow atom arguments/src in log_*() functions

* Change log_combat call with null argument to log_message

* Change mecha types' log_message() arguments to match atom and mob version

* Add key_name() case for atoms

* Fix resist_grab() unsetting pulledby before log_combat gets a chance to use it

* Fix log_globally logic

* Add logging for hitting objects with items

* Move log_combat() to atoms.dm

* Use utility functions for object stringification in log_combat()

* Use utility functions for object stringification in log_combat()

* Add missing logs for interacting with display cases

* Rewrite log_combat() comment

* Add missing space in log_combat()

* Add logging for hitting grilles barehanded

* Add missing ..()
2018-08-12 21:41:09 +02:00
zaracka
a8d27c85eb improves emote restraint checks
makes stat check to_chat more accurate
restraint check no longer checks if the mob is buckled
restraint check checks if the mob is stunned
2018-08-11 22:53:30 -04:00
XDTM
b921a661ea Unintentional emotes no longer complain while restrained or unconscious 2018-07-09 11:21:22 +02:00
coiax
39b0bac044 Mime's Bane recipe (#35570)
* Makes Mimes's Bane use the new EMOTEMUTE trait

It randomly occured to me that I should do this.

Mime's Bane is currently a reagent currently only used in cloning pods
to stop growing clones from gasping from crit/lack of air (since they're
in a pure nitrogen environment).

* 2 Mime's Bane = 1 Mute Toxin + 1 Nothing

* Mutetoxin + nothing + radium
2018-02-19 16:36:46 +02:00
XDTM
5a08a3aad0 Extends the disability refactor to include more traits, removing some snowflake code (#34664)
This way you can add/remove traits without fear of other sources overriding them. Now you can add TRAIT_STUNIMMUNE to somebody without what if hulk

Notable changes:

    Fakedeath now updates instantly, instead of waiting for the next life tick.
    Fakedeath now sets time of death when acquired.
    Removed extremely snowflake code in reagents that checked if you had morphine to remove slow immunity and so on.
    Hulk no longer overrides status_flag changes, in case there are any.
2018-01-25 09:12:44 +13:00
coiax
887cc89ac5 No flipping while unconscious (#33736) 2017-12-25 17:11:08 -06:00
Jordan Brown
7c1276f20f Fixes emotes not checking the right turf (or any turf for that matter) (#31735)
* Fixes emotes not checking the right turf (or any turf for that matter)
2017-10-15 20:40:56 -04:00
Robustin
9837897b2c Emotes now shatter 80% less immersions (#31240)
* Emote Checks by Default

* Removes emote argument

* More emote fixes

* Overhauled emote check

* Closed Spans
2017-10-05 16:10:47 -04:00
Jordan Brown
af4d9a85c9 Repaths /obj/item/weapon to /obj/item (#29929) 2017-08-16 10:38:51 -03:00
Shadowlight213
68102aaa0c Refactors speech/communication logging and adds coordinates to speech logs (#28997)
* Adds locations to speech and related communications
Refactors how logging is handled for these.

* changes

* ahhhhh

* preemptive merge conflict undoing maybe?

* Let's not delay this further
2017-07-06 16:06:43 -04:00
nicbn
77a2d3f5cd Replaces "istype"s with is_helpers macros (#28676) 2017-06-22 15:03:19 -03:00
Leo
cb4202d220 Custom emotes no longer replace the pronouns (#27726)
Fixes #27613

Surprised it took this long to have this issue, guess no one uses the custom that much.
2017-05-28 13:55:18 +12:00