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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. GSC for custom games

GSC for custom games

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 152 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RawestBrownieundefined Offline
    RawestBrownieundefined Offline
    RawestBrownie
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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