This project was done in a team of 5, two artists and three programmers. It was made in unity and over a period of 4 months in which we started from scratch.
I was the coordinator of this project, I planned deadline's and divided the programming inbetween me and the 2 other programmers on this team.
I wrote the invisibility feature, the menus, a couple of weapons, the pickups system and some other small things.
This controlled the pickups. They spawned on a random location out of list of positions, there were never more then 3 available at a time and the respawn time was random as well.
This is the codeblock of what happened when the shotgun was shot.