Commit Graph

1096 Commits

Author SHA1 Message Date
oranges
fcc1b31913 Merge pull request #22531 from MrStonedOne/ter13ping
Adds client ping tracking, courtesy of ter13 of byond forums.
2017-01-05 19:09:02 +13:00
Kyle Spier-Swenson
bee4b132a3 [READY]Makes addtimer use callbacks (#22660)
* Makes addtimer use callbacks

* I broke the comment

* I fucked up the regex

* this was a silly idea.
2017-01-04 16:02:56 +13:00
Kyle Spier-Swenson
280dbe20c3 [Ready] SSthrowing + callbacks! (#22476)
* SSthrowing + callbacks!
Throwing is now a subsystem.
It's low priority, but is a ticker subsystem so is ran before most other subsystems.
To allow for shit to run after the throw finishes, throwing now supports a callback.
A callback datum system was created, conversion of addtimer is planned for another PR.
Throwing now has a limit of 2048 turfs (was 600)
Throwing now ticks every world.tick, and properly converts the speed arg from 1ds to what ever tick_lag is.
Throwing now properly accounts for missed ticks.
Throwing no longer uses sleep.
Throwing should no longer lag since it's not filling the sleep queue up

* Smoother tentacles

* Some improvements

* Missed a spot.

* Makes shit quicker.
Inlines the thrownthing.tick() proc.
Raises missed ticks value
Lowers max dist value
Inlines the two sister overrides for /atom/movable/Moved() because that just seemed like a waste

* >PRs open that use procs i'm removing.

* STOP THE PRESSES!

* throw_at now runs the first throw tick() immediately
This will help some with throwing while running.

* Item throwing now imparts the momentum of the user throwing.

(ie, running in the direction you are throwing makes you throw faster, running away from the direction you are throwing makes you throw the item slower)

* Moves throwing momentum from carbon/throw_item to movable/throw_at.
There are other things that cause a mob to "throw" an item, I figured we keep this universal since thrower is already an arg.

* Explosions throw shit faster.
This was stupid, "Hey, lets set the item's throw_speed to 4 so embedding works, but lets make it throw at the base 2 throw speed for no reason."

* Fixes explosion embedding.
This also acts as a nice example of how to override a callback in an override of throw_at properly.
2017-01-02 20:08:03 +11:00
oranges
f73c546536 Merge pull request #22494 from AnturK/churn
Reduces AB overlay updates
2016-12-29 10:09:17 +13:00
kevinz000
6411bdfbba [READY]Fixes flightsuits without making the game shit itself (flightsuit patch 3 v.2) (#22473)
* Update flightsuit.dm

* cheaper speed calculations and fixes inability to land

* ...

* .

* ...

* ..

* Update flightpacks.dm

* hmmm~

* parts_replacement

* woops

* number_tweaks
2016-12-29 09:17:44 +13:00
AnturK
8bb8d924b6 Reduces AB overlay updates 2016-12-28 14:16:32 +01:00
MrStonedOne
998a78200a Adds client ping tracking, courtesy of ter13 of byond forums. 2016-12-28 02:28:22 -08:00
Incoming5643
8894c0c55d Fixes some accidental deception with the panic bouncer (#22530)
* by MSOian request, some panic bouncer tweaks

* late night coding is reckless coding
2016-12-28 21:36:21 +13:00
AnturK
d818a33a6a Makes gamemode odds show % at current population (#22437)
* Makes gamemode odds show the % at current population

* Improvmets, probably broken
2016-12-28 09:04:17 +13:00
kevinz000
2c742c2114 [Ready] FLIGHTPACK PATCH 2 - PROBABLY CONTAINS LARGE AMOUNTS OF SHITTY CODE (#22135)
* ayylmao

* MEKHI JUST GOT A SUBSYSTEM

* ..

* ...

* airlock_bullshit

* ...

* stuff

* kek

* fuq

* fuck...

* GAHH

* finalcommitifucking swear ree

* update

* ...

* honk

* honk

* proc

* update

* fixed
2016-12-23 09:40:48 +13:00
Cyberboss
738aac44e3 Fixes the null excited_group runtime (#22379)
* Fixes the null excited_group runtime

* Milk those cycles

* >Checking for existing vars before making new ones
2016-12-23 09:39:19 +13:00
Kyle Spier-Swenson
b0d31bc769 Removes that stupid fucking sound from pais 2016-12-21 10:44:04 -08:00
Kyle Spier-Swenson
2243ab6036 [READY]Parallax (#22315)
* Ports Space Parallax from vg/yogs

* KILL ME

* fuck shit

* fixes

* rgfkbjhkefrhjkfrejhkfds

* Parallax, part 2.

* Gotta get these defines in before remie notices!

* DAMN IT! SHE FOUND ONE!

* fixes orbits

* fix orbits take 2

* Fixes some things with parallax

* Refactors parallax shuttle animations.
2016-12-20 21:55:10 -06:00
Incoming5643
845b4f56bb Adds the twitterize proc, so that the bird may live forever (#22269)
* Adds the twitterize proc, which takes a list of strings and turns it into a plaintext newline seperated list of 140 or less quips.

* makes the nonfunctional code less nonfunctional, but still not completely functional

* Almost functional!

* We've reached theoretical functionality!
2016-12-21 09:07:04 +13:00
kevinz000
dab3a142a0 Update pai.dm (#22313) 2016-12-20 14:40:47 +01:00
Cheridan
d0ad011a47 Merge pull request #22298 from optimumtact/stacktracingplease
Actually useful stack trace for debugging
2016-12-18 16:29:30 -06:00
oranges
bd90675661 Improve logic for self gcing objects
Items such as the datum/timedevent have HINT_LETMELIVE or HINT_IWILLGC
and we should respect that
2016-12-18 22:16:57 +00:00
oranges
1401c3dccf Actually useful stack trace for debugging 2016-12-18 22:06:56 +00:00
Jordie
04442cd533 Merge pull request #22192 from optimumtact/spacevine
Spacevine refactor and qdel improvements
2016-12-18 22:42:22 +11:00
coiax
f2e96fd758 Hijacking a shuttle diverts it to the syndicate base (#22184)
* Added a Syndicate dock for the Emergency Shuttle

* Removes window from doorway to syndicate base

* Diverts shuttle if the hijack conditions are met

* Fixes incorrect define

* Shuttle needs people on it to hijack

* Redoes the syndicate base extension

* Centcom always lies
2016-12-18 19:48:32 +13:00
oranges
25a97a0f08 Add a way to detect recursive calls to qdel
This is usually caused by logic in destroys that lead to the object
being qdeleted again.

This can cause nasty recursive loops, so an exception (with a stack
trace) will prevent recursive stack crashes and also let devs chase the
runtimes
2016-12-14 07:45:33 +00:00
coiax
2426bcb7d9 Adds "weighted random" AI law config (#22081)
* Adds "weighted random" AI law config

- Streamlines some duplicated code for law config stuff
- Makes a new "weighted random" option for AI laws, where an AI has a
random lawset, but some lawsets are more common than others.

80% normal, 20% quirky.

For those unwilling to source dive, here are the weights:

- 32% Asimov
- 12% Asimov++
- 12% Corporate
- 12% Robocop
- 12% Paladin

- 4% Maintain
- 4% Reporter
- 3% Hippocratic
- 3% Live and Let Live
- 3% Peacekeeper
- 3% Drone

* Law weights are now in the config file
2016-12-13 13:42:35 +01:00
kevinz000
bb80984957 [READY: I DID TEST]I pulled a goofball and broke pAIs (#22161)
* ghost notifications

* FUCK

* fuck2
2016-12-13 21:06:51 +13:00
kevinz000
1400a0d525 YOG pAIS PART 1 - MOBILE CHASSIS (#21871)
* pAI Candidate Verb

* sprites

* fuckxenos

* ...

* animal+alien

* ...

* ...

* ...

* progress

* ...

* .

* ...

* fixes

* ...

* ...

* ...

* ghostUI

* .

* .

* ...

* fixes

* ...

* BUNNIES

* ....

* ...

* merf

* nerfs
2016-12-13 14:47:03 +13:00
Kyle Spier-Swenson
dedb16826e Speeds up world init. (93s -> 49s) (#21992)
* Speeds up world init.

* Armor is now new inited for obj and the first level of subpaths.
* Actions is now lazyinited and deleted with empty.
* Actiontypes is now only inited when actually used and deleted once it pre-fills actions with the action buttons.
* Pipes now prefill their node list(s) in new() using new /list/ (count) syntax to speed up the list initaliztions and remove the init proc.
* Pipes no longer store their item version, instead creating it on the fly when deconned
* Walls no longer store their metal stacks, instead creating it on the fly when deconned.
* obj, walls, floor, plating, item, machinery, structure, pipe, pipenet, atom, and movable no longer have an (init) proc. (along with a few other smaller examples)
* Atmos can pass checking is now a var with the ability to have a proc be call in advance cases.
  * (as a side effect, I had to fix a few things that were calling atmosCanPass rather then using the pre-calculated list, this should speed up chemfoam and flame effects greatly)

* Reverts upload limit
(remind me one day to defuck this, it could easily be a config thats not editable by vv to make changes easier)

* Makes apc update icon a bit faster.
APC new is some what high on the profile of world init, still not sure why, but this stood out as a waste of cpu so i fixed it.

* Fixes runtime with atmos backpack water tanks.

* Makes smoothing faster (and fixes turfs smoothing twice at init)

* Makes apcs init faster by replacing some spawns with addtimer

* fix transit turfs.
2016-12-08 21:50:15 +13:00
oranges
333a57dad5 Merge pull request #21953 from Incoming5643/panic_bouncer
The panic bouncer
2016-12-07 22:26:56 +13:00
oranges
2ff260d63d Merge pull request #21936 from Cyberboss/patch-5
Better addtimer logging
2016-12-06 10:20:30 +13:00
oranges
4f848deb43 Merge pull request #21931 from Incoming5643/stop_making_me_be_productive
Server defined round populations / support for roundtypes that only run in low populations
2016-12-06 09:10:31 +13:00
Incoming
44c52a8348 requested changes 2016-12-04 22:09:12 -05:00
Cheridan
688e8b57b8 Merge pull request #21926 from KorPhaeron/shuttles
Allows adding prerequisites to purchasing shuttles
2016-12-04 20:48:26 -06:00
Incoming
e0324a6fc8 If a server has both a linked server and the panic bunker on, you can now choose to redirect new players to the linked server instead of denying them outright.
You shouldn't use this if BOTH servers are panic bunkered, obviously.
2016-12-04 21:27:17 -05:00
Incoming5643
2c82b2d65e The time left on a shuttle call/recall modifies with security level. (#21906)
* The time left on a shuttle call/recall will now correctly modify with changes in the alert status.

As added functionality Code Green shuttle calls no longer need a reason (though you can still give one) and take 20 minutes to arrive.

* Takes out the fun part (for now)
2016-12-04 18:47:17 +01:00
Cyberboss
51c463815d Better addtimer logging 2016-12-04 01:17:09 -05:00
oranges
f3acff4706 Adds a ckey whitelist, stripping out some dead code (#21875)
* Adds a whitelist, stripping out some dead code in the process

Old job whitelist that wasn't used has been removed.

Config has been repurposed, uncomment USEWHITELIST, only ckey's in
admins.txt or whitelist.txt in the config will be allowed to connect to
the server

* More examples

* Add a guy

* Update whitelist.txt

* Put him in
2016-12-04 15:33:15 +11:00
Incoming
dc1f62fd4d You can now define a maximum number of players for a roundtype if you so desire, but no round type currently does this.
Server owners can now futz around with the minimum / maximum number of players for roundtypes via game_options.txt
2016-12-03 22:55:28 -05:00
KorPhaeron
c9dcd95473 Shuttle Requirements 2016-12-03 19:38:38 -05:00
AnturK
653ff618fb Merge pull request #21860 from MrStonedOne/patch-264
Fixes a small oversight in timer subsystem
2016-12-02 12:53:36 +01:00
oranges
ca894aa845 Merge pull request #21801 from Cyberboss/CloseTheDamnThings
MC/SS Shutdown. Tguis now close on world reboot
2016-12-01 12:12:38 +13:00
Cheridan
87b1755a8c Merge pull request #21847 from ChangelingRain/debrisbutton
Fixes the auto follow debris button
2016-11-30 16:59:10 -06:00
Kyle Spier-Swenson
0ed1c63066 Fixes a small oversight in timer subsystem
hashlist was designed to ensure that timers on different objects with the same name didn't get detected as the same timer, but when I added it, i forgot to make this line actually use the hashlist.
2016-11-30 14:43:09 -08:00
MrStonedOne
76e1c6916f VV refactor 2016-11-30 12:49:21 -08:00
Mervill
b5578df27d corrects some defs without leading slash (#21843) 2016-11-30 20:05:14 +13:00
Joan Lung
b3a809d21a Fixes the auto follow debris button 2016-11-29 11:48:16 -05:00
Cyberboss
56db0bfbc9 Better safe than sorry 2016-11-27 19:15:07 -05:00
Cyberboss
0625d2b05d Less hair on fire 2016-11-27 18:58:19 -05:00
Cyberboss
520f31d3fe Squash these please 2016-11-27 18:50:36 -05:00
Cyberboss
aa7d5497c8 Gahh this wasn't well though out 2016-11-27 18:49:55 -05:00
Cyberboss
d025a0335b Moved for master as well 2016-11-27 18:47:41 -05:00
Cyberboss
ac1003c9cd Didn't save everything 2016-11-27 18:46:04 -05:00
Cyberboss
c9dfce29ad At the behest of oranges and MSO 2016-11-27 18:45:29 -05:00