#plugins-dev-chat

1 messages · Page 79 of 1

limber scarab
#

finally

#

thank u all for help

#

It was very important

pine parcel
#

stupid question, what reference does TryGetRoleBase belong to?

turbid spoke
#

This should spawn a shotgun at the room the player is standing in correct?

Pickup.Create(ItemType.GunShotgun, player.Room.Position, player.Room.Rotation, new Vector3(1.0f,1.0f,1.0f));

#

player is the sender of the command

static meteor
turbid spoke
turbid spoke
#

Oh its at the end of the big stuff

#

Nvm

static meteor
#

Do

Pickup pickup = Pickup.Create(ItemType.GunShotgun, player.Room.Position, player.Room.Rotation, new Vector3(1.0f,1.0f,1.0f));
pickup.Spawn();
turbid spoke
static meteor
#

There is a way but I dont remember

turbid spoke
#

Alright thanks for all the help

#

If you figure it out lmk

pine parcel
#

anyone know how I can apply SCP 1344 to a player? I don't need the animation to play, just for the effect, and if there is a way to alter the speed that the player pings show up

static meteor
slate flume
hearty shard
#
        public static bool TryGetRoleBase<T>(this RoleTypeId roleTypeId, [NotNullWhen(true)] out T? role)
            => PlayerRoleLoader.TryGetRoleTemplate(roleTypeId, out role);

Dw about ur question i just forgot half

#

Oh

#

I didnt reply ping

pine parcel
#

Thanks!!

celest thorn
#

dev chat dead

restive turret
upper vapor
restive turret
#

Whos not on discord

#

And people who working

celest thorn
#

me crying because i need to remove the bom

#

and gets added again

#

by fucking webstorm

upper vapor
#

Disable it

#

🤯

celest thorn
#

i found out just now

#

the setting

upper vapor
#

People complaining about their IDEs doing something they don't want but don't search to change it

celest thorn
#

i just knew config not working

#

then checking the git

#

someone said Oh its bom without anything on how to fix it

upper vapor
#

Look it up yourself Smart

#

It's in encoding settings iirc

#

And yes I know it's infuriating

#

BOM is stupid

#

Use Linux

restive turret
upper vapor
#

Solution: vim
Set up everything yourself

restive turret
#

The dock tabs are annoying

#

And asking me every time to log into github nuget package store

restive turret
#

(which can be disabled but)

celest thorn
#

i'd rather explode

upper vapor
#

Disable ai assistant

restive turret
#

I use my own GitHub packages

celest thorn
#

than changing

celest thorn
restive turret
#

I meant like

upper vapor
restive turret
#

Actual stuff

upper vapor
#

Looks like they haven't heard about it enough

restive turret
#

It shitfucks itself

#

I just downloaded and update my nupkgs on a special folder

upper vapor
#

Roll your own NuGet

#

McNuGet

#

-# +1000000 lawsuits

celest thorn
#

im about to blow up my head

restive turret
celest thorn
#

Can someone tell me the difference?

#

because i wanna know

#

like cloudflare why?

upper vapor
#

Embed fail?

#

There we go

restive turret
#

Edge

celest thorn
#

no because fucking next js edge everything related to /[shit]

restive turret
#

Next js issue

#

Dont use js in production

celest thorn
restive turret
#

I mean server

celest thorn
#

how tf am i supposed to make website?

#

with rats?

restive turret
#

There are many program lang that solve that problem

#

Javascript should NOT be in server side

celest thorn
#

please

#

god

#

make it work

restive turret
#

kill js

celest thorn
#

its already 2 hours

#

ARE YOU SERIOUS

#

CLOUDFLARE ARE YOU FUCKING SERIOUS

restive turret
#

Joker serious

celest thorn
#

ig i need to check for this mysterious .ntf file

restive turret
#

Nine tail fox file

celest thorn
#

oH they have a discord

#

i could ask there

#

ITS JUST FOR AWS

#

;(

restive turret
#

Yo go there and whine about why JavaScript exist

#

I would do that tbh

celest thorn
#

AND ITS NOT EVEN AN INVITE LINK

restive turret
#

Joining random js dev place and asking why are js exist in server place

celest thorn
#

ITS A CHANNEL

restive turret
#

Lmao

celest thorn
#

do they fucking know how discord works?

#

Oh there's an invite at the bottom of the page

restive turret
#

Its js what did u expect

celest thorn
#

like wtf

#

cloudflare i love you so much for protecting me everyday

#

from egangster

#

but your docs suck

restive turret
#

Never used cloudfare

#

Bc i only host for myself and close friends

celest thorn
#

its a discord so crazy

#

no roles

#

no nothing just 2 channels

#

crazy

restive turret
#

Real

#

They so busy making the docs

celest thorn
#

who tf ships in production "//TODO: add to the docs"

restive turret
#

Me

celest thorn
#

you are a fucking multi billion corporation

restive turret
#

Not yet

celest thorn
#

AHHAHAHAHHAHA

#

i saw this guy in the list wtf

#

Ai image so crazu

slate flume
#

So does

#

Changing effectiveblinkdistance do nothing?

#

I think 173's blink distance is client-side

restive turret
#

Yes but it will tp you further or behind your target position

slate flume
restive turret
#

I did that

#

Tested it

slate flume
#

Oh

#

Then okay :)

restive turret
#

That's why i know

#

It will tp behind or further you see the actual model

#

@ david syncvar on that when

upper vapor
#

We won't be getting sync vars for roles

#

Some alternative maybe

slate flume
#

If I want to change scp173's blink timer, patching TotalCooldownServer getter will do what I want right?

#

Because I'm having issues with it being inconsistent but I think it's just me

spare zodiac
#

šebest

unique crane
upper vapor
unique crane
#

Or idk

spare zodiac
#

I have been searching through this assembly csharp and can't find method for cuff verifiecation

unique crane
#

DisarmingHandlers. ServerProcessDisarmMessage(NetworkConnection conn, DisarmMessage msg)

upper vapor
#

Yep

unique crane
#

And you cannot prevent the circle from appearing

spare zodiac
#

where tf is DisarmingHandlers

upper vapor
#

Fun fact
You can look for usages of labapi events

spare zodiac
#

found it

restive turret
upper vapor
restive turret
#

Everything is const and static it just sad

spare zodiac
slate flume
upper vapor
restive turret
upper vapor
slate flume
#

You're lying

restive turret
#

No, i had to patch it

#

Oh you mean like that

slate flume
#

OHH

#

Yeah I patched too

#

I was confused

restive turret
#

I was editing the cooldown inside the thing

#

I said that isnt great thats it

#

For modding purpus but good for dev

slate flume
#

I thought you meant like

#

You couldn't period

#

I'm just dumb don't worry about me

upper vapor
#

Did you mean

#

Purpur

slate flume
#

Ohhh soo that's why my shit is inconsistent

#

I need to fuck w/ cooldownbaseline

royal mica
slate flume
#

What are we talking about right now

royal mica
slate flume
restive turret
slate flume
#

I know editting the cooldown works

#

I just

restive turret
slate flume
#

It's inconsistent

#

And idk why

upper vapor
celest thorn
slate flume
#

@restive turret do you fuck w/ blink cooldown?

royal mica
upper vapor
slate flume
upper vapor
#

G is gyorsított
Gy is gyorsvonat

royal mica
#

oh right

upper vapor
#

Gyorsított szemelyvonat

royal mica
#

the fancy GY

restive turret
#

*os

#

G is Giroszos

royal mica
#

mmm Girosz

#

G AZ GIROSZOS?

upper vapor
celest thorn
#

btw i fixed alone that problem

upper vapor
royal mica
#

hagyma, csipős also comes with the train if it is Giroszos

royal mica
restive turret
#

Sadly

slate flume
#

This sucks

#

What is any of this

restive turret
slate flume
#

Why 0.0f * (float) (current - prev)

restive turret
#

Lmao

slate flume
#

And why NetworkTime.time + 2.0

#

Why 2 seconds

#

What for

royal mica
#

I assume lag compensation

slate flume
#

So I should just scale the _totalCooldown and the random 2.0 in OnObserversChanged to achieve my desired result?

#

Gotcha

restive turret
#

Might need to change sustain time

unique crane
#

Because previously peanut had extra cooldown time per observer

#

Which has changed

#

to 0 now

celest thorn
#

why not removing it?

unique crane
#

idk

#

Maybe it gets changed again in the future

celest thorn
#

honestly im confused

#

i have an error on cloudflare workers but not on my local build?

#

and the error doesn't even reference my code

#

debugging air

upper vapor
#

Step0: remove next js

#

Cloudflare workers is very limited btw

icy knoll
#

step 1: install a compiler framework instead of a runtime framework

celest thorn
celest thorn
#

but calling one endpoint throws an error

upper vapor
upper vapor
upper vapor
#

Lumi

icy knoll
restive turret
#

Ask my magic 8balls

celest thorn
upper vapor
restive turret
#

Typing while i scripting like a skid

celest thorn
icy knoll
icy knoll
#

nextjs issue

#

or whatever

celest thorn
#

yes i do understand the code

upper vapor
#

Maybe nextjs isn't built for cloudflare workers

celest thorn
#

it is

#

its in their doc

#

and it supports everything

icy knoll
#

only for static builds

#

not dynamic

#

you need cloudflare pages

celest thorn
#

nope

upper vapor
celest thorn
icy knoll
#

mfw cloudflare workers needs a static build…

celest thorn
#

even auth works fine

#

blog post

#

everything

upper vapor
#

What breaks then

icy knoll
#

eh well idk, i don’t use shit

upper vapor
celest thorn
#

this

#

the error is not even related

upper vapor
#

Does it pnpm install correctly on CF?

icy knoll
# upper vapor XDDD

the thing is also ax, zero stole my whole website and recoded it in nextjs as they didn’t like sveltekit… like a full on 1:1 rip off

celest thorn
#

and stolen

#

is big words

icy knoll
#

it’s true

#

so

celest thorn
#

i just took the design like a pirate and made it mine

#

honestly its 2 modals

#

lol

#

oh i found out why

celest thorn
#

honestly i wouldn't use stealing

upper vapor
spare zodiac
#

zo like it's my first time making patch and kinda not working. Registering was

var harmony = new Harmony("saskyc.com");
harmony.PatchAll();
celest thorn
#

else i would've stolen other stuff

upper vapor
#

The client checks if they can disarm and then the server validates

spare zodiac
#

fuck

upper vapor
#

You never get the request for same-team

spare zodiac
#

it was possible before why did they change it

#

bruh

celest thorn
#

why can't i disarm scp079

#

thats so sad

spare zodiac
celest thorn
celest thorn
#

SO SCP-079 has an inventory?

spare zodiac
#

every SCP has inventory

upper vapor
#

No

#

Well

#

Yes

spare zodiac
#

you just can't open it

#

but it functions

upper vapor
#

But they're not an IInventoryRole

celest thorn
#

But detain checks for that??

upper vapor
upper vapor
spare zodiac
#

does client process opening inv?

upper vapor
#

The command doesn't

upper vapor
#

||non't||

spare zodiac
#

why does client do so many things :(

celest thorn
#

can the client destroy your pc

upper vapor
#

With a few thousand grenades

celest thorn
#

i fixed like 30 errors

#

inside the website that are just small stuff

unique crane
#

I keep forgetting that I connected in game ranks to my local DB for testing kek

#

And that I have to manually start mysql service

celest thorn
#

i connected the entire permission system to a db

#

so when i check it does

Base Game
Cedmod
Database

upper vapor
#

Do you use XAMPP

#

That auto-starts services by default

#

So when I try something with caddy and port 80 shits itself

#

I angry

celest thorn
#

mongodb better

#

i don't need to write english to get someone

upper vapor
#

Screaming italian

unique crane
#

I just have it default turned off

#

in Services

upper vapor
#

Bruh

unique crane
upper vapor
#

Disable windows update service

#

(I had to do that at some point cuz it was cooked)

restive turret
#

Ok what's next

upper vapor
#

Use nuxt

unique crane
#

Time to switch to the best DB system ever

#

its called

#

.txt file

upper vapor
#

Just remember it yourself

#

No extra scalability architecture needed

#

It's built in

celest thorn
#

entire machine crashed

#

or its rebooting

#

idk

#

lovely

restive turret
upper vapor
celest thorn
#

SL in SL

turbid spoke
#

Does anyone know how to make it so that a shotgun spawned in using pickup has no collision or gravity? Something so that it will stay still until picked up like when mounted to a wall.

upper vapor
turbid spoke
#

Thank you

upper vapor
#

Not sure but give it a try

#

There might be something else to do

#

Check how the uh

#

Item distributor does it

#

Derives from SpawnablesDistributorBase iirc

plain gazelle
upper vapor
#

Bruh

#

Brain fart

upper vapor
turbid spoke
upper vapor
#

Np

turbid spoke
#

Once im off work ill get it implemented

upper vapor
#

Work notLikeThis

turbid spoke
#

I just wanna code

upper vapor
#

Can I hate my job if I'm unemployed?

upper vapor
plain gazelle
#

at work i plan out what im gonna code after work xD

grand flower
#

I've been programming all night

#

kill me

turbid spoke
#

More

#

(Take a break)

plain gazelle
grand flower
#

nah gotta finish something for work

#

at least i'll be up when my gf wakes up, our work schedules kinda make us miss each other since she wakes up early for work and I tend to insomnia my way into sleeping in late

turbid spoke
grand flower
#

aye

restive turret
#

Me when I forgot to push my changes so cannot work on my own stuff remotely

keen berry
#

hi gng

hearty shard
celest thorn
#

so im safe

restive turret
#

I'm not

#

I using GitHub.dev

#

Basicly vsc in web

celest thorn
#

ew

restive turret
#

I know

#

Thats not my actual job btw

#

I scanning an url with vulnerablilities and I just waiting

#

Dw url is the corpos one

worn gull
#

Hi! does anybody have a patch for that error when I spawn a dummy?

slate flume
#

I get no errors when spawning dummies

restive turret
#

14.1.2 fixes it

restive turret
#

Or lalog

limber scarab
#

How can I cut off my hands in the game on my own? (this for school project i promise)

worn gull
restive turret
limber scarab
hearty shard
worn gull
restive turret
#

Can replicate it when round already running

hearty shard
#

ive never done it on a round

#

at least with it erroring

celest thorn
#

14.1.2 best waited update

restive turret
#

Yup

celest thorn
#

i do always wonder something

restive turret
#

Cant wait for daily david ping after 14.1.2

celest thorn
#

how does nw test internally

#

how tf that error none saw it before release

restive turret
#

dotnet test

#

jk

celest thorn
#

hope not Trolley

restive turret
#

Like LumiSteamHappy

celest thorn
#

nah i don't wanna disturb most likely just wait or it will be forgotten

#

its like something that i wonder alot like how tf they didn't see that error

#

me just testing the version in 2 seconds i saw it

upper vapor
#

Based

#

Factual

celest thorn
#

Anydesk is best friend of 2 Categories

  1. Me
  2. ||Indian Scammers||
restive turret
#

The 1 and 2 are the same

celest thorn
#

IM not indian

#

neither a scammer

upper vapor
#

2 are more afraid to use anydesk

restive turret
celest thorn
celest thorn
upper vapor
celest thorn
#

I have a birth certificate that says Italian and were i was born, both of my parents are italian so yes

#

im NOT indian

slate flume
#

Your pants: on fire

celest thorn
#

LOL

upper vapor
celest thorn
#

im not a Scammer either because i don't get paid by none

#

and i feel bad just by asking money

restive turret
#

You scammed me

#

My heart

#

💔

celest thorn
#

nah bro

upper vapor
#

Peak song

celest thorn
celest thorn
#

i saw it during the time when crowdstrike destroyed everyone

restive turret
#

The great purge

celest thorn
#

the great destruction

royal mica
celest thorn
#

No i love the guys at anydesk

#

they help scambaiters and do something about them

#

they deserve to be installed and used :3

keen berry
upper vapor
celest thorn
#

yes

upper vapor
#

Rn it's not very convenient to play SL through AD, minecraft is almost impossible

celest thorn
#

thats so true

upper vapor
celest thorn
#

10% of atoh is written while i was in school with my laptop

upper vapor
#

But I do it often

#

Cuz I have to

keen berry
#

was this always here

#

or am i demented

hearty shard
celest thorn
hearty shard
#

so now flamingo is part of the game always, just disabled

celest thorn
#

btw

upper vapor
restive turret
celest thorn
#

no i mean the new one

#

not the old one

celest thorn
upper vapor
#

Just set the date to christmas on clients shrug

celest thorn
#

btw someone knows how accurate is the Region in the auth? and if i could take it from the referencehub

unique crane
celest thorn
#

I love christmas

#

and nw cannot remove my right to have 365 days a year christmas in my server

keen berry
celest thorn
unique crane
#

no

celest thorn
#

so sad

#

i want to understand how accurate it is

#

and if i could use it

#

oh wait

#

game doesn't even save it

#

why tf in the server there is a check called UseGlobalBans you could disable it

#

like wtf

upper vapor
celest thorn
upper vapor
#

What

#

Why not make subclasses

celest thorn
#

and like translation es and us use the same keys

#

but with different stuff written inside

upper vapor
#

You can just

#

Read another file

#

Or property

celest thorn
#

so using yml

upper vapor
#

Yes you can

#

Why couldn't you

celest thorn
#

like do load() and in load deserialize all of the files under a category

#

and save them in a dict

upper vapor
#

Translation English {g;s;}
Translation Spanish {g;s;}

#

Then use a dictionary

celest thorn
#

the worst of all

#

is that now i need to migrate everything lol

upper vapor
celest thorn
upper vapor
restive turret
#

im already

#

Nuxt quests

celest thorn
#

the only problem i think its massive

#

is the UI

#

getting the translation and stuff

upper vapor
celest thorn
#

No i know that

#

its already like that

#

the problem is like getting the text

#

and replace stuff

#

for each player

#

isn't that heavy?

upper vapor
#

p.Translate(TranslationKey.Amogus)

celest thorn
upper vapor
celest thorn
#

like as of rn im doing like this

celest thorn
upper vapor
celest thorn
#

?

#

oh i saw it now

upper vapor
#

You could also use genetics to make the code faster

#

Genetics

#

😭 😭 😭

celest thorn
upper vapor
#

Generics

celest thorn
#

OH

#

generics

#

lol

upper vapor
#

Xd

#

Swipe typing moment

random scaffold
#

why is the method being called even though the door wasn't even open? (even the animation is)

#

for all doors except 096 it wasnt called

unique crane
#

Because interacting doesn't equals opening?

#

Interaction = press E

#

or whatever your binding is

upper vapor
#

You right click on the door

#

Minecraft keybinds :3

unique crane
#

you dont have RMB to open door

upper vapor
#

I do

#

I drag click

#

To compensate for the ping on American servers

unique crane
#

Wait how do you aim weapons

restive turret
#

Ctrl

upper vapor
#

You mean zoom?

#

The forward button on my mouse

#

Mouse4

#

I think my binds aren't as bad as pressing shift with the thumb

random scaffold
#

or how i can check if the fucking door was opened

upper vapor
#

Door.Base.GetExactSomething() is 0 or 1

unique crane
#

Check for the opened state in the interacted event

hearty shard
#

PlayerInteractedDoorEventArgs -> ev.CanOpen

#

but yeah if u want to know the new state theres like door.IsOpened

tulip kiln
#

Anyone knows what is the point of the server listening for OnWaveUpdateMsgReceived? 😭

tulip kiln
#

Yes

hearty shard
#

where

#

is it in wave manager

tulip kiln
#

Everywhere a client would

hearty shard
#

yea but the event

tulip kiln
#

WaveManager

hearty shard
#

crazy work ngl

tulip kiln
#

I had to restrict my messages to verified client, otherwise the server would override its timer (I have to sync it more often)

hearty shard
#

well you should use Player.GetAll()

tulip kiln
#

I just did
new WaveUpdateMessage(__instance._wave, UpdateMessageFlags.Timer).SendToHubsConditionally(x => x.authManager.InstanceMode == CentralAuth.ClientInstanceMode.ReadyClient);

hearty shard
#

oh like htat

#

yeah

tulip kiln
#

It was SendToAuthenticated() before

#

which apparently includes dedi

hearty shard
#

oh

#

yep it sends to all that isnt Unverified

tulip kiln
hearty shard
#

mine shows

#

me when rider doesnt process enums into their values 💔

tulip kiln
#

I'm using dnSpy which is old af

#

last update in 2020*

true cedar
#

dnspyex is worse than dnspy

#

its frustrating cause dnspy could be so much easier to use with just a couple (probably easy) changes

restive turret
#

Use ILSpy

barren pasture
#

How do I change explosion damage?

hearty shard
#

Hurting event or grenade._damageOverDistance i think

#

its an animation curve

barren pasture
#

Am I able to set a base damage and have the game calculate the actual damage?

hearty shard
#

wdym

barren pasture
#

I want the set the damage that would be dealt if you were in the middle and have it curve from their using the base game for the logic

hearty shard
#

youll have to do the math on the animation curve and change it

barren pasture
#

Damn ok

hearty shard
#

shouldnt be too difficult

barren pasture
#

I have never done anything with animation curves

#

I have no clue where to start

hearty shard
#

grenade._playerDamageOverDistance.keys

#

the time variable is the distance

#

value is the damage amount

#

literally no clue

#

might work

#

@unique crane hey nerd

#

whats the best way of doing this

upper vapor
#

Me when

#

new AnimationCurve(keyframe1, keyframe2)

hearty shard
#

oh

#

lol

upper vapor
hearty shard
#

me when i

hearty shard
upper vapor
#

Omg

barren pasture
#

Huh?

hearty shard
upper vapor
#

Okay

barren pasture
#

Why tho?

hearty shard
#

stylecop

#

i also prefer it

barren pasture
#

fair

upper vapor
#

I hate stylecop
Rider formats it the way I want it, I don't need 1000000 style errors for myself

barren pasture
#

So anyway how do I get the keyframes for AnimationCurve?

hearty shard
#

just do that kek

#

turns out thats good enough

#

or maybe i misunderstood ax

barren pasture
#

I have legit never messed with animation curves

hearty shard
#

me neither

upper vapor
#

Just give it a time and value

hearty shard
#

yea

#

time is distance by magnitude or wtv

#

value is the damage

barren pasture
#

_playerDamageOverDistance is private for me

hearty shard
#

you need to publicize

barren pasture
#

omg

upper vapor
#

Publicize shrug

hearty shard
#

<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.5.0-beta.1" PrivateAssets="all" />

#

<Reference Include="Assembly-CSharp" HintPath="$(SL_REFERENCES)\Assembly-CSharp.dll" Publicize="true" />

celest thorn
#

Hello dead chat Trolley

#

1 nano second without typing

#

is dead

upper vapor
celest thorn
#

a

#

a

hearty shard
#

spammer

#

ban

celest thorn
#

you ruin the fun

#

;(

static meteor
barren pasture
#

What?

untold raft
#

Exist something like ChangingLever event?

#

for Warhead

celest thorn
#

but let me check

barren pasture
#

Can't find an event on warhead for that

celest thorn
#

Nope

#

so patch it ig

#

you could do 2 things

#

patch this BaseNukesitePanel.Networkenabled

upper vapor
celest thorn
#

or use this AlphaWarheadNukesitePanel.ServerInteract

#

and patch one of the 2

#

but i would reccomend to use AlphaWarheadNukesitePanel.ServerInteract

#

because more stable

barren pasture
untold raft
#

ok thx

upper vapor
#

otherwise you won't be able to access those "public" members at runtime

#

You'll get a MethodAccessException or FieldAccessException (idk what they're called exactly)

barren pasture
# hearty shard

(I'm an idiot for not asking this before) How do I set the damage for any of this?

upper vapor
#

Time is distance

#

Value is damage

barren pasture
#

Thanks

plain gazelle
#

how can i get the players floor position?
Maybe my code is dumb but just doing position.y - (scale.y / 2) doesnt produce the intended position and even changes vertically based on the players scale

upper vapor
#

don't divide by 2

#

the player is "anchored" 1 unit above the floor for default scale

plain gazelle
barren pasture
plain gazelle
#

System.Linq missing from dependencies?

barren pasture
#

I have no clue how

upper vapor
#

you're using the .NET 8 SDK...

worthy rune
#

^

barren pasture
barren pasture
upper vapor
#

what video

barren pasture
#

This one

upper vapor
#

ah

#

i've seen that

#

i just didn't get what's going on

barren pasture
#

I made an ender pearl, that's what

pallid galleon
#

Is there an event I can use for the player starting to pick up an item? I tried OnPlayerPickingUpItem and that's just as soon as they actually pick it up

upper vapor
#

playersearching maybe

pallid galleon
#

ty, I'll give that a shot

upper vapor
#

np

pine parcel
#

Is there any way I can override the duration of scp 1344 sprites, how frequently they appear, or how far away they can see?

pine parcel
#

Alas

barren pasture
#

How can I get the serial of a grenade that is trying to cause damage in HurtingEvent?

barren pasture
#

Shit

#

How can I prevent a specific grenade from damaging the thrower?

upper vapor
#

set ForceFullFriendlyFire to false

#

-# maybe

hearty shard
#

u might be cooked

hearty shard
upper vapor
#

yes

hearty shard
#

oh

#

attacker damage handler

hearty shard
#

AllowSelfDamage needs to be false too

upper vapor
#

that

#

i'm stupid

upper vapor
hearty shard
#

and its => true;

upper vapor
#

it's joever

hearty shard
#

but thats not the issue

upper vapor
#

just check if the thrower is the same as the hurt player

hearty shard
#

yes but

upper vapor
#

and cancel

hearty shard
#

that doesnt fix getting serial

#

of a grenade

#

from the damage handler which doesnt have it

#

they wanted it for 1 specific grenade not all

upper vapor
#

well

#

crap

hearty shard
#

cooked

#

patch it

upper vapor
#

crooked

hearty shard
#

also

#

explosion damage handler has an itty bitty issue

#
public ExplosionDamageHandler(
      Footprint attacker,
      Vector3 force,
      float damage,
      int armorPenetration,
      ExplosionType explosionType)
    {
      if (armorPenetration == 0)
        return;
      this.Attacker = attacker;
      this.ExplosionType = explosionType;
      this._force = force;
      this._serverLogsText = DeathTranslations.Explosion.LogLabel + " caused by " + attacker.Nickname;
      BodyArmor bodyArmor;
      this.Damage = BodyArmorUtils.ProcessDamage(!(attacker.Hub != (ReferenceHub) null) || !attacker.Hub.inventory.TryGetBodyArmor(out bodyArmor) ? 0 : bodyArmor.VestEfficacy, damage, armorPenetration);
    }
celest thorn
#

any song recommendation?

terse bone
#

shinedown - killing fields

barren pasture
celest thorn
#

im in a game rn

#

changing song is impossible

barren pasture
#

Fair

barren pasture
hearty shard
#

this line

#

youll also need a custom damage handler

#

well actually

#

you could prefix it and prevent the damage in the first place

celest thorn
#

idk both of the songs remind me of ai generated songs

barren pasture
#

The one I was listening to was sung by Chester, who left the band in 2017

hearty shard
#
private static bool Prefix(IDestructible dest, Footprint attacker, ExplosionGrenade setts)
        {
            if (setts.Info.Serial != 0)
                return true;

            if (!ReferenceHub.TryGetHubNetID(dest.NetworkId, out ReferenceHub hub))
                return true;

            return hub != attacker.Hub;
        }

@barren pasture

#

i cant test but smth like that

#

change the first serial condition

#

to your serials

#

@pseudo python Do not dm me

pseudo python
#

whyt

#

why

hearty shard
#

If you have issue with a plugin that I maintain, create a github issue or send a message in the thread with it

pseudo python
#

update your pink candy plugin then

hearty shard
#

its updated

#

already

pseudo python
#

so why it does not work if u putgted in lab api plugins section

hearty shard
#

show error

pseudo python
#

there is no error but it like dont give me the pink candy tried like 50 candy and none

#

pink

hearty shard
#

and whats the chance set to?

pseudo python
#

how to even st it

#

set it

hearty shard
#

config

pseudo python
#

idk how to even find it

celest thorn
barren pasture
celest thorn
#

it tasted like strawberry ;(

pseudo python
#

@hearty shard u ,eam home container scp sl and the config

barren pasture
#

Well, that's all I can try

hearty shard
#

labapi

#

configs

#

port

pseudo python
#

then

hearty shard
#

candy utils

#

config.yml

pseudo python
#

there is not candy utils or config yml

hearty shard
#

did you install it

pseudo python
#

yes

hearty shard
#

oh new server build wooo

hearty shard
pseudo python
#

no

hearty shard
#

then you didnt install it

pseudo python
#

the plugin is in .config scp sl lab api plugins

hearty shard
#

you put it in herE?

#

and then restarted server?

#

works for me

pseudo python
#

oh not

#

lemme restart rq

icy knoll
#

reminder that this is dev chat and not support

hearty shard
#

they dm'd so i went into first chat i was in and pinged kek

barren pasture
#

Fun fact: Harmony patches work a LOT better when you remember to actually PatchAll

hearty shard
#

trolled

barren pasture
#

I'm just trolling myself at this point

pseudo python
#

btw does anyone know how to fix scriped events

hearty shard
#

afaik they have a discord

pseudo python
#

what now when i restarted it

hearty shard
#

now go to config

#

adjust the chance to 100

#

instead of 3

pseudo python
#

alr

#

why 100?

hearty shard
#

you want to test it works

pseudo python
#

alr

#

did it then what

hearty shard
#

restart and join

#

now use the bowl

pseudo python
#

alr

hearty shard
#

and now you have candy

pseudo python
#

whats the chance?

hearty shard
#

3 by default

hearty shard
pseudo python
#

so now its 100

hearty shard
#

if thats what u set the config value to

pseudo python
#

so it one in 100

hearty shard
#

works for me

pseudo python
#

what that plugin you take a piece of in candy

#

i want it 2 xd

hearty shard
#

the plugin you just installed...

pseudo python
#

alr so will i change it to 3 so it will notg be quaranteed

#

@hearty shard

barren pasture
#

Patching works even better if you include the attribute

barren pasture
pseudo python
#

how to get it like some chances

#

like one in 10

barren pasture
#

Math

#

It's based on percentages

#

100 is 100% of the time

pseudo python
#

so ten is ten

barren pasture
#

1 in 10 is 10%, yes

pseudo python
#

i outted 25 and i did not get any yet

celest thorn
#

dead chat

limber scarab
#

can i add my own 3d model in game like a new gun?

#

is this possible

static meteor
#

not really

limber scarab
hearty shard
#

its not

#

unless you mod client side, which you need to figure out IL2CPP modding

#

also you cant run a verified server then with it

limber scarab
#

il2cpp

#

impossible

hearty shard
#

not rly

#

but it is more annoying

limber scarab
#

idk how to reverse engineering

hearty shard
#

u shouldnt do it anyway

#

unless u plan to only play it w ppl you know already for an event or smth

teal junco
#

i think there are tools for il2cpp unity modding

#

someone gave me recommednations

#

reverse enginering isnt even necessary i dont think, but i wouldnt doubt it would help

limber scarab
#

how do I check all players for scp 173?

#

like if in game 173 spawned then do smth

static meteor
#
                        foreach (Player player in Player.ReadyList)
                        {
                            if (player.Role is PlayerRoles.RoleTypeId.Scp173)
                        }
limber scarab
static meteor
#

Should work

limber scarab
#

ty

icy knoll
#

that’s all you need

limber scarab
#

i cant change default parameters for some weapons?

#

i have tried to use custom items API but I didn't understand anything

hearty shard
#

But ur question was custom models originally , idk about firearms logic not smth i interact with

limber scarab
#

that question was an piece of custom item

hearty shard
#

HUH

limber scarab
#

or with upgraded custom microhid

#

its very important to me, i need this in game (my fren asking)

hearty shard
#

i am traumatized from this chat

limber scarab
limber scarab
turbid spoke
#

Hey i know this isnt plugins but i thought this would be a good place to ask this:

#

My friend is having issues with SCP SL crashing when booting up. It will reach 100% show a few frames of the menu then crash. He has verified the files, reinstalled the game, reset settings, and updated his gpu.

turbid spoke
#

thx

hearty shard
#

Gave them every detail including player log etc

pine parcel
#

I've got a bit of a challenge, I've got a fictional role that is basically an amped up scientist, they spawn with some handicaps as well as some interesting items, but I want to make it so that on death, those items that they start with are destroyed and not dropped. As for my implementation, I tried this:

private void OnPlayerDying(PlayerDyingEventArgs ev)
{
    Player player = ev.Player;
    if (ScienceTeamMembers.Contains(player))
    {
        foreach (var item in ScienceTeamItems)
        {
            try
            {
                player.RemoveItem(item);
            }
            catch { }
        }
        ScienceTeamMembers.Remove(player);
    }
}

however during testing I noticed the items were still dropped. Thoughts?

plain gazelle
#

Not sure about the dropping of the items but just throwing a thought in:
I would loop through player.Items.ToList() instead and check with ScienceTeamItems.Contains(item) and remove the items from the player. That would avoid issues with having the same item multiple times and only one getting deleted

pine parcel
#

interesting shout, I'll give it a go and see if your theory is right!

barren pasture
#

if (room == RoomName.Unnamed)
    return;

var r = Room.Get(room);
var rm = r.ElementAt(UnityEngine.Random.Range(0, r.Count()));

CustomItem.Get("EnderPearl").Spawn(rm.Transform.position + new Vector3(0, 1, 0), ItemType.GrenadeHE);```
```public virtual Pickup Spawn(Vector3 position, ItemType item)
{
    var pickup = Pickup.Create(item, position);
    TrackedSerials.Add(pickup.Serial);
    LabApi.Features.Console.Logger.Debug("Spawned object.");
    return pickup;
}```
My object does not seem to be spawning. What am I doing wrong here? (This is a custom class btw)
teal junco
#

so ur gonna wanna use a unity asset bundle loader to load a bundle with a pink dildo into the game, and use bepinex to inject code into your client side game to make a new item type that uses that model

#

easy peasy

#

i would also recommend decompiling SCP SL to unity project. you wont get any code but you will get a good idea of how it's structured and how to most closely abide by the coding / asset management practices used by NW

true cedar
#

do any of u wanna help test out ruei v3

upper vapor
barren pasture
static meteor
#

Pickup::Spawn();

barren pasture
#

Ok thanks

teal junco
true cedar
barren pasture
true cedar
#

um

#

not really anything

upper vapor
#

At zero toomuchtrolling

true cedar
upper vapor
#

I don't use RueI at all

barren pasture
#

I need to add compatibility between it and my framework anyway

true cedar
#

:3

true cedar
barren pasture
teal junco
upper vapor
teal junco