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

feat: zombie request #33

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Conversation

blankochan
Copy link
Contributor

No description provided.

@blankochan
Copy link
Contributor Author

is all tested, have not encountered any exceptions in the console

Copy link
Contributor Author

@blankochan blankochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats coool!

@blankochan
Copy link
Contributor Author

NOWWWW its probably good (didnt think to test for that until after i submitted)

ev.Player.Health = originalPlayer.Health;
ev.Player.Position = originalPlayer.Position;
ev.Player.HumeShield = originalPlayer.HumeShield;
originalPlayer.Role.Set(RoleTypeId.Spectator,SpawnReason.None);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??????????????????? the player should become a human once they do .h, not spectator???????????

Copy link
Contributor Author

@blankochan blankochan Mar 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I elected in order to avoid having to duplicate stuff, or make a weird abstraction that'd only ever be used to handle the possibility of like spectator swap or whatever.
(I genuinely do not know what terminology I should use, "Spectator Swap" sounds the best?)

I made NewVolunteer have a nullable player and then i use that as an optional variable;
and if its supplied to just treat it like a swap thingy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna resolve the other ones about this area because they all kinda roll into here

Copy link
Member

@LumiFae LumiFae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, just make a request system rather than rely on the volunteer system, this is very messy, sorry 😭

/// if supplied with an original player the <see cref="SillySCP.Handlers.VolunteerHandler"/> will treat this as a replacement
/// </summary>
#nullable enable
public static void NewVolunteer(RoleTypeId role, Player? original=null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static void NewVolunteer(RoleTypeId role, Player? original=null)
public static void NewVolunteer(RoleTypeId role, Player? original = null)

The lack of space is really irritating me 😭


if (player.Role == RoleTypeId.Scp0492)
{
response = "You cannot change into a human as SCP-049-2!, try .r or .requestVolunteer to request a spectator to take your place";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
response = "You cannot change into a human as SCP-049-2!, try .r or .requestVolunteer to request a spectator to take your place";
response = "You cannot change into a human as SCP-049-2!, try .r or .requestvolunteer to request a spectator to take your place";

Sorry, looks ugly asf

[CommandHandler(typeof(ClientCommandHandler))]
public class RequestHuman : ICommand
{
public string Command { get; } = "RequestHuman";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please lowercase for my sanity

Suggested change
public string Command { get; } = "RequestHuman";
public string Command { get; } = "requesthuman";


public string[] Aliases { get; } = ["r","rh","request"];

public string Description { get; } = "request to change into a human, if you're an SCP."; // no clue what the description for this should actually be tbh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public string Description { get; } = "request to change into a human, if you're an SCP."; // no clue what the description for this should actually be tbh
public string Description { get; } = "Request to change into a human, if you're an SCP."; // no clue what the description for this should actually be tbh

@blankochan
Copy link
Contributor Author

blankochan commented Mar 17, 2025

Honestly, just make a request system rather than rely on the volunteer system, this is very messy, sorry 😭

honestly, dead-ass should this just get closed and i try again later when Ive taken a break?; or should this just get slogged through and it gets replaced later
(I feel like the longer I work on this the more mistakes i make just trying to get it done quickly)

@LumiFae
Copy link
Member

LumiFae commented Mar 17, 2025

take ur time, use this pr, ill keep it open, just lmk when u want me to review

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

Successfully merging this pull request may close these issues.

2 participants