Garry's Mod

Garry's Mod

SCP Site 09
 Toto téma bylo přilepeno, takže je nejspíš důležité
KiwontaTv  [vývojář] 4. led. 2024 v 3.27
SCP-914
Introduction

As of now, cimelody created a working SCP-914 addon for you to use. Please visit the workshop item for further information on how to set this up.

---

Site 09 features SCP-914. However, it doesn't do anything on its own. For that, you need lua code. Unfortunately I can't provide the full addon, since it is exclusive to the German SCP-RP server by Modern-Gaming.

SCP-914 will create lua errors when used without a script. I sadly cannot change that fact since "killing" support for 914 mapside will cause any additional lua setup to stop working aswell.

Stop the lua errors

If you just want to stop lua errors from happening, create a serverside script with the folowing content:

MG_SCP914 = {}

Documentation for creating your own SCP-914 addon

If you want to create your own addon, here is what you need:

Site 09 will run a hook whenever a mode is changed. The hook is called "MG_SCP914_ModeChanged". When the start button is pressed, the map calls another hook called "MG_SCP914_ProcessOutput".

You can detect the modes by accessing the MG_SCP914.Mode variable. Keep in mind that you need to create the table "MG_SCP914". You cannot change the name because the map wouldn't recognize the new name, resulting in an error.

The variable has the following states: 'Rough', 'Coarse', '1:1', 'Fine' and 'Very Fine'. Yes, they are case sensitive.

Lastly, to access the items inside SCP-914, you need to scan for them using ents.FindInSphere or ents.FindInBox depending on your skillset and the targetname "914_intake_teleporter". The output should get teleported without any issues. If you face any issues of items being stuck in the floor, manipulate the position to place them higher.
Naposledy upravil KiwontaTv; 9. čvn. 2024 v 10.01
< >
Zobrazuje se 13 z 3 komentářů
Hey,
If anybody is to lazy to create his own SCP-914 script, I created a addon for it. It isn't the best but it should do his job: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3154762587
@KiwontaTV. Wäre es vielleicht möglich, dass du den Text von den Hyperlink, wo du mich wegen SCP-914 angeben hast, zu meinen neuen Steam Namen ändern. Danke :)
KiwontaTv  [vývojář] 9. čvn. 2024 v 10.01 
cimelody původně napsal:
@KiwontaTV. Wäre es vielleicht möglich, dass du den Text von den Hyperlink, wo du mich wegen SCP-914 angeben hast, zu meinen neuen Steam Namen ändern. Danke :)
Done
< >
Zobrazuje se 13 z 3 komentářů
Na stránku: 1530 50