#SCP079RadioHack

1 messages · Page 1 of 1 (latest)

ionic ivy
#

A plugin for SCP: Secret Laboratory that allows SCP079 to hack into the NTF radio.

Plugin comes with 2 simple commands:

scp079radio hack will put 079 into hack modus. This will suppress 079's normal proximity chat speaker and instead allow 079 to talk and listen to the radio item.

scp079radio proxy will toggle the proxy. By default on, if turned off 079's portrait will show up when talking.

https://github.com/SareanAka/SCP079RadioHack-LabAPI

GitHub

A plugin for SCP: Secret Laboratory that allows SCP079 to hack into the NTF radio. - GitHub - SareanAka/SCP079RadioHack-LabAPI: A plugin for SCP: Secret Laboratory that allows SCP079 to hack into ...

craggy inlet
#

wait this is cool

worldly turret
#

This is peak

shell karma
#

This is the thing i kept thinking about making

#

ty for this

#

its fire

formal swift
#

Oh since you were down for some tips

#

@ionic ivy I wouldn't use CC licenses for code

#

They're not made for it and it's not exactly the best for a plugin

#

I'd go with the MIT license probably

ionic ivy
#

Ah, thanks

ionic ivy
#

changed it.

#

if you want any features added, lemme know and I'll think about it.
It's my first plugin so I got a lot of figuring out to do, but I'd like to make this into a good plugin

wicked garnet
#

Would it be possible to add the normal Radio voice effect for 079 when speaking through the radio or is this not possible?

formal swift
#

afaik not possible

ionic ivy
wicked garnet
#

Ah that’s unfortunate. But I do respect the attempt! We did have a lot of fun with the plugin tho it’s a really cool idea. Even without the radio effect it’s a very ominous thing to suddenly hear someone in clear voice speaking to you

shell karma
#

i think theres potential with a proxy, mostly with fake pos

ionic ivy
ionic ivy
#
private static ReferenceHub EnsureProxy(string spoofedName)
        {
            if (_radioProxy != null && _radioProxy)
                return _radioProxy;

            if (_proxySpawning)
                return _radioProxy; // another packet is already spawning it

            _proxySpawning = true;
            try
            {
                var dummy = DummyUtils.SpawnDummy(spoofedName);
                _radioProxy = dummy; // assign immediately to avoid spawn storms

                dummy.transform.position = new Vector3(40f, 315f, -32f);

                // neutral role
                var roleManager = dummy.roleManager;
                roleManager.ServerSetRole(RoleTypeId.Tutorial, RoleChangeReason.None, RoleSpawnFlags.None);


                // hide from spectators via wrapper
                var p = Player.Get(dummy);
                if (p != null)
                p.IsSpectatable = false;
                p.UserGroup = null;

                LabApi.Features.Console.Logger.Info("Configured 079 radio proxy.");

                if (dummy.nicknameSync != null)
                    dummy.nicknameSync.Network_myNickSync = spoofedName;
            }
            catch (Exception ex)
            {
                LabApi.Features.Console.Logger.Error($"Failed to spawn/configure 079 radio proxy: {ex}");
            }
            finally
            {
                _proxySpawning = false;
            }

            return _radioProxy;
        }

And they I use it like this:

...
var speakerProxy = EnsureProxy(ev.Player.Nickname);
...
var radioMessage = new VoiceMessage(speakerProxy, channel, ev.Message.Data, ev.Message.DataLength, false);
player.Connection.Send(radioMessage, 0);
#

@shell karma Let me know if you got a solution

shell karma
ionic ivy
#

Either way, if you find a potential fix lemme know, Cuz I spent like 8 hours trying to fix this and in the end I was forced to go with the RoundSummary chat

shell karma
ionic ivy
#

ohh, haven't tried that

#

no idea how I would do that

shell karma
#

neither do i, but id probably look at exiled's player wrapper

#

and network extensions

#

theres a lot on it about faking positions

ionic ivy
#

hmm, I'll check it maybe soon. But thanks for the tips

frank yoke
#

@ionic ivy how exactly are u meant to hack the radios?

ionic ivy
#

Using the console

#

.scp079radio hack