I would like to figure out how to remove all of the items/pickups from a map, but not those that are in player inventory.
What I want it to do is spawn a player with adjustable items/health/armour, and not be able to improve this by picking up further items, yet use normal/standard DM maps to do this on. So need to remove the other stuff that is already on the map.
I've had a look at the code for the Last Man Standing mod, and I can't figure out how it removes the pickups at all (must be stupid, but I can't see where it removes them). So I continued looking elsewhere, for example the Arena mutator, but the checkreplacement function seems to destroy all instances of the items to be removed (including those carried by the player). Yet I can't seem to get into PreBeginPlay or InitGame which something like SiegeXXL uses to remove all pickups from the game. Any bright ideas?
What I want it to do is spawn a player with adjustable items/health/armour, and not be able to improve this by picking up further items, yet use normal/standard DM maps to do this on. So need to remove the other stuff that is already on the map.
I've had a look at the code for the Last Man Standing mod, and I can't figure out how it removes the pickups at all (must be stupid, but I can't see where it removes them). So I continued looking elsewhere, for example the Arena mutator, but the checkreplacement function seems to destroy all instances of the items to be removed (including those carried by the player). Yet I can't seem to get into PreBeginPlay or InitGame which something like SiegeXXL uses to remove all pickups from the game. Any bright ideas?