#Oblivious Setting
40 messages · Page 1 of 1 (latest)
i dunno.
what exactly was broken?
Oblivious could report 
not anymore.. (need to do 1 last test)
Oblivious works again though, what are you fixing?
immune to bait
okay i think it is fixed
change the code in ReportDeadBodyPatch prefix function for oblivious
var tpc = Utils.GetPlayerById(target.PlayerId);
if (__instance.Is(CustomRoles.Oblivious))
{
if (!tpc.Is(CustomRoles.Bait) || (tpc.Is(CustomRoles.Bait) && Options.ObliviousBaitImmune.GetBool())) /* && (target?.Object != null)*/
{
return false;
}
}
and change the if condition inside if (target.Is(CustomRoles.Bait)) in MurderPlayerPatch postfix function to:-
if (killer.PlayerId != target.PlayerId || (target.GetRealKiller()?.GetCustomRole() is CustomRoles.Swooper or CustomRoles.Wraith) || !killer.Is(CustomRoles.Oblivious) || (killer.Is(CustomRoles.Oblivious) && !Options.ObliviousBaitImmune.GetBool()))
@candid parrot
code's different in mine
Oblivious could only report bait when immune to bait was off
what code?
Oblivious
what is changed?
if (__instance.Is(CustomRoles.Oblivious) && (target?.Object == null || !target.Object.Is(CustomRoles.Bait))) return false;
change it to this
it will work for immune to bait
Noice.
What file can use this?
PlayerContorol.cs
Is good rn?
@vestal yarrow It is copycat.
I have the problem after i copy oblivious code in playercontorolpatch.cs.
The code has been changed for cooy cat
that doesn't exist anymore
Also wrong place for this conversation
So i have to cut the copycat code then paste to?
You need to port the role again, bcoz it has been changed a lot
Also wrong place for this conversation
So what if i change var tpc to rpc in Copycat code?
- Stop messaging here this is not the right place for it. Use #💻┃dev-chat
- Latest Copycat uses kill button to copy roles, not by reporting if you want to keep it that way you can just change the variable name
