Skip to content

Added GivePlayerStuff functions.

username-removed-143684 requested to merge Lyberta/GivePlayerAmmo into master

The item system is pretty complicated so I've added straightforward functions to give player some health, armor or ammo: GivePlayerHealth, GivePlayerArmor, GivePlayerAmmo and GivePlayerFuel.

Also, I've started refactoring the code to make a unified resource system where each resource is treated with the same code. Currently, I've added GivePlayerResource that will handle giving resources to players. GivePlayerHealth, GivePlayerArmor and GivePlayerFuel call GivePlayerResource. It will be refactored later to add stuff such as mutator hooks and ammo regeneration in the next MR.

Edited by username-removed-143684

Merge request reports