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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. need help with a gsc file that makes it to where you get Paralyzer first box hit.

need help with a gsc file that makes it to where you get Paralyzer first box hit.

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

    Ive tried many things and they just wont work ive made a gsc file that somebody said worked but didnt work for me, I could really use the help.

    1 Reply Last reply
    0
    • codywp92 Online
      codywp92 Online
      codywp92
      wrote last edited by
      #2

      https://forum.plutonium.pw/topic/44070/i-need-help-with-mod-that-gives-you-paralyzer-on-first-box-hit-buried?_=1785912834400

      1 Reply Last reply
      0
      • codywp92 Online
        codywp92 Online
        codywp92
        wrote last edited by codywp92
        #3

        Try this, the box perma-perk was the culprit I believe since it calls a different box function than the default.

        #include maps\mp\zombies\_zm_magicbox;
        #include common_scripts\utility;
        
        main()
        {
            replaceFunc(maps\mp\zombies\_zm_magicbox::treasure_chest_chooseweightedrandomweapon,::new_treasure_chest_chooseweightedrandomweapon);
        }
        
        init()
        {
            level thread onplayerconnect();
            level.pers_box_weapon_lose_round = 1;
        }
        
        onplayerconnect()
        {
            for(;;)
            {
                level waittill("connected", player);
                player thread onplayerspawned();
            }
        }
        
        onplayerspawned()
        {
            self endon("disconnect");
            for(;;)
            {
                self waittill("spawned_player");
            }
        }
        
        new_treasure_chest_chooseweightedrandomweapon( player )
        {
            keys = array_randomize( getarraykeys( level.zombie_weapons ) );
        
            if ( isdefined( level.customrandomweaponweights ) )
                keys = player [[ level.customrandomweaponweights ]]( keys );
            
            pap_triggers = getentarray( "specialty_weapupgrade", "script_noteworthy" );
        
            for ( i = 0; i < keys.size; i++ )
            {
        	if ( level.chest_accessed == 0 && level.script == "zm_buried")
        	{
        	    if ( treasure_chest_canplayerreceiveweapon( player, "slowgun_zm", pap_triggers ) )
        		return "slowgun_zm";
        	}
        	if ( treasure_chest_canplayerreceiveweapon( player, keys[i], pap_triggers ) )
        	    return keys[i];
            }
            return keys[0];
        }
        
        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        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
        • Unread 0
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Donate