Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

sjakedudeundefined

sjakedude

@sjakedude
About
Posts
4
Topics
1
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GSC API Guide
    sjakedudeundefined sjakedude

    JezuzLizard Hey thank you so much, this is super helpful information. I will add you on discord, but I probably wont bother you a ton as you have given me a lot to work with. Thanks again


  • GSC API Guide
    sjakedudeundefined sjakedude

    so is there any API guides out there for gsc?


  • GSC API Guide
    sjakedudeundefined sjakedude

    Hello,

    So I am pretty new to this Plutonium stuff, but I have been messing around with console commands and I have some 'big' plans for a custom Gun Game server for me and my gf but in order to do that I need some knowledge gaps filled in.

    I am aware that there are these scripts called "gsc scripts" that we can add to our /storage/t5/scripts directory, and these will run as soon as a game is launched (like running map mp_nuked). I made this simple test_script.gsc that looks like this:

    main()
    {
        print("YO");
        self thread MessagePrinter();
    }
    
    MessagePrinter()
    {
    
    	while (1)
    	{
    	  if(self MeleeButtonPressed())
    	  {
    		print("IN MESSAGE PRINTER!!!");
                    wait 1;
    	  }
    	wait 0.05;
    	}
    }
    

    With this, I get many log messages in the console like this:

    alt text

    Pretty exciting huh? Well... I have bigger goals than this. And also, the log message prints whether or not I am pressing the melee button so there's that. I guess for some reason self MeleeButtonPressed() is resolving to True even though I have not pressed anything.

    1. What is the purpose of this github repo? It seems to be a TON of scripts for T5, but are we supposed to have all of these downloaded and put into our local script directory? Or are these just examples to reference?

    2. Where can I find an API for all the different listener methods there are in gsc scripts? For instance, I have seen some scripts with functions like this:

    OnPlayerSpawned()
    {
       self thread GiveMoney();
    }
    

    I assume this method will be called when any player spawns into the game? Where can I find the docs on what exactly these key words mean?

    I have a lot of programming experience as I code full time for a living, so I will just need a bit of direction here and I will be off scripting away!

    Maybe if someone is willing to explain this over a discord call that would be better. Let me know.

    Thanks!


  • Combat Training lag
    sjakedudeundefined sjakedude

    You are using a T5 server to run combat training? I was unaware that this was possible. Are you playing with plutonium or launching the game through steam?

  • 1 / 1
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate