Description
Plugin idea comes from
Franc1scos Frag Battle plugin, but with several additions and changes.
Admin Commands:
sm_tfl_reset Resets team scores. Requires Generic Admin (b) flag
Features:
-
Now has support for non-DM servers
- Ends the game when a team reaches a set frag limit
- Announces the frags remaining for the winning team every XX frags
- Three different announce types: Center Text, Hint Text, Chat Text
- Starts a map vote when a team is within XX frags of the limit
- CVar to change the frag limit to a lower value if there are no players on the server. This speeds up map changes on unpopular maps.
- CVar that places users who select "Auto-Assign" onto the losing team. Does not effect regular joins
- Both the minimum players and lower frag limit are configurable
- Makes use of translation files for multi language compatibility
- Generates a config file for easy CVar changes
Requirements
mapchooser.smx is required for voting when a team is near the frag limit
Upgrading
Delete the old teamfraglimit.cfg as new ones were created for update 1.4.0
Restart the server
ConVars
Code:
sm_tfl_limit 500
The frag limit a team must reach to change the map.
sm_tfl_announce 100
Announce how many frags a team is from the frag limit every 100 frags.
0 to disable announcing.
sm_tfl_announce_type 1
Changes the way the plugin announces frags remaining.
1 = Center Text, 2 = Hint Text, 3 = Chat Text
sm_tfl_minplayers 4
Minimum players for full frag limit. Checks every 5 minutes to see if player count has dropped below frag limit.
sm_tfl_minplayers_kill_limit 50
Frag limit if players is less than minplayers
sm_tfl_team_autoselect 0
If 1, then users who select "Auto-Assign" will be placed on the losing team. Does not effect regular team joining
sm_tfl_vote 30
Start a map vote when a team is this many frags from the limit. Only has an effect is mapchooser.smx is loaded.
sm_tfl_bomb_bonus 3
Team score bonus for successfully detonating the bomb
sm_tfl_defuse_bonus 3
Team score bonus for successfully defusing the bomb
sm_tfl_gametype 1
Is the game deathmatch or normal gameplay? 0 = Normal, 1 = Deathmatch
Credits
Franc1sco for the original idea
strontiumdog and DJ Tsunami for the map change code
Mirandor for the French translation
Changelog