automatic_weapons_rewards 1.0

This commit is contained in:
Resxt
2022-03-10 01:16:57 +01:00
parent 3c53ebc7ed
commit 876062ac79
2 changed files with 298 additions and 1 deletions

View File

@ -18,4 +18,22 @@ This is how the script is configured
This script also whitelists the AC130 for the kill counts.
This is useful to make sure kills are properly tracked on kill counters scripts.
This also removes the killstreak protection players have after spawning.
This also removes the killstreak protection players have after spawning.
## automatic_weapons_rewards.gsc
A re-creation of the gun game mode with a bit more configuration.
Every game the script picks random (and unique) weapons from `level.available_weapon_rewards` to populate `weapon_rewards`.
Whenever a player reaches a new tier (defined with `weapon_switch_kills`) he will get the next weapon.
If you ask for more weapon than the max amount of available weapons then the unique check is removed when all weapons were given.
This ensures that all weapons are unique and that if you want more weapons than the max amount available you have each weapon at least once.
`InitWeaponRewards()` allow you to have random weapons only or to hard code the last weapon in your games.
You can also enable or disable `bots_earn_rewards` to change whether bots can earn weapons too.
Because this is based around the server's kill limit and the player's current total kills this only works on kill based game modes (FFA, TDM etc.)
If you want to use this on objective based game modes you will have to read the script and make some modifications.
By default the script sets the score limit to 80 kills and the time limit to 10 minutes and gives you a new weapon every 10 kills.
Whenever you reach 70 kills it will always give you the `ac130_25mm_mp` weapon.