Allows members of either team (Survivors or Infected) to make purchases relevant to them. Purchases are made through points which are gained by aiding one's team.
Description
This is a fork from McFlurry's Points System. It re-introduces the ps_bess.sp module and corrects several issues in both the plugin and the module. If you are unaware of the plugin's functionality, it simply allows members of either team (Survivors or Infected) to make purchases relevant to them. Purchases are made through points which are gained by aiding one's team.
Feature List
Purchase items through a menu
Purchase items through chat based commands e.g. !buy pills (requires ps_bess.smx)
Command List
Code:
• buy: Opens a menu which lists items available for purchase
• buystuff: Alias to buy command
• repeatbuy: Purchase the last item bought once again
• points: Display your current points
• heal: Admin command. Heals a player instantly. Not to be confused with heals through the !buy command
• setpoints: Admin command. Sets the points of a player to a given value
• givepoints: Admin command. Increments the points of a player by a given value.
Change-log
Code:
2016-04-11
• Fixed an exploit where players can set the survivor team on fire, switch to SI, and reap a large number of points
• Implemented restrictions to disallow members of a team to purchase items which may vandalize the success of one's own team.
2016-02-16
• Fixed an issue where the price of certain items was different between multiple special infected
2016-02-06
• Begun moving towards transitional syntax
• Reorganized some code
2016-02-02b
• Fixed an issue where ps_bess would continue to function and process purchases even when the points system is disabled
• Introduced a new native function which allows modules to verify the status of the points system
• ps_bess: slight code clean up
2016-02-02
• Fixed an issue where IsFakeClient() is called without checking if the client is connected (thereby resulting in a crash)
• Removed dead code
• Changed the default value of several CVARs
2016-01-31
• Reintroduced ps_bess support
• Fixed an issue where ps_bess would increase the amount of points deducted with each consecutive use when purchasing a heal as a tank
• Fixed an issue where survivors would be charged twice when purchasing a heal through ps_bess
• Added 'heal' as an additional shortcut to ps_bess, allowing players to use !buy heal as-well as !buy fheal
• Improved code readability
• Reduced coupling between ps_bess & l4d2_points_system
• Several additional bug fixes have been made
Installation
Code:
• Using the Zip File:
Extract the zip file inside your sourcemod folder.
• Manual Installation:
All .phrases.txt files must be placed inside the sourcemod/translations folder.
All .smx files must be placed inside the sourcemod/plugins folder
Plans
Code:
• Saving points: Allows players to save their points for a period of time (implemented but not yet integrated)
• Points cap: Sets a maximum to the amount of points a player can have (implemented but not yet integrated)
• Rewrite legacy menu code