Skip to content

feat: zombie request#33

Closed
blankochan wants to merge 17 commits intosillyscp:mainfrom
blankochan:zombieRequest
Closed

feat: zombie request#33
blankochan wants to merge 17 commits intosillyscp:mainfrom
blankochan:zombieRequest

Conversation

@blankochan
Copy link
Collaborator

No description provided.

@blankochan
Copy link
Collaborator Author

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

Copy link
Collaborator 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
Collaborator 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
Collaborator 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
Collaborator 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
Collaborator 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

@blankochan
Copy link
Collaborator Author

I'm completely redoing this to be in its own separate system, for organizational reasons and so I can avoid dealing with the mistakes in this by just redoing it all. (ill make a new pull when i think its ready to be scrutinized)

@blankochan blankochan closed this Mar 29, 2025
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