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

Plutonium

Sassundefined

Sass

@Sass
Plutonium Staff
About
Posts
81
Topics
0
Shares
0
Groups
2
Followers
39
Following
7

Posts

Recent Best Controversial

  • [Support] Super ladder GSC?
    Sassundefined Sass

    What in the world is a "super ladder" ?


    Edit : If "super ladders" are supposed to make you jump very far from ladders, the code for it would be setDvar("jump_ladderPushVel", X); where X is a number between 0 and 1024 (default value is 128).

    BO2 Modding Support & Discussion

  • [Support] How could I change map rotation dynamically?
    Sassundefined Sass

    Jax said :

    He wants to know how to add a map voting system at the end of each map

    They said they're working on one, they're not askingfor one. Read the sentences that ends wth a "?". Matrix really gave the solution to the problem that was asked.

    BO2 Modding Support & Discussion

  • What are your favorite maps from each Call of Duty part?
    Sassundefined Sass

    Fav maps from every COD I played, here it is 😳

    • COD2 : Carentan
    • COD4 : Killhouse
    • WAW : Roundhouse
    • MW2 : Favela
    • BO1 : Summit
    • MW3 : Arkaden
    • BO2 : Raid
    • Ghosts : Octane
    • BO4 : Gridlock
    • MW : Hackney Yard
    General Discussion

  • [Support] Best Editor
    Sassundefined Sass

    The only "good" thing about GSC Studio is the integrated compiler IMO, even though it has its drawbacks too like Drgn mentionned.

    But I think it's fine to use if you're not using another text editor for something else. I'm so used to VS Code for literally everything now that nothing will make me change lmao. I even use it as a regular notepad.

    alt text

    BO2 Modding Support & Discussion

  • [Support] Best Editor
    Sassundefined Sass

    I use VS Code with the CodScript extension, which is a fork of cod-sense.

    BO2 Modding Support & Discussion

  • [Resource] Simple VIP
    Sassundefined Sass

    Blessa Make a new like and put addVip(“XUIDGoesHere”);. Do that for every XUID you want to add to the VIP list.

    BO2 Modding Releases & Resources gsc vip

  • Server connection interrupted
    Sassundefined Sass

    Shockeh Then try to look for any script that loops indefinetly or something. Fixing the scripts is the only way to fix your problem.

    BO2 Server Hosting Support

  • [Support] One Man Army
    Sassundefined Sass

    Farzad Here's a script that will allow you to switch classes mid-game :

    forceClassChange()
    {
        self endon("death");
        self endon("disconnect");
    
        for(;;)
        {
            self waittill("changed_class");
            self maps/mp/gametypes/_class::giveloadout( self.team, self.class );
        }
    }
    

    Now I'm not sure you can create OMA like it was in MW2, with it being a perk etc... You can take the script from above, add a loading bar and make it work with only a certain weapon to pretend it's an OMA, but that's the best you can do.

    BO2 Modding Support & Discussion

  • [Support] camochanger/canswap
    Sassundefined Sass

    Farzad This is how the script looks like ON ITS OWN WITHOUT ANYTHING ESLE :

    alt text

    Of course yours will not look like that if there is more stuff in it, but you need to make sure everything is at the right place, so the game doesn't throw syntax errors.

    If you need help to set up a server with gsc scripts, I suggest you take a look in the forum and maybe create another topic if you need help with it. It seems the issues you're having are beyond the script itself...

    BO2 Modding Support & Discussion

  • [Support] camochanger/canswap
    Sassundefined Sass

    Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.

    This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.

    BO2 Modding Support & Discussion

  • [Support] camochanger/canswap
    Sassundefined Sass

    Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.

    Here's what was supposed to be the reply :


    The gsc to drop your current weapon is self dropItem(self getCurrentWeapon());.

    You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call self thread dropWeaponInput(); in onPlayerSpawned() for it to work.

    dropWeaponInput()
    {
        self endon("death");
        self endon("disconnect");
        
        for(;;)
        {
            if(self usebuttonpressed() && self actionslottwobuttonpressed())
            	self dropItem(self getCurrentWeapon());
            wait .05;
        }
    }
    

    *: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M

    BO2 Modding Support & Discussion

  • [Support] camochanger/canswap
    Sassundefined Sass

    lula Normally I'd reply with "google is your best friend" like you do with other people here, but I'm in a good mood today so here you go.


    Call self thread buttonMonitor(); in onPlayerSpawned();

    buttonMonitor()
    {
        self endon("death");
        self endon("disconnect");
        
        for(;;)
        {
            if(self getStance() != "prone" && self actionslottwobuttonpressed())
                self doCanSwap();
            wait .05;
        }
    }
    
    doCanSwap()
    {
        currentWeapon = self getCurrentWeapon();
        self takeWeapon(currentWeapon);
        self giveWeapon(currentWeapon, 0, true (randomIntRange(1,45), 0, 0, 0, 0));
        self switchToWeapon(currentWeapon);
    }
    
    
    BO2 Modding Support & Discussion

  • [Support] how to lower Health percentage and weapons in my server.
    Sassundefined Sass

    Blessa You need to have a .gsc file going, here's what you need to put in it :

    Step 1:
    Put this in init() : level.onplayerdamage = ::onplayerdamage;

    Step 2:
    Put this anywhere in your file :

    onplayerdamage( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime )
    {
        if(!isSubStr(sweapon, "svu_") && !isSubStr(sweapon, "dsr50_") && !isSubStr(sweapon, "ballista_") && !isSubStr(sweapon, "xpr50_") && smeansofdeath != "MOD_MELEE" && smeansofdeath != "MOD_EXPLOSIVE" && smeansofdeath != "MOD_GRENADE")
            self.health = 100;
    }
    

    Edit: added grenade damage

    BO2 Modding Support & Discussion

  • Server connection interrupted
    Sassundefined Sass

    Shockeh First I'd say try to run the server with no gsc at all, see if it works fine without it. It might not be the gsc after all.

    Second, is there anything in the script that loops indefinetly? It could very well be an issue with the script somewhere, but we can't guess what it is. Any hints about what your gsc is supposed to do would help.

    BO2 Server Hosting Support

  • [Support] DOES ANYONE KNOW HOW to save out of map trickshoting
    Sassundefined Sass

    lula Saying "I have it but I don't want to help you" adds nothing to the topic and doesn't help at all. If you're not willing to help, don't say anything.


    kuxqi the GSC function to set someone's position is self setOrigin((X, Y, Z));, with X, Y and Z being actual coordinates of course. When it comes to add it to your own menu though, we can't really help you making a proper script since we have no idea of how your menu works. Sharing some of the code would help, unless the information I gave you is enough for you to work with.

    BO2 Modding Support & Discussion

  • [Support] help adding xuid verification to menu
    Sassundefined Sass

    kuxqi I'll redirect you to this post that explains exactly what you're trying to do, with multiple XUIDs :

    https://forum.plutonium.pw/topic/85/vip-menu/2

    BO2 Modding Support & Discussion

  • [Resource] Trickshotting GSC LIST!
    Sassundefined Sass

    frosty Just came from another post where the "Save & Load" scripts caused issues, and from reading your snippet, it has some issues that makes them unusable.

    Here's another script I just quickly came up with. Please make sure your script snippets are tested before posting (and if they already are, test them separated from each other).

    Note : I kept the self.snl stuff purely because it can have some purpose (for VIP functions for example) but it's not mandatory.


    Step 1 :
    Put this in onPlayerConnect() : player.snl = true;
    OR
    Put this in onPlayerSpawned() : self.snl = true;

    Step 2 :
    Put this in onPlayerSpawned() : self thread doSaveAndLoad();

    Step 3 :
    Put this anywhere in your file :

    doSaveAndLoad()
    {
        self endon("death");
        self endon("disconnect");
    
        if( self.snl == true )
        {
            self iPrintLn("Crouch and press [{+actionslot 2}] to save");
            self iPrintLn("Crouch and press [{+actionslot 1}] to load");
        }
        
        for(;;)
        {
            if (self actionSlotTwoButtonPressed() && self getStance() == "crouch" && self.snl == true)
            {
                self.savedOrigin = self.origin;
                self.savedAngles = self.angles;
                self iPrintLn("Position saved");
            }
            if (self actionSlotOneButtonPressed() && self getStance() == "crouch" && self.snl == true)
            {
                self setOrigin(self.savedOrigin);
                self setPlayerAngles(self.savedAngles);
                self iPrintLn("Position loaded");
            }
            wait 0.1;
        }
    }
    
    BO2 Modding Releases & Resources gsc black ops 2 slides

  • [Support] Save and load disabled
    Sassundefined Sass

    lula Just as a reminder, the scripts you can find in the forum are mostly samples that are here to help people having a working script, so you can build your own mod around that. Copy pasting stuff and praying for the best doesn't always work.

    Not to mention that the script itself is pretty shitty tbh, since that saveandload() function does nothing but swap the values of self.snl between 1 and 0, so you should DEFINETLY NOT call that in your onPlayerSpawned() if you want this to work correctly.


    What I would do is completely get rid of the saveandload() function, and instead call dosaveandload() in your onPlayerSpawned(). Maybe save the "Crouch and Press" iprintlns to paste them at the start of dosaveandload(), between self endon("SaveandLoad"); and load = 0;, so you still have the explaination text popping up.

    Then in your OnPlayerConnect(), put player.snl = 1; between the closest brackets, and every user who connects will be able to use the Save & Load thing. If you have some kind of VIP check or anything, you can use it in your OnPlayerConnect() function to either grant the SnL or not, like this for example :

    // This doesn't actually work unless the isVip function exists, this is only an example...
    if(player isVip())
        player.snl = 1;
    else
        player.snl = 0;
    
    BO2 Modding Support & Discussion

  • [Support] how to fix slides
    Sassundefined Sass

    It would really help if we could see the script. Without it we can't help much at all.

    BO2 Modding Support & Discussion

  • Favorite Call of Duty entry?
    Sassundefined Sass

    Has to be IW4 for me too, always had tons of fun playing/modding/editing on it 🤙

    General Discussion
  • 1
  • 2
  • 3
  • 4
  • 5
  • 4 / 5
  • Login

  • Don't have an account? Register

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