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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Zombie blood to double points in origins

Zombie blood to double points in origins

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
2 Posts 2 Posters 174 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.
  • Babbel2004undefined Offline
    Babbel2004undefined Offline
    Babbel2004
    wrote on last edited by Babbel2004
    #1

    I've wanted to change the zombie blood to double points in Origins on my dedicated server. However I have no clue how. I've tried making this script with chatgpt but the script didnt work. Chatgpt says that the entity names might be off. Anyone know what the entity names of double_points zombie_perk and/or spawnBox are? Thanks in advance!

    The script:

    // main.gsc
    
    #include common_scripts\utility;
    #include maps\mp\_utility;
    #include maps\mp\zombies\_zm_utility;
    
    main()
    {
        if ( GetDvarInt( "scr_disablePlutoniumFixes" ) )
        {
            return;
        }
    
        // Existing code...
        
        level thread setup_perk_override();
    }
    
    setup_perk_override()
    {
        // Ensure this script runs only in solo mode
        if ( level.numPlayers == 1 )
        {
            level thread change_perk_in_spawn_box();
        }
    }
    
    change_perk_in_spawn_box()
    {
        // Wait for the map to be fully loaded
        wait 5;
    
        // Find the spawn box entity (adjust the entity name as needed)
        spawnBox = getEnt("spawn_box", "targetname");
    
        // Check if the spawn box is found
        if (isDefined(spawnBox))
        {
            // Change the perk to Double Points
            spawnBox.zombie_perk = "double_points";
        }
    }
    
    1 Reply Last reply
    0
    • JezuzLizardundefined Offline
      JezuzLizardundefined Offline
      JezuzLizard
      Plutonium Staff
      wrote on last edited by
      #2
      main()
      {
      		func = GetFunction( "maps/mp/zm_alcatraz_utility", "check_solo_status" );
      
      		if ( !isDefined( func ) )
      		{
      			func = GetFunction( "maps/mp/zm_tomb_utility", "check_solo_status" );
      		}
      
      		if ( isDefined( func ) )
      		{
      			replaceFunc( func, ::check_solo_status_override, 1 );
      		}
      }
      
      check_solo_status_override()
      {
      	level.is_forever_solo_game = true;
      }
      

      Just put this in a script in scripts/zm
      It works because we are just overriding the detour placed by Plutonium in the ranked.gsc by setting the priority of our replacefunc to be higher by using a value higher than -1 in the third argument.

      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