VALERA771 / BlackListSCP

Prevents some SCP from spawning
GNU General Public License v3.0
0 stars 0 forks source link

Does not correctly change SCP on Role Change #1

Open JosephZurita opened 1 year ago

JosephZurita commented 1 year ago

Hi,

This doesn't work currently as it was changed so that it activates on the Player.ChangingRole event rather than roundstart. I think you did this so it also happened on swaps too during the match?

This is as the Player.ChangingRole event is called prior to the Player object itself changing classes and so when the ev.Player.Role.Set function is called it sets the role of the Player object but then later on it's overriden as the role for the Player will be changed to whatever the ev.NewRole is.

I've written a small plugin which I'll be maintaining for personal use with it fixed.

https://github.com/JosephZurita/SCPBlock

VALERA771 commented 1 year ago

Hello,

Thanks for contacting! Thanks for advice. I'll look into it and change code to optimize it.