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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [ZM] Starting Points 25,000 and Every Five Rounds to be Rewarded 3,500 Points!

[ZM] Starting Points 25,000 and Every Five Rounds to be Rewarded 3,500 Points!

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 26 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.
  • Coronavirus-19undefined Offline
    Coronavirus-19undefined Offline
    Coronavirus-19
    wrote last edited by Coronavirus-19
    #1

    To add this script first copy n' paste this code into Notepad++ then save it as a ".txt" after edit the change ".txt" to ".gsc" -- if you don't know how to do that open up a random folder look for "View" at the top and click it. A drop down menu should appear and you'll see "Show" at the bottom, click it and you'll see "File name extension" and should be able to change ".txt" to ".gsc"

    --You can name the file whatever you want, just make sure it ends with ".gsc"

    After the File name extension change add the ".gsc" to the Plutonium folders by:
    Win + R and Run "%localappdata%" then search for "Plutonium" and go the folders as shown: Local/Plutonium/storage/t6/scripts/zm

    #include common_scripts\utility;
    #include maps\mp\_utility;
    
    init()
    {
        level thread onPlayerConnect();
        level thread onRoundStartBonus(); // Global round start tracking
    }
    
    // Give every player 25,000 when they spawn for the first time
    onPlayerConnect()
    {
        for (;;)
        {
            level waittill("connected", player);
            player thread giveStartingPoints();
        }
    }
    
    giveStartingPoints()
    {
        self endon("disconnect");
        level endon("game_ended");
    
        self waittill("spawned_player");
    
        if (!isDefined(self.got_starting_points))
        {
            self.got_starting_points = true;
            self.score = 25000;
            self IPrintLnBold("Starting Points: 25,000");
        }
    }
    
    // Reward +3,500 at the start of every 5th round
    onRoundStartBonus()
    {
        level endon("game_ended");
    
        for (;;)
        {
            level waittill("start_of_round");
            roundNumber = level.round_number;
    
            // Check if this round is a multiple of 5 (5, 10, 15, etc.)
            if (roundNumber % 5 == 0)
            {
                foreach (player in level.players)
                {
                    if (isDefined(player))
                    {
                        player.score += 3500;
                        player IPrintLnBold("Round " + roundNumber + ": Bonus +3,500 Points!");
                    }
                }
            }
        }
    }
    
    
    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