View Single Post
Plugin Info:     Modification:          Category:          Approver:   devicenull (200)
kaddar
Member
Join Date: Jul 2004
Old 07-22-2004 , 00:26   The One v1.2 w/vampire addon
Reply With Quote #1

The idea of "The One" Teamplay plugin is that every time a player dies, all other players on his team gain health based on how many players are still alive on that team. Thus, the first player to die gives less life to all other players than the second to last player. Essentially meaning the last player on a team is incredibly hard to kill because he has gained a lot of life.

Total life that would be gained by the last player if all other players on his team dies for the counter terrorists is equal to amxx_last_ct_health_added. For the terrorists, the number is generated automatically based on amxx_last_ct_health_added. (In other words, if there are more or less terrorists, health is still split fairly).

Vampire addon allows you to set amxx_health_stolen. Defaults to 0 so is by default turned off.

cvar listing:
amxx_default_health - health at the start of a round, defaults to 100
amxx_health_stolen - how much life you gain every kill (positive), defaults to 0
amxx_last_ct_health_added - overall life added to the ct team by their own team members deaths (terrorist team is based on this and number of cts vs number of terrorists, defaults to 100, 0 to turn off

changelog
v1.2
Fixed default health cvar bugs, added amxx_health_stolen

v1.01
Fixed an uneven teams bug, added cvar amxx_default_health, allows admins to set player's life upon entering a round, test it out, let me know if it works, as it's "beta"

This is my first mod
Attached Files
File Type: sma Get Plugin or Get Source (theone.sma - 3540 views - 5.6 KB)
kaddar is offline