This is TFGunGame, a complete rewrite from the original 2 GunGame mods for TF2.
To keep it short, players gain new weapons every level. When they hit a specific level, they will win the game.
Why rewrite another? The older ones were giving errors, buggy and were crashing servers. I liked the mod so i decided to rewrite it.
Features:
Quote:
- Can customize their own levels.
- Can add attributes to each weapons.
- Can change the player's model/size on different weapons.
- Can customize each map to enable the plugin or use a different weapon config.
- Can customize how many levels to play, how many deaths to delevel, how many assists to level.
- The TF2 Scoreboard will change to the level that the player is on.
tfgg_version - Version of plugin, DO NOT MODIFY
tfgg_enabled - Enables/Disables the plugin, this is also overridden by map config.
tfgg_level - How many levels to play from the weapons config.
tfgg_assist - How many assists before leveling up.
tfgg_delevel - How many deaths before deleveling.
tfgg_resize - Should resize be enabled for weapons config.
tfgg_model - Should the weapons config be able to change the players model.
Commands:
Quote:
tfgg_reload_configs - Reloads both the map and weapons config.
Installation:
Quote:
1. Download and Install the latest version of TF2Items and extract it to sourcemod directory.
2. Download and Install tf2items_giveweapon.smx from TF2items Give Weapon to your sourcemod/plugin directoy.
3. Download and Install tf2items_randomizer.txt to your sourcemod/gamedata directoy.
4. Update to Sourcemod 1.5 and Metamod 1.10 to the updated version.
5. Download and Install TF2Attributes
6. Download and Install TFItemsInfo
5. Optional Install: Updater: http://forums.alliedmods.net/showthread.php?t=169095
6. Download the TFGunGame.zip file and unpack the files to your TF2 directory, also unpack the FastDl to your webserver if you have fastdownload on your server, otherwise ignore it.
7. Do a full map restart or map change.
8. Success!
Updating:
Quote:
This plugin will automatically update if you have updater installed. If not, then i would recommend installing it.
Else you can follow the installation guide to do it manually.
Supported Maps:
Quote:
Valve Stock Maps:
- CTF_
- KOTH_
- CP_ (Timer will countdown, will try to fix this later on)
- PL_ (Timer will countdown, will try to fix this later on)
Future maps should use the gg_ tag.
How to set up gungame_maps: (LOCATED IN Sourcemod/config/gungame_maps.cfg)
PHP Code:
"GunGame Maps" { //prefixes should be add FIRST on the list, then map specific after "koth_" { //enables or disables for this map: 1 - Enabled; 0 - Disabled //Default value is 0, so if you don't specify a map like here then gungame will be disabled, reguardless if tfgg_enabled is set on your server.cfg "enabled" "1" //the levels config this map will use //Default value is gungame_weapons.cfg, so if you don't specify a config file for a map, it will automatically set to gungame_weapons.cfg "weapons_config" "gungame_weapons.cfg" } "gg_" { "enabled" "1" //Not listing the weapons_config will default to use "gungame_weapons.cfg" } "koth_nucleus" { //all koth maps will enable this plugin except this map "enabled" "0" } "ctf_2flag" { "enabled" "1" //gungame_levels2.cfg does not come with this plugin, you need to make your own and can make a different rotation of weapon lists for different maps "weapons_config" "gungame_weapons2.cfg" } "ctf_turbine" { "enabled" "1" //Not listing the weapons_config will default to use "gungame_weapons.cfg" } //all other maps not listed will disable this plugin on those maps }
How to set up gungame_weapons: (LOCATED IN Sourcemod/config/gungame_weapons.cfg)
PHP Code:
"GunGame Weapons" { "0" { //Index - Gives player a weapon by it's index "index" "160" //Class - What class to set to, recommended to set the class the what the weapon only supports. "class" "scout" //Size - Can set a players size when they reach this level only if tfgg_resize is enabled. "size" "1.2" //Model - Can set a players model when they reach this level only if tfgg_model is enabled/ "model" "models/bots/scout/bot_scout.mdl" //add attributes to this weapon, for this example i made the player jump 2x with this weapon with triple jump "attributes" "326 ; 2.0 ; 250 ; 1.0" } "1" { "index" "22" "class" "engineer" "size" "0.5" } "2" { "index" "425" "class" "heavy" "model" "models/bots/heavy/bot_heavy.mdl" } "3" { "index" "36" "class" "medic" //2x speed "attributes" "442; 2.0" } "4" { "index" "45" "class" "scout" //adds more health && no double jump "attributes" "140 ; 1.5 ; 49 ; 1.0" } "5" { "index" "16" "class" "sniper" //100% to slow down enemy "attributes" "32 ; 1.0" } "6" { "index" "171" "class" "sniper" } "7" { "index" "37" "class" "medic" } "8" { "index" "40" "class" "pyro" } "9" { "index" "61" "class" "spy" } "10" { "index" "20" "class" "demoman" } "11" { "index" "15" "class" "heavy" } "12" { "index" "595" "class" "pyro" } "13" { "index" "141" "class" "engineer" } "14" { "index" "14" "class" "sniper" } "15" { "index" "56" "class" "sniper" } "16" { "index" "228" "class" "soldier" } "17" { "index" "307" "class" "demoman" } "18" { "index" "19" "class" "demoman" } "19" { "index" "29" "class" "medic" } "20" { "index" "44" "class" "scout" } "21" { "index" "466" "class" "pyro" } "22" { "index" "169" "class" "engineer" } "23" { "index" "812" "class" "scout" } "24" { "index" "357" "class" "soldier" } "25" { "index" "331" "class" "heavy" } "26" { "index" "423" "class" "spy" }
// continue on for all weapons }
Version Log:
Quote:
v.1.2.1
- Fixes -1 entity call stack error
v.1.2.0
- Fixed tfgg_model and tfgg_resize not resetting players back to normal
- Fixed config not reloading properly on map change
- Fixed flamethrower afterburn from doing damage after you upgraded to the next level
- Changed the default value for gungame_weapons.cfg "enabled" to 0, so if "enabled" is not specified then the plugin will disable
- Fixed translation files having a different plugin name
- Added map prefixes like... koth_ or gg_
- Fixed issue with errors and plugin not disabling if map change to something not in gungame_maps.cfg
v.1.1.0 -
- Renamed plugin since it was too similar with the other one
- Added tf2attributes, tf2itemsinfo
- You can now add attributes to each weapons, see o.p on gungame_weapons.cfg for details
- Renamed levels_config to weapons_config in the gungame_maps.cfg
- Renamed gungame_levels.cfg to gungame_weapons.cfg
- Fixed ctf_ maps where winning does not reset the round
- Added HUD display of levels
Thanks:
Quote:
bl4nk - For his code on changing scoreboard. asherkin - For TF2Items and fixing it. FlaminSarge - For GiveWeapons and TF2Attributes. Mecha the Slag - For the older gungame plugin. Erreur 500 - For the older gamegun plugin. Leonardo - For TF2ItemsInfo.
I am only supporting English translations, if you want to help translate to other languages, you can PM me.
Also i suggest getting cleaner: https://forums.alliedmods.net/showthread.php?t=195008
And suppressing the messaged "Restoring player view height at"
Those messages occur when player changes class and server restoring the view of client
L 07/25/2013 - 23:23:56: SourceMod error session started
L 07/25/2013 - 23:23:56: Info (map "ctf_2fort") (file "errors_20130725.log")
L 07/25/2013 - 23:23:56: [SM] Failed to load plugin "tf2gungame.smx": This plugin only works for TF2 or TF2 Beta..
L 07/25/2013 - 23:23:58: [SM] Plugin encountered error 25: Call was aborted
Doesnt seem to be working.
L 07/25/2013 - 23:23:56: SourceMod error session started
L 07/25/2013 - 23:23:56: Info (map "ctf_2fort") (file "errors_20130725.log")
L 07/25/2013 - 23:23:56: [SM] Failed to load plugin "tf2gungame.smx": This plugin only works for TF2 or TF2 Beta..
L 07/25/2013 - 23:23:58: [SM] Plugin encountered error 25: Call was aborted
Doesnt seem to be working.
Sorry did a last minute typo.
Reuploaded, didn't change version numbers tho.
Also i suggest getting cleaner: https://forums.alliedmods.net/showthread.php?t=195008
And suppressing the messaged "Restoring player view height at"
Those messages occur when player changes class and server restoring the view of client
Im not getting any guns in game and getting this error in the console
Native "TF2Items_GiveWeapon" reported: Plugin owning this native is currently paused.
L 07/29/2013 - 22:04:16: [SM] Displaying call stack trace for plugin "tf2gungame.smx":
L 07/29/2013 - 22:04:16: [SM] [0] Line 341, tf2gungame.sp::GiveClientWeapons()
L 07/29/2013 - 22:04:16: [SM] [1] Line 464, tf2gungame.sp:isableLockerRoom()
L 07/29/2013 - 22:04:16: [SM] [2] Line 220, tf2gungame.sp::OnRoundStart()