Decentralization of mob control
- JJRcop
- Joined: Wed Apr 23, 2014 1:52 am
- Byond Username: JJRcop
- Github Username: JJRcop
Decentralization of mob control
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.
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.
I lurk quite often...
- D&B
- Joined: Mon Jun 13, 2016 2:23 am
- Byond Username: Repukan
- Location: *teleports behind you*
- TribeOfBeavers
- In-Game Game Master
- Joined: Wed Jun 15, 2016 6:54 pm
- Byond Username: TribeOfBeavers
- Location: Canada
Re: Decentralization of mob control
It'b be pretty funny to have all the ghosts in the round trying to control one character.
- D&B
- Joined: Mon Jun 13, 2016 2:23 am
- Byond Username: Repukan
- Location: *teleports behind you*
- Anonmare
- Joined: Sun Mar 15, 2015 8:59 pm
- Byond Username: Anonmare
- PKPenguin321
- Site Admin
- Joined: Tue Jul 01, 2014 7:02 pm
- Byond Username: PKPenguin321
- Github Username: PKPenguin321
- Location: U S A, U S A, U S A
Re: Decentralization of mob control
Since this is a refactor it might be more appropriate in the coding board
Cool idea though
Cool idea though
i play Lauser McMauligan. clown name is Cold-Ass Honkey
i have three other top secret characters as well.
tell the best admin how good he is
i have three other top secret characters as well.
tell the best admin how good he is
Spoiler:
- kevinz000
- Joined: Fri Nov 14, 2014 8:41 am
- Byond Username: Kevinz000
- Github Username: kevinz000
- Location: Dorm Room 3
Re: Decentralization of mob control
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
Local catgirl scratching post - Shezza
Usually seen as Skylar Lineman/Mekhi Anderson.
Commissions way too much art...
https://tgstation13.org/phpBB/viewtopic ... 7&p=239075 - IN GAME ADMINISTRATOR
Usually seen as Skylar Lineman/Mekhi Anderson.
Commissions way too much art...
https://tgstation13.org/phpBB/viewtopic ... 7&p=239075 - IN GAME ADMINISTRATOR
NSFW:
- Cobby
- Code Maintainer
- Joined: Sat Apr 19, 2014 7:19 pm
- Byond Username: ExcessiveUseOfCobby
- Github Username: ExcessiveUseOfCobblestone
- Qbopper
- Joined: Fri Jul 10, 2015 6:34 pm
- Byond Username: Qbopper
- Github Username: Qbopper
- Location: Canada
Re: Decentralization of mob control
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
Limey wrote:its too late.
- kevinz000
- Joined: Fri Nov 14, 2014 8:41 am
- Byond Username: Kevinz000
- Github Username: kevinz000
- Location: Dorm Room 3
Re: Decentralization of mob control
This'll make that even easier to do lol
Local catgirl scratching post - Shezza
Usually seen as Skylar Lineman/Mekhi Anderson.
Commissions way too much art...
https://tgstation13.org/phpBB/viewtopic ... 7&p=239075 - IN GAME ADMINISTRATOR
Usually seen as Skylar Lineman/Mekhi Anderson.
Commissions way too much art...
https://tgstation13.org/phpBB/viewtopic ... 7&p=239075 - IN GAME ADMINISTRATOR
NSFW:
Who is online
Users browsing this forum: No registered users