Author Topic: Trash can weapon  (Read 2991 times)

i remember a while ago Bushido had an idea for a trash can gun that shoots garbage and it fills up all of your inventory slots with garbage if you get hit. and in order to get your weapons back you have to drop all of the garbage
if anybody wants to script this be my guest because i give up

I would love to script it.

if you could make some script that just makes a projectile cover the players entire inventory in a certain item, and when you drop it your original item is put back in the slot. unless you need all my assets in advanced i can give them to you

You mean when I activate the item it fills the inventory list with other options?

basically, when the trash can weapons projectile hits someone, that victim gets every single inventory slot replaced by an item called 'trash.' (or maybe just one random inventory slot). and in order to get their weapon back, they have to drop the trash item from their inventory, and their weapon gets put back in their inventory.
« Last Edit: October 25, 2017, 11:02:27 PM by Trogtor »

basically, when the trash can weapons projectile hits someone, that victim gets every single inventory slot replaced by an item called 'trash.' (or maybe just one random inventory slot). and in order to get their weapon back, they have to drop the trash item from their inventory, and their weapon gets put back in their inventory.
you dont even have to pick out the item data in that case - just replace the item db id’s in the player inventory, call the relevant item pickup code so the client sees the correct items, and on drop replace the item slot with the original item db id. inventory items arent actually items - just db references - so all the “item” data is actually stored on the player object using array-like variable formatting