Page 1 of 1

Decentralization of mob control

Posted: Sun Oct 15, 2017 7:42 pm
by JJRcop
I have been thinking about this for a few days, and I may start working on this in the next few weeks. Before I create some monster that is going to be denied for bad implementation, I wanted to write down my theory for how this will work and bounce it off everyone. Here goes:

Theory
Players don't directly inhabit their mob, they inhabit a /mob/controller, simply to contain them, and that mob references the mind datum.
Movement procs of that are passed to the mind instead which passes it to mind.current, the key is also passed, because:
The mind can have multiple controllers, aka multiple players, and it has a list referencing all of them.

Controllers have some kind of state designating them as:
- full control
- view and speak
- view only, can't speak
- view only, can't think
- maybe other states
I say think, as controllers have a special (radio?) code where they can talk just to their mind, and only other controllers in the same mind can see this.

UI is not completely synced between the controllers, so each controller could move their action buttons around as they wish and have whatever skin they want, but it is synced where appropriate.
Minds would have procs to find out if any controllers are connected, or if there are any controllers connected with a specified state or states. These procs are used instead of checking for client because the clients are in the controllers.
Actions and speaking would be logged with the key of the controller that performed the action, as there is no central key you can reference per mob.

With all of this in place, multiple players could control the same mob at the same time.

Re: Decentralization of mob control

Posted: Sun Oct 15, 2017 7:53 pm
by D&B
Like Pacific Rim?

Re: Decentralization of mob control

Posted: Sun Oct 15, 2017 8:08 pm
by TribeOfBeavers
It'b be pretty funny to have all the ghosts in the round trying to control one character.

Re: Decentralization of mob control

Posted: Sun Oct 15, 2017 8:26 pm
by D&B
/tg/ plays singulo

Re: Decentralization of mob control

Posted: Mon Oct 16, 2017 9:30 pm
by Anonmare
Deadchat plays Clown

Re: Decentralization of mob control

Posted: Mon Oct 16, 2017 9:38 pm
by PKPenguin321
Since this is a refactor it might be more appropriate in the coding board

Cool idea though

Re: Decentralization of mob control

Posted: Mon Oct 16, 2017 11:07 pm
by kevinz000
i'd suggest first making movements passed to mind then doing more complex stuff as this. it'd make more sense anyways because you know your brain controls your body :P

Re: Decentralization of mob control

Posted: Wed Oct 18, 2017 3:29 pm
by Cobby
All this work for a meme

Re: Decentralization of mob control

Posted: Wed Oct 18, 2017 3:48 pm
by Qbopper
doesn't the brain damage rework pr include one of those super rare cases where you have two personalities, so it grabs a ghost and you both swap control? I'm not sure about the specifics of how that works but you may want to look into it

Re: Decentralization of mob control

Posted: Thu Oct 19, 2017 5:14 pm
by kevinz000
This'll make that even easier to do lol