#[2.7.0] SCP-3114
1 messages · Page 1 of 1 (latest)
Server crush fix
SCP-3114 spawn patch was adding to spawn list of SCPs incorrectly. Patch fixed and no more crashes
https://github.com/angelseraphim/AntiStrangulation/releases/tag/2.2
SCP-3114 keeps spawning every round, is there a way to prevent that? Love the plugin :)
I can add a randomizer that will decide whether to add SCP-3114 or not
Are you sure it spawns every round? I just use a randomizer to change the list, and SCP-3114 might be outside the list, then it won't spawn.
Yeah I’m pretty sure, I had also a case where there was two scp-939’s
Not sure if the plugin was causing it
That would be really great!
🫡
Tell me if something is wrong and turn on ping, otherwise I can't see that someone wrote to me
@runic venture ok tested it with some dummies, and this is the result lol:
Tested it with like 30 dummies
Very strange. I'll test it on my server soon
Hey apologies for this being unhelpful, because I don't have any logs (not my server). But we tried this out the other day and had some similar experiences, some rounds had a random skeleton, one round had 2 SCP-249s, one round actually had no SCPs at all, etc. Just thought I'd confirm the unexpected behavior!
Oh wait found 1 round of logs lol. Idk what this means but yeah. Like i said some rounds it seemed to be working, other rounds had some wild bugs lol
This log shows which queue the SCPs are in
@errant island @lost plume
Try it
Did you fix the duplicates or sumn? Also lmk if you want help with the plugin or anything
Sadly I must go to my real software job first
I rewrote the patch a bit
My plugin, unlike others, does not respawn the SCP. My plugin changes the queue function for the SCP
Yeah that sounds like a better approach, nice. I need to better understand how the original queue function works lol
The plugin works better now with this version, The skeleton still kinda spawns almost every round. But there was a round where there wasn't a skeleton.
Is it possible to make the chance the skeleton spawns higher in the config?
oh wait it happened again

At this moment 2 SCP-939 spawned?
Yea
I added a check for SCP presence
testing 🫡
public static PlayerRoleBase[] SpawnableScps
{
get
{
if (_cacheSet)
{
return _cachedSpawnableScps;
}
List<PlayerRoleBase> list = new List<PlayerRoleBase>();
foreach (KeyValuePair<RoleTypeId, PlayerRoleBase> allRole in PlayerRoleLoader.AllRoles)
{
if (allRole.Value is ISpawnableScp)
{
list.Add(allRole.Value);
}
}
_cacheSet = true;
_chancesArray = new float[list.Count];
return _cachedSpawnableScps = list.ToArray();
}
}
public static RoleTypeId NextScp
{
get
{
float num = 0f;
int num2 = SpawnableScps.Length;
for (int i = 0; i < num2; i++)
{
PlayerRoleBase playerRoleBase = SpawnableScps[i];
if (EnqueuedScps.Contains(playerRoleBase.RoleTypeId))
{
_chancesArray[i] = 0f;
continue;
}
float spawnChance = (SpawnableScps[i] as ISpawnableScp).GetSpawnChance(EnqueuedScps);
spawnChance = Mathf.Max(spawnChance, 0f);
num += spawnChance;
_chancesArray[i] = spawnChance;
}
if (num == 0f)
{
return RandomLeastFrequentScp;
}
float num3 = Random.Range(0f, num);
for (int j = 0; j < num2; j++)
{
num3 -= _chancesArray[j];
if (!(num3 >= 0f))
{
return SpawnableScps[j].RoleTypeId;
}
}
return SpawnableScps[num2 - 1].RoleTypeId;
}
}
Skeleton spawn chance 1 to all SCPs count
its still happening 😢
This is impossible. I think you haven't uploaded the new version of the plugin.
ill try again
I'll check it on my server
thanks :)
I think this is a problem on your side
huh
Try it idk
If this version can't fix the problem, then it's 100% a problem on your side
alr
Tell me if this works or not
looking good with this version
o.o
not sure what changed lmao
Try spawning more NPCs
Nice
40 ppl also works no duplicate scp's
45 should be 7 scp's (all the playable's except the zombie in the game)
Ok then I will make a new release XD
thanks for your hard work and time <3

wait I think 096 is not spawning anymore. Lemme test some more
Idk idk...
I just fixed it XD
Okay, I know what the problem is. Random in C# works terribly and always starts at index 0. I fixed it and SCP-096 now spawns
EPIC
Fixed 😎
2.4.0
- SCP duplicate fix (Thx for @lost plume)
- Code clean up
- System.Random fix (Start index depends on the DateTime now)
https://github.com/angelseraphim/AntiStrangulation/releases/tag/2.4.0
SCP duplicate fix
Code clean up
System.Random fix (Start index depends on the DateTime now)
[2.4.0] SCP-3114
Fck
lmaoo
fixed 
you are the best, thanks!
True, random in this engine is kinda ass for some reason. But then again usually when we use Random in these games we don’t really want a “true random” but rather we want a “evenly distributed spread over time”.. lol maybe I’m wrong
LMFAO
Glad yall got it fixed though well done, I’ll try it out again soon 🫡
[2.4.1] Bug fix
Sorry, I made a mistake in the code 😬
- Fixed SCP-3114 spawn chance
Now the spawn chance is the same as other SCPs
https://github.com/angelseraphim/AntiStrangulation/releases/tag/2.4.1
[2.4.1] SCP-3114
Just an idea but I think it'd be cool if the spawn chance was configurable.
Also, since players can normally configure their preferences for whether they are assigned a specific SCP role, what if there was a slider bar or something in ServerSpecific settings so that each player could set their skeleton prefs just like other SCPs?
also im kinda bored so i could work on that for you if ur intersted, idk just lmk
If I do this, other plugins that use SSSS will conflict
Does this plugin work as intended now?
Is there any chance for a configuration that allows strangle to be available after a certain amount of humans are on the server?
I think 3114's strength only comes in low pop where he can just pick people off alone
I recently figured out how to avoid that after I realized I was doing SSSS the wrong way. Exiled Ssss framework and making setting IDs configurable helps
Yep
No
Its LabApi, not Exiled
Oh
@runic venture Where can I find the config.yml file
LabApi/config/(Port)/AntiStrangulation
Where would that be if I installed it using Exiled
nevermind
found it
[2.5.0] SCP-3114
2.5.0
This issue has been fixed: https://github.com/angelseraphim/AntiStrangulation/issues/2
https://github.com/angelseraphim/AntiStrangulation/releases/tag/2.5.0
008
can i disable the automatic spawn at all
like
if i disable it, it will never spawn unless manually spawned yes?
Bc this doesnt sound like it
disable_auto_spawn:
true -> SCP-3114 won't spawn even on Halloween
false -> SCP-3114 will automatically spawn at all times, regardless of the event (Halloween or regular)
thank you! because of the wording, it implied that true only works on the Halloween event. I figured this wasn’t what you meant, but just wanted to double check.
would it be possible to add another configuration to disable the disguise ability as well? I realized it sounds like odd, but I do plan to implement a custom SCP
Oki
You need to do this yourself
dw ill figure it out, thx for the information
2.6.0
- Added the ability to control SCP-3114's stamina.
- Added the ability to randomly cancel the strangulation of SCP-3114's victim. (1-8 seconds)
https://github.com/ui2506/AntiStrangulation/releases/tag/2.6.0
[2.6.0] SCP-3114
[2.7.0] SCP-3114
2.7.0
- Unneeded patches removed.
- SCP-3114 spawn code reduced from 46 lines to 16 lines of code.
Full Changelog: 2.6.0...2.7.0
https://github.com/ui2506/AntiStrangulation/releases/tag/2.7.0
@runic venture hey just curious did you ever get the spawn-chance code working well? I am thinking of making an unrelated plugin that would also involve patching the spawning code
Scp3114Role.EnableSpawning sets SpawnChance from 0 to 1
You can find it in Scp3114Role
Thanks fam
can you config it where is spawns or his health?
I've already done that. I just haven't updated the plugin yet
I'll update today if I don't forget

Please update it
I need it badly
I would be thankfull
I’ll remind you in like 5 hours okay? @runic venture
Try it
I’ll check home
So?
?
Sometimes it glitches and appears really tall
Only you can see it
But yk
It’s glitchy
Ok...
