Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial dropScavengerBag
#1
Hello

This is something I found on the files of the OMA Zombies 2 I was making, I used it to make Zombie Drops Big Grin, it works like this:

Code:
dropScavengerBag( "scavenger_bag_mp" )

MP default scavenger bag spawn is:

Code:
dropBag = self dropScavengerBag( "scavenger_bag_mp" );    
dropBag thread maps\mp\gametypes\_weapons::handleScavengerBagPickup( self );

But you can of course make your own pick up system:

Code:
dropbag = self dropScavengerBag( "scavenger_bag_mp" );    
dropbag thread PickUpDrops( "oma" );

PickUpDrops( type )
{
    self waittill( "scavenger", player );    
    player playLocalSound( "scavenger_pack_pickup" );
    player maps\mp\gametypes\_damagefeedback::updateDamageFeedback( "scavenger" );
    switch( type )
    {
        case "thumper":
            self giveWeapon( "m79_mp", 0, false );
        break;
        case "oma":
            self giveWeapon( "onemanarmy_mp", 0, false );
        break;    
    }
}

One thing I havent tried is to change the "scavenger_bag_mp" inside the command, maybe by changing it to another weapon it changes the model or something. Smile

Thanks, @Yamato
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.