EnhancedNetwork / TownofHost-Enhanced

TOHE is the best Host-Only mod for anyone who wants to change their Among Us Experience!
https://tohe.weareten.ca
GNU General Public License v3.0
83 stars 76 forks source link

Role Basis Changer (port from TOH-Y) #1182

Closed Ultradragon005 closed 2 months ago

Ultradragon005 commented 2 months ago

It's F#cking awesome

TaskList:

Ultradragon005 commented 2 months ago

~hmm okay, some very funky stuff happens when a desync player is introduced, will have to fix it~ OKAY THAT WAS SIMPLE LOL

HyperAtill commented 2 months ago

It's F#cking awesome

  • Change role midgame
  • Revive Players
  • STABLE INVISIBILITY FOR EVERYONE
  • Completely fix blackscreen

WHAT? MAN ARE YOU JOKING?!

Ultradragon005 commented 2 months ago

WHAT? MAN ARE YOU JOKING?!

https://i.gyazo.com/5927eec60cac02271fe252187e93d920.mp4 nah

HyperAtill commented 2 months ago

WHAT? MAN ARE YOU JOKING?!

https://i.gyazo.com/5927eec60cac02271fe252187e93d920.mp4 nah

This is fantastic!!

Tommy-XL commented 2 months ago

I hope innersloth doesn't remove canOverride

Tommy-XL commented 2 months ago

image

I think it would be better to use SetDisconnectedMessage the abovesender.Value.EndMessage(); and under because the message is sent multiple times to the same player

image

Ultradragon005 commented 2 months ago

~oh shit I didn't even notice I did that 💀~

NVM it was supposed to be like that

Tommy-XL commented 2 months ago

I think we need to do a similar check for changing a role type

Screenshot_20240821_210125_com android chrome

Tommy-XL commented 2 months ago

Although, we don't use it for roles yet, so we can leave it as is

Ultradragon005 commented 2 months ago

I think we need to do a similar check for changing a role type

yeah, something like that

Ultradragon005 commented 2 months ago

by "Rigoroulsy test" I'll probably jsut going to do 1-2 rounds with it 💀 and seeing if someone blackscreen or not. in my tests it did not

Ultradragon005 commented 2 months ago

dammit, DY neutrals still cause me issues, Ig Imma just rework the entire system

Tommy-XL commented 2 months ago

I think we need to temporarily abandon changing the intro by changing roles since it is not stable, the main thing now is to make code that changes the role basics stably and also revives players and ect.

Ultradragon005 commented 2 months ago

I think we need to temporarily abandon changing the intro by changing roles since it is not stable, the main thing now is to make code that changes the role basics stably and also revives players and ect.

nah, the current system I did is just trash lmao 😂 it disconnects it 255 times instead of 15.

But, if after I fixed it, and it still unstable, then sure.

Tommy-XL commented 2 months ago

I will also try to optimize the display of settings in the logs today or tomorrow because because of it modded players have a delay in displaying the intro than vanilla

Ultradragon005 commented 2 months ago

I think the new system is done, I jsut have to double-check everything.

Also this system will allow, to for example have a serial killer and sidekick see each-other on the intro screen.

Ultradragon005 commented 2 months ago

seems good, u can test the crewmates late-assign of basis now. It should be working ALOT more stably. (also host dosen't get blackout now LOL)

Ultradragon005 commented 2 months ago

probably done by tomorrow. All that is left for me to do is test it to find unexpected bugs if any.

Ultradragon005 commented 2 months ago

goddamit, everytime I find a blackscreen fix, the fix suddenly stops working after I did 5 more tests with the exact same fckn fix 😭

well, that's the only thing left at least.

Ultradragon005 commented 2 months ago

wait, I still forgot rpcset abilit cooldown on revive 💀 I'll do that now so I don't forget

Ultradragon005 commented 2 months ago

time to copy toh-y code line by line and see if that works . I geniuenly don't see what else could toh-y fixed except for desync imp assign again which I tried tho

Ultradragon005 commented 2 months ago

nvm, it's onyl for afterdeathplayers, that toh-y uses resetcams

Ultradragon005 commented 2 months ago

ok...... toh-y fix works. but I have to fix some thigns abt it

Ultradragon005 commented 2 months ago

it would seem like everything is okay now. But, all Guardian Angels now have to be desynced and use resetplayercam. But in exchange, litteraly everyone else dosen't blackscreen.

I'm gonna run last few test tomorrow morning to make sure everything is 100% set. Ofcourse, there might be stuff I overlooked but this is why we have dev builds.

Ultradragon005 commented 2 months ago

WE ARE ABSOLUTELY BALLING OUT OF CONTROL 🗣💯💯🔥

hinhinarrrrrr commented 1 month ago

wtf

HyperAtill commented 1 month ago

wtf

ftw