GSC Scavenger Heaven

BullyWiiPlaza

Modder
Messages
214
Points
593
This script makes everyone in the lobby drop scavenger bags and also gives them the Scavenger perk so that they can pick up the dropped bags.

Code:
toggleScavengerHeaven()
{
    level.scavengerHeaven = invertAndPrint("Scavenger Heaven", level.scavengerHeaven, true);

    if(level.scavengerHeaven)
    {
        thread scavengerHeaven();
    }
    else
    {
        stopScavengerHeaven();
    }
}

stopScavengerHeaven()
{
    level notify("stopScavengerHeaven");
}

scavengerHeaven()
{
    level endon("game_ended");
    level endon("stopScavengerHeaven");

    while(true)
    {
        foreach(player in level.players)
        {
            if(isAlive(player))
            {
                player setPerk("specialty_scavenger");

                // Drop a Scavenger bag
                item = player dropScavengerItem("scavenger_item_mp");
                item thread maps\mp\gametypes\_weapons::scavenger_think();
            }
      
            wait 0.2;
        }
  
        wait 0.5;
    }
}
Note:
Before you just copy and paste this, you have to know that it uses my printing utilities so include those functions in your GSC. Also
You do not have permission to view link Log in or register now.
for the original script/idea.

Example video of the mod in action:

Enjoy :grinning:
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,616
Points
828
A nice Idea, I love that, that you everytime do some new stuff. :smile: That's awesome! :y:
 

The Dark Side

Former Staff Member
Messages
1,010
Points
768
I asked this question on the last thread, where is invert and print being called from? I cant use this unless i have your code...
 

Top