Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You can escape as CI or MTF even when you're not cuffed #137

Open
Czekoloczek opened this issue Jun 2, 2024 · 3 comments
Open

You can escape as CI or MTF even when you're not cuffed #137

Czekoloczek opened this issue Jun 2, 2024 · 3 comments

Comments

@Czekoloczek
Copy link

Czekoloczek commented Jun 2, 2024

Describe the bug
You can escape as CI or MTF even when you're not cuffed

To Reproduce
Steps to reproduce the behavior:

  1. Change your class to CI or MTF
  2. Go to the surface escape

Expected behavior
Nothing

Server logs
I don't think the vsr allows me to do that, because localadmin logs contains other users IP

Copy of current CU config section
The problem is now fixed in #136 and I don't want to leak my config anymore

EXILED Version ("latest" is not a version):
8.8.1

Results of show plugins command in console:
Command show does not exist! :trollface:
(here's plym show instead)
The problem is now fixed in #136 and I don't want to leak my plugins anymore
Additional context
https://youtu.be/BEzhoHXG7f8

@Czekoloczek
Copy link
Author

Czekoloczek commented Jun 2, 2024

also the scp target counter goes up by 1 every time you escape as a not cuffed CI
this doesn't affect the win conditions tho
image

@Czekoloczek
Copy link
Author

Czekoloczek commented Jun 2, 2024

also no matter if you're cuffed or not you always become a CI

@Mikihero Mikihero mentioned this issue Jun 4, 2024
@Antoniofo
Copy link

Antoniofo commented Jun 10, 2024

i confirm that here is the method that handles the escape, no check for if the player is cuffed or not and both case alwas leads to the chaosConscript role.

public void OnEscaping(EscapingEventArgs ev)
{
    if (ev.EscapeScenario is EscapeScenario.CustomEscape)
    {
        ev.NewRole = ev.Player.Role.Type switch
        {
            RoleTypeId.FacilityGuard or RoleTypeId.NtfPrivate or RoleTypeId.NtfSergeant or RoleTypeId.NtfCaptain or RoleTypeId.NtfSpecialist => RoleTypeId.ChaosConscript,
            RoleTypeId.ChaosConscript or RoleTypeId.ChaosMarauder or RoleTypeId.ChaosRepressor or RoleTypeId.ChaosRifleman => RoleTypeId.ChaosConscript,
            _ => RoleTypeId.None,
        };

        ev.IsAllowed = ev.NewRole is not RoleTypeId.None;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants