Commit Graph

110 Commits

Author SHA1 Message Date
ShiftyRail
d79c1fe070 Byond 516 v2.0 (#37553)
* The TGS thing

* Revert the 516 revert

* Further segment the world/New() proc

* Fixes an issue here
2025-05-12 00:50:25 -05:00
ShiftyRail
b71b7b6d06 Back to the drawing board (#37538)
* Revert "May fix the login failure issue on 516 (#37537)"

This reverts commit 6071b0a21e.

* Revert "516 compatibility PR 2: the revenge of Node.js (#37501)"

This reverts commit 875eca8b71.
2025-05-06 04:52:45 -05:00
ShiftyRail
875eca8b71 516 compatibility PR 2: the revenge of Node.js (#37501)
* Part 1: fix tgui

* Fix overdark layering

* Vector code rework

* misc. tgui things

* final DM side fixes

* TGUI try to fix #1

* Nuclear option. Bring all TGUI files. Will begin UNTGification in later commits.

* Untgify: callback

* untgify : config flags & config datums

* Fixes GLOBAL_VAR_INIT

* Purge HASTRAIT

* .dme cleanup

* file by file: status_alert.dm

* file by file : preference datums + remove unused content

* file by file : tgui_input/text.dm

* file by file : fixes asset_cache_client.dm

* file by file : tgui_panel / external.dm

* file by file : tgui / external.dm

* file by file : tgui / states.dm

* file by file : subsystems/assets.dm [unused return type]

* file by file : subsystems/tgui.dm [tg-macro for process()]

* file by file : asset_cache_item.dm [minor proc call fix]

* file by file : fixes a mistype for datum/asset_cache_item

* file by file : removes bugs and unimplemented features in asset_list.dm

* multifile : some more work on asset manager

* File deleted : spirtesheet tg_assets. Don't need them

* Remove unused TG content, fix asset_list.dm

* Fixes a few issues with wrong type paths.

* remove tgui_panel : this is for tgchat/stat2, which we don't use

* fix thing

* misc changes to tgui.dm. Defining QDELETED macro

* final TGui fix

* TGUI file convert : camera console and religion screen

* Works

* GPS fixed + fontAwesome fixed

* Mecha console control

* Fixes blurry icons

* fixes iconbase64 regression

* Misc bug/runtimes fixes

* Fixes runtime funtime

* Add merch computer TGUI

* Fixes TGUI ticking interfaces + MSGS

* PCMC

* Power Monitor working

* Power monitor

* Bugfixes + robot console

* Fixes mecha messages

* Spess dot TV

* TEG

* Syndicate Uplink

* Bump defines and connection warning

* fix?

* Fucking highscores

* Fixes mistakes

---------

Co-authored-by: west3436 <66280799+west3436@users.noreply.github.com>
2025-05-06 02:41:33 -05:00
nervere
16279169a0 Revert "remove attack delay affecting picking up and storing/retrieving items…" (#36244)
This reverts commit 19cbf5239e.
2024-03-27 03:10:39 -05:00
boy2mantwicethefam
d1df916483 Clicking improvements for combat (#36004)
* stuff

* it's client-based now

* Only affects mob/living

* /mob/living instead of /client

* usr.client
2024-03-14 17:36:28 -05:00
nervere
19cbf5239e remove attack delay affecting picking up and storing/retrieving items (#36050)
Co-authored-by: nervere <sage@lulz>
2024-03-02 12:03:22 -06:00
nervere
4b0f690720 delay between surgery steps reduced by 90% (#36048)
* surgery delay defined and reduced to 0.2 seconds

* delay changed from 0.2s to 0.1s (same as global click delay)

---------

Co-authored-by: nervere <sage@lulz>
2024-02-24 14:07:24 -06:00
Deity Link
00736a8a34 Base Thermal Entropy 2023-12-06 00:09:40 +01:00
DeityLink
221e465422 Further Rapid Cable Layer Quality of Life and Tweaks (#35337)
* RCl QoL

* Alt Click Override

* Adjacency etc

* what a mess
2023-11-06 03:17:40 -06:00
Peter Wedder
04de5f39c5 Allow the AI to alt-click objects to view turf contents (#35196)
* Remove code repetition from window altclicks.

* Allow AI to alt-click to view turf contents.

Allows the AI to alt-click objects with no other alt-click interactions
to view the contents of the turf the object is on.

This reflects the behaviour of other mobs, where alt-clicking displays
a list of the turf's contents in the right-hand panel.

* Removes alt-clicking on airlock turfs to electrify airlock as AI

* Change range to 7 here to mirror viewport size.
2023-10-20 17:21:16 -05:00
Exxion
76a82e0348 Declassifies old exploit (#34401) 2023-06-19 22:51:59 -05:00
SECBATON GRIFFON
8c9e2474e5 Clown/wizard AI (#34034)
* clown AI

* more stuff

* more authenticity

* wiz spells

* alt click to change AI state for curtain

* bit better of a curtain

* turrets

* ID setting

* actual update proc

* headset stuff, doors should work now

* headset stuff, doors should work now

* cardborg helmet is wizard garb now

* bracketing

* prompt explaining things

* prompt explaining things

* prompt explaining things

* might help with channels

* might help with channels

* might help with channels

* spell code change for this

* this for now

* so far

* so far

* now maybe

* add this block too

* on second thought no since this works in maint too

* here maybe

* makes more spells work

---------

Co-authored-by: SECBATON GRIFFON <sage>
Co-authored-by: SECBATON-GRIFFON <kanef9x@protonmail.com>
2023-06-08 08:57:59 +01:00
boy2mantwicethefam
2e0b75e108 Tweaks alt-clicking tiles to allow seeing the list of entities when in range instead of adjacent (#33939)
* Altclick check

* Update click.dm
2023-01-09 13:51:08 -06:00
nervere
3f698b6bb3 i before e except after c (#33268)
* i before e except after c

* i before e except after c

* i before e except after c
2022-09-12 20:56:08 -05:00
Armadingus
590f03cab7 Makes Tackling Disarm Intent Only (#32107)
I have a pet peeve with tackling. When I want to throw a person after grabbing them aggressively, I spamclick the throwing part of it. That's what you do when fighting people in ss13, you click often and click fast. There are so many click delays to things and you want to make sure you get your inputs in there.

But this leads to a problem where you accidentally end up tackling yourself after throwing a guy, I've grown tired of this happening, so here's a one line tweak.

🆑
 * tweak: Tackling is now exclusive to disarm intent instead of both disarm intent and grab intent
2022-02-22 19:29:04 +01:00
gurfan
12b68b9546 Electric Boogaloo (Take Two) (#31892)
* wall and floor and overlay icons

* HOLY SHIT PLANEMASTERS ARE AMAZING <3 LUMMOX

* nevermind shit is fucked i hate byond

* apc hackin tweaks start now

* attack_ai is overridden almost everywhere for zero reason

* more attack_ai shit

* more shit

* FORCEDISABLE pt. 1

* FORCEDISABLE pt 2

* more forcedisable 3

* 3.1

* end of forcedisable

* remove all hackview shit, cleanup

* better apc hacking, lots of fixes, and UI!

* more machine ability, lots of cleanup, radial lock updating, modules and active modules

* movable ui elements

* ADVANCED hologrmas

* more SHIT

* SHUNTSHUNTSHUNT

* fig congflgighgsa

* more testing

* fuck

* commit 2

* holo fixes

* fake APC images!

* lots of stuff

* fixes and cleanup and vomit

* More abilities. AI Control fixes and cleanup

* fixes

* fix

* clear another warning

* remove comment fix numbers

* raise price

* raise price

* fix

* 1 autoborger limit

* remove undocumented change

* handle at bot level

* order of operations

* dont call ert

* decrease

* fix unit test

* icon check please work

* remove unused icons, comment out chem dispenser drain

* comment out firewall, add disable to turrets

* remove unused wall icons

* Sort mob list, humans appear at the top

* fix sorting, fix hologram bug

* hologram tweaks, stupid fucking alert APC name

* qdel

* raise ever so slightly

* revert

* Delete broken_hand_icons.txt

* Update setup.dm

* Create setup.dm

* attack_self

* fix filter icon, delete unused file, remove forcedisable from magtape deck

* accidental change

* mousedropfrom recharge station

* oh rite

* fixo

* remove useless code

* aaahhh

* remove rig meal, made obsolete by emag

* fffffshhhhhhwooooop

* typo!
2022-01-31 18:18:06 -06:00
DamianX
c5dffbe635 Revert "Electric Boogaloo (#31728)" (#31868)
This reverts commit 8bb40feca6.
2022-01-19 15:46:18 +01:00
gurfan
8bb40feca6 Electric Boogaloo (#31728)
* wall and floor and overlay icons

* HOLY SHIT PLANEMASTERS ARE AMAZING <3 LUMMOX

* nevermind shit is fucked i hate byond

* apc hackin tweaks start now

* attack_ai is overridden almost everywhere for zero reason

* more attack_ai shit

* more shit

* FORCEDISABLE pt. 1

* FORCEDISABLE pt 2

* more forcedisable 3

* 3.1

* end of forcedisable

* remove all hackview shit, cleanup

* better apc hacking, lots of fixes, and UI!

* more machine ability, lots of cleanup, radial lock updating, modules and active modules

* movable ui elements

* ADVANCED hologrmas

* more SHIT

* SHUNTSHUNTSHUNT

* fig congflgighgsa

* more testing

* fuck

* commit 2

* holo fixes

* fake APC images!

* lots of stuff

* fixes and cleanup and vomit

* More abilities. AI Control fixes and cleanup

* fixes

* fix

* clear another warning

* remove comment fix numbers

* raise price

* raise price

* fix

* 1 autoborger limit

* remove undocumented change

* handle at bot level

* order of operations

* dont call ert

* decrease

* fix unit test

* icon check please work

* remove unused icons, comment out chem dispenser drain

* comment out firewall, add disable to turrets

* remove unused wall icons

* Sort mob list, humans appear at the top

* fix sorting, fix hologram bug

* hologram tweaks, stupid fucking alert APC name

* qdel

* raise ever so slightly

* revert

* Delete broken_hand_icons.txt

* Update setup.dm

* Create setup.dm

* attack_self

* fix filter icon, delete unused file, remove forcedisable from magtape deck

* accidental change

* mousedropfrom recharge station

* oh rite

* fixo

* remove useless code

* aaahhh
2022-01-19 08:15:08 -06:00
kane-f
06de1c9cbd Butchering radial menu rework (#31080)
* Butchering radial menu rework

* Check

* Xeno claw

* Now fully works

* Frog legs, deer head

* Repositionings

* No radial menu for just one thing

* No radial menu for just one thing

* Removing that thing, also alt clicking carbons butchers them now

* Fixed

* Fixed

Co-authored-by: kanef <kanef9x@protonmail.com>
2021-10-16 02:42:02 -05:00
DamianX
d4a4ce82d7 Optimized invoke_event (#31046) 2021-10-11 11:56:44 -05:00
DamianX
7d40434813 Fixed afterattack runtime (#30916) 2021-09-28 23:14:57 -05:00
GreatBigFailure
5c058b4ce2 Tackling (#30636)
* Evolution of Combat

* Tackling some problems

* Football alert

Co-authored-by: Rubylips <Questionfrog@gmail.com>
2021-09-11 23:29:34 -05:00
DamianX
fe77ef6e20 Converted all old events to lazy_events, removed old events, renamed lazy_event to event (#30503)
* wip refactor old events

* refactored events

* We're not lazy anymore! I mean we're still are. We just don't call ourselves that. Lazy is the new default option. It's also the only option. God, this took so long.
2021-09-04 23:21:03 -05:00
DeityLink
fe6a1ad4c4 Some new Safe loot (#29625)
* safeloot

* fix

* fix

* cleanup

* lazy events
2021-05-30 18:03:21 -05:00
gurfan
ab1e13bfe2 middle shift click to enable/disable door safeties as silicons (#27663)
* saveties

* clack
2020-10-10 17:09:25 -05:00
DamianX
09a73d3c59 Converted a bunch of stuff to the new thing (#27556)
* removed old on_density_change thing

* converted on_resist to lazy events

* Converted on_spellcast to lazy events

* Converted on_uattack to lazy events, breaks spell channeling

* Converted on_ruattack to lazy events, unbreaks channeled spells

* Converted on_logout to lazy events

* Converted on_damaged to lazy_events

* Converted on_death to lazy_events

* Converted on_clickon to lazy_events

* Converted on_attackhand to lazy_events, added on_bumped
2020-08-16 18:53:17 +02:00
DamianX
f5c96279c6 Removed datum pooling (#26992)
* removed pooling

* replace returnToPool with qdel

* did stuff
2020-07-03 19:38:38 -03:00
DamianX
85ff9b697a Fixed a bunch of warnings and errors (#26993)
* renamed implant malfunction defines

* refactored domutation

* possibly fix something about whitelists

* fix admin_memo warning

* fixed wrong attackby parameters in click.dm

* remove superfluous return in BSQL

* maybe fix something in mob/add_language

* maybe fix more language stuff

* Added return-type annotation to job_controller

* removed unreachable code from observer.dm

* possibly fix electrocute_act

* fixed bees wow this code never ran, 100% tested

* fixed parrot life

* fixed wolf attack logs

* fix bear life

* removed unreachable slime/show_inv

* fixed human/electrocute_act

* actually just get rid of this shit

* properly add return types

* removed more returns from BSQL

* added get_organ return type

* fixed infrared holder_movement

* fixed type_instances declaration

* fixed unreacheable overlay/New

* possibly fix release_restraints

* remove hopefully final return from BSQL
2020-07-01 09:46:00 -03:00
DeityLink
d12922fe93 Afflictus Emittus and more (#26657)
* Afflictus Emittus and more

* not true anymore

* that is why you don't code past 3am

* cleaning leftovers and fixing shifty issues

* some polishing

* eye candy

* Fixes
2020-06-02 07:55:37 -03:00
Dimitar Dihanov
7ea95e7631 buckle fix (#23248)
* chair buckle bugfix, pulling somebody who is buckled bugfix

* comment

* better comment
2019-06-13 18:23:18 +02:00
Dimitar Dihanov
1a69151b26 Added mutual cuff functionality (#23079)
* added mutual cuffing logic

* fixes

* added resist

* fix

* middle alt click for mutual cuff

* added third party cuff

* method name fix

* fixes

* remove from list fix

* fixes, new hotkey

* comments

* formatting

* added another check
2019-06-13 13:20:06 +02:00
DamianX
d96909f053 Allow crawling when knocked down (#20994) 2018-12-13 16:53:29 -03:00
Shadowmech88
18f9fc718b Fixes the eat power not allowing you to eat your handcuffs while restrained. (#20194) 2018-10-17 07:14:05 -03:00
ShiftyRail
2b7409e030 Fixes a runtime with attack delayers (#19929)
* Fixes a runtime with attack delayers

* gcDestroyed
2018-10-03 12:29:49 -03:00
Exxion
1f00495fe9 Revert if Lummox fixes [REDACTED] (#19887) 2018-09-30 14:28:41 -07:00
MadmanMartian
6ccd5c3019 Messing with component mobs further (#17770)
* moves the brain component to living-level. Makes some tweaks to NPC AI so they know they're being attacked by something

* that took a lot more than I expected to fix the melee

* adds the weapon throw attack. Fixes where you could only ever have one attack type for your NPC. Fixes a bad usr argument in throw.

* /*DOES NOT WORK*/
Changes mob function so it uses a movement component, rather than it being under the mob component.

Adds the Astar mob movement component.

Adds Receive and Return signal handling. moves get def zone to this system.

* movement through astar now works.

* cleanup of debug

* Damians requested changes

* That doesn't work.
2018-07-09 09:50:39 +02:00
Allspice
541e1d91bd Shift-MMB on things at a distance makes you point at them. (#18487)
* alt-click on things at a distance makes you point at them.

* Replace mmb swaphands with point, remove altclick point.

* Now mmb+shift
2018-06-12 11:59:58 -03:00
jknpj
6a85d46c85 Fixes a goof in AI Click() code (#17394)
* Fixes a goof on AI code

* updates comment

* actually fuck that
2018-02-09 11:29:35 -08:00
MadmanMartian
5755fc75de misc martian fixes (#16265)
* misc martian fixes

* martians can now pick up smaller mobs like a human, and can check turfs like a human

* can now use player panel on martians

* adds martian language

* missing arguments from u_equip and unequipped

* potentially out of scope changes

* that wasn't how object-oriented programming is supposed to go at all!

* removes carbon check

* martian shield funtimes

* rewrites attacked_by so it's more OOP-friendly

* optimizations and keeping to the standards
2017-11-03 18:29:11 +01:00
PJB3005
5fcee1bcea Removes unnecessary delays on handled attackby.
You know how when wrenching pipes, if you misclick and hit one you already placed, you can't place pipes for a moment?

Yeah some genius decided that if an attackby is handled it MUST generate a cooldown. Every object that DIDN'T have a cooldown on attackby was literally misusing attackby.

This dumb cooldown is finally removed. There's still cooldowns on attacking and stuff as far as I can tell.

If anything becomes exploitable and spam clickable we can fix that later.
2017-11-01 08:09:00 +01:00
unid15
ba1422c378 Allows taking photos through cameras 2017-08-31 15:26:38 +02:00
unid15
66b345b890 Removes camera exploit 2017-08-30 18:02:14 +02:00
Shadowmech88
d52ec77972 Basic Human AI (#15172)
* Adds a basic NPC AI for humans, capable of feeding itself when hungry and clothing itself.

* Does more stuff.

* Adds some more stuff.

* Forgot this.
2017-06-17 13:35:19 +01:00
Pieter-Jan Briers
ac7e891b7e Mouse wheel based RPD control. (#13670)
* Mouse wheel based RPD control.

* Fixes last bugs.
2017-02-06 14:55:40 -05:00
JMWTurner
27a304165c Station Holomaps (#11749)
* stationmap

* stationmap 2 map changes

* stationmap 3 changelog

* revision 1

* revision 2 map changes

* revision 3

* revision 4

* revision 2 map changes (reverted from commit 3d28f24cc83956dc091e83f8692e1607a8be4b4d)

* revision 5 map changes

* revision 6 map changes

* revision 7

* revision 8

* revision 9

* revision 10

* revision 11

* revision 12

* revision 13

* revision 14

* revision 15

* revision 16

* revision 17

* revision 18

* revision 19

* revision 20

* revision 21

* revision 22

* revision 23

* revision 24
2016-09-13 01:52:47 -05:00
ComicIronic
d490e1f970 Removed one line ifs and elses. (#11389) 2016-08-15 05:36:21 -05:00
unid15
807f27f601 Pop out cakes (#10604)
* Pop out cakes

* Bter

* attack_hand on the cake, locking category bs

* Fix

* Keep pixel_x/y

* update desc
2016-07-26 14:32:07 -05:00
unid15
75d79b3c23 Hand refactor (#10045)
* hand refactor (COMPILES)

* Works pretty much

* Test martians

* Martians

* Fix human UI

* Fix find_organ_by_grasp_index() returning arms

* CL + tweaks

* Last fixes

* a

* Better CL

* Fix weird issue!

* Fix virologist job

* Resolves a very important issue

* I thought I had already fixed this

oh well

* Fix grabs

* Shat
2016-06-05 02:33:12 -05:00
9600bauds
26d4603f1b Fixes borgs batoning people from inside lockers, makes players able to use containers etc. from inside lockers (#10071)
* Fixes players not being able to use their inventory inside a locker, fixes borgs attacking people from inside a locker + other similar shit

* Fix for recharging station part upgrades
2016-05-31 20:34:57 -05:00
clusterfack
12d2771355 Fixes 2 spell channeling bugs
If you had multiple spells that could be channeled you could freak the system out by some convoluted combination of using each one.

While it was previously thought to be sane, not intercepting attacks after spells were cast were causing some insane behaviors, (such as picking up food after using matter eater on it), so now a spell being cast successfully will intercept attacks.
2016-05-19 03:06:18 -05:00