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

Plutonium

RawestBrownieundefined

RawestBrownie

@RawestBrownie
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
7
Following
9

Posts

Recent Best Controversial

  • GSC for custom games
    RawestBrownieundefined RawestBrownie

    so I wanted to try out these gsc's one that i got off github and one i made

    heres the one I made it's a slide for trickshotting and some reason i have to do the exec command in plutonium and it still doesnt work i want to be able to do it kinda like dojahs ts server.
    if this doesnt look like it would work could someone please send me the correct script and id also like to implement it into vanityts.gsc if possible

    main()
    {
        level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
        for(;;)
        {
            level waittill("connected", player);
            player thread monitorButtonPress();
        }
    }
    
    monitorButtonPress()
    {
        self endon("disconnect");
    
        for(;;)
        {
            // Wait until both 'B' (button_b) and 'Left' on the D-pad (dpad_left) are pressed
            self waittill("button_pressed", "+stance"); // 'B' button is typically the 'stance' button
            self waittill("button_pressed", "dpad_left");
    
            // Call the slide spawn function
            self thread spawnSlide();
    
            // Add a delay to avoid multiple rapid spawns
            wait 0.5;
        }
    }
    
    spawnSlide()
    {
        // Spawn the slide at the player's current location
        slide = spawn("script_model", self.origin);
        slide setModel("com_plasticcase_friendly"); // Placeholder model; change to any desired model
        slide.angles = self.angles; // Align with the player's direction
        
        // Apply custom properties to the slide if needed
        slide.knifeTrigger = true;
        
        // Optional: Store the slide for future reference if needed
        self.slides = self.slides + [slide];
        
        self iprintlnBold("^2Slide spawned!");
    }
    

    also heres a screenshot of where i have it
    3f3c23f3-7937-426a-85e7-21289c8d1fd6-image.png

    BO2 Modding Support & Discussion
  • 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