Example of how the hud looks
Creating this gamemode took me a lot of time and there are a lot of different ways to go with this gamemode. I created an example gamemode with the buy system, but you can also use this for any other gamemode. The basic foundations of the gamemode can be used by everyone who's looking to implement an ingame shop. I put a lot of information in the workshop description about what I did. If there are people interested in a more in-depth explanation, I'm happy to help.
How it works:
You pick a hero at the beginning of the match and that'll be your hero for the whole game. You can't use any of your abilities, but you can unlock them by buying them in the shop. You can also buy upgrades like: higher max health, increased damage dealt, increased movement speed or automatic health regen. The upgrades have different prices depending on how good they are.
How can I buy the upgrades?
When you're in the spawn room you can cycle trough the shop by pressing the interact button. You can see in the top left your money, what the upgrade is about and the price of the upgrade. If you want to buy something, you have to press the interact button while holding the crouch key to buy it.
How do I get money?
Everyone start with 2500 money. You earn money by dealing damage or killing someone. If you kill someone that has bought a lot of upgrades you'll get more money than killing the same hero with less upgrades. This is for game balance.
The damage to money system works tick based. This means that if you hit someone and at the same time he gets healed, there is a chance that you'll lose money. In my play testing I would say that the damage to money factor for this reason is about 0.9, while I programmed it to be 1.
Healing players doesn't give you money. It was my intention to do so, but the commands won't let you do so. (There is a event 'player dealt damage', but no function 'player gave health'.)
Some messages of what you want to buy in the shop are a bit cryptic, because you aren't able to write own strings. I suggest that you read the workshop description of the upgrades first.
The action 'destroy all hud text' in order to show the next upgrade, will make the hud for anyone invinsible except for the person who pressed interact.
When blizzard finally fixes that you can modify ult charge. Make it so that the ult charge percentage gained is added to the variable M, money, and then reset the ult charge to 0%. This however means no ults in the game.
Other possible gamemodes:
Call of Duty zombies: Each hits gives 10 points, a kill gives 60 points. You can perks with the points or better weapons/weapon upgrades.
Point race: First who gets 100000 points can buy the win.
Source: Original link
© Post "I created an ingame shop system where you can buy upgrades with money that you earn throughout the match" for game Overwatch.
Top-10 Best Video Games of 2018 So Far
2018 has been a stellar year for video game fans, and there's still more to come. The list for the Best Games of So Far!
Top-10 Most Anticipated Video Games of 2019
With 2018 bringing such incredible titles to gaming, it's no wonder everyone's already looking forward to 2019's offerings. All the best new games slated for a 2019 release, fans all over the world want to dive into these anticipated games!