ItsMods
[Tutorial] dropScavengerBag - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Tutorial] dropScavengerBag (/Thread-Tutorial-dropScavengerBag.html)



dropScavengerBag - Yamato - 05-21-2012

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