AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S/CS:GO] GunGame (https://forums.alliedmods.net/showthread.php?t=93977)

altex 06-05-2009 03:31

[CS:S/CS:GO] GunGame
 
5 Attachment(s)
GunGame

Table of contents
----------------------------------------------------
Description
----------------------------------------------------
GunGame:SM is the gameplay plugin that makes you to
act with various guns and not only with your favorite
one. On spawn you get one weapon. You should kill
enemy with the current weapon to get next weapon.
You should kill enemies with all the weapons to win the game.

http://forums.alliedmods.net/showthread.php?t=93977
Complementary plugins
----------------------------------------------------
Commands and Cvars
----------------------------------------------------
  • sm_gungamesm_version - Gungame version.
  • gungame_enabled - Display if gungame is enabled or disabled.
  • gg_version - Show gungame version information.
  • gg_status - Show state of the current game.
  • gg_restart - Restarts the whole game from the beginning.
  • gg_enable - Turn on gungame and restart the game.
  • gg_disable - Turn off gungame and restart the game.
  • gg_rebuild - Rebuilds the top10 rank from the player data information.
  • gg_import - Imports the winners file from es es gungame3. File must be in data/gungame/es_gg_winners_db.txt.
    You can convert winners db file from es gungame5 to gungame3 - use tools/convert_winners_esgg_5to3.py.
  • gg_reset - Reset all gungame stats. (only if sql stats enabled)
  • gg_importdb - Imports the winners from gungame players data file into database. (only if sql stats enabled)
  • sm_gg_cfgdirname - Define config directory where gungame.config.txt is located.
    Default is "gungame" (so config files will be loaded from "cfg\gungame\").
    You can define your own directory after gungame winner, for example exec "sm_gg_cfgdirname gungame-dm",
    and after map change the config files will be loaded from "cfg\gungame-dm"
    (so config files will be loaded from "cfg\gungame\").
  • sm_gg_turbo - Change TurboMode config variable.
  • sm_gg_multilevelamount - Change MultiLevelAmount config variable.
  • say !level - Show your current level and who is winning.
  • say !weapons - Show the weapon order.
  • say !score - Show all player current scores.
  • say !top - Show the top winners on the server.
  • say !leader - Show current leaders.
  • say !rank - Show your current place in stats. (only if sql stats enabled)
  • say !rules - Show the rules and how to play.

Requirements
----------------------------------------------------
  • Counter-Strike: Source, Counter-Strike: Global Offensive
  • SourceMod 1.4.5+
  • (Optional, not required by default) SDK Hooks 2.2 or later (https://forums.alliedmods.net/showthread.php?t=106748)
    You need SDK Hooks if you want to set specific options in config
    (search for "sdkhooks" in "gungame.config.txt" and read comments for more info)

Installation
----------------------------------------------------
  • Install Metamod:Source.
  • Install SourceMod.
  • (Optional, not required by default) Install SDK Hooks.
  • Upload the "addons", "sound", and "cfg" into your "cstrike" folder for CS:Source
  • Config "gungame.config.txt" and "gungame.equip.txt" to your liking in "cfg/gungame/<css|csgo>/"
  • (Optional, not required by default) If you installed SDK Hooks, remove "gungame.smx" from "plugins" folder
    and add "gungame_sdkhooks.smx" from "disabled" info "plugins" folder.
  • Restart your server.

Plugins
----------------------------------------------------
  • gungame.smx - Main GunGame:SM plugin
    • Depends on gungame_config.smx, gungame_stats.smx (optional)
    • Mandatory plugin
    • Provides almost all gungame functionality
  • disabled/gungame_sdkhooks.smx - Main GunGame:SM plugin compiled with SDK Hooks support.
    • You need SDK Hooks if you want to set specific options in config
      (search for "sdkhooks" in "gungame.config.txt" and read comments for more info)
    • If you want to use sdk hooks version of gungame, then remove gungame.smx and add gungame_sdkhooks.smx.
      Don't use both gungame.smx and gungame_sdkhooks.smx.
  • gungame_config.smx - Config Reader
    • No dependencies
    • Mandatory plugin
    • Read all config files
    • Can load different configs (*.config.txt, *.equip.txt) depending on map
      prefixes and map names in configs/gungame/maps.
      gungame.config.txt will be read first before prefix map name.
      Prefix map name will be executed first before map specfic map.
      Then map specifc config files will be loaded.
  • gungame_stats.smx - Stats
    • Depends on gungame.smx, gungame_config.smx
    • Optional plugin
    • Displays top10 panel
    • Stores players wins data and top10 data
    • Sets handicap level for the new connected players
  • gungame_afk.smx - Afk Management System
    • Depends on gungame_config.smx, gungame.smx
    • Optional plugin
    • Detect afk players, kick them if needed, do not allow level up on afk players
  • gungame_mapvoting.smx - Map voting
    • Depends on gungame.smx, gungame_config.smx
    • Optional plugin
    • Starts the map voting for the next map when someone reaches particular level
      by executing gungame.mapvote.cfg
  • gungame_logging.smx - Logging events
    • Depends on gungame.smx
    • Optional plugin
    • Logs events for players: gg_win, gg_leader, gg_levelup, gg_leveldown, gg_knife_steal,
      gg_knife_level, gg_triple_level, gg_last_level, gg_team_win, gg_team_lose.
  • gungame_tk.smx - TeamKill Management System
    • Depends on gungame.smx, gungame_config.smx
    • Optional plugin
    • Level down team killer
  • gungame_display_winner.smx - Display winner
    • Depends on gungame.smx, gungame_stats.smx, gungame_config.smx
    • Optional plugin
    • When someone wins it shows MOTD window with external URL displaing some info
      about winner.
  • gungame_bot.smx - Bot protection
    • Depends on gungame.smx, gungame_config.smx
    • Optional plugin
    • Does not allow players to win by killing a bot.
  • gungame_warmup_configs.smx - Warmup configs execution
    • Depends on gungame.smx, gungame_config.smx
    • Optional plugin
    • Executes configs gungame.warmupend.cfg and gungame.warmupstart.cfg on warmup start and end.
  • gungame_winner_effects.smx - Winner effects after player win
    • Depends on gungame.smx, gungame_config.smx
    • Optional plugin
    • Adds winner effect, configured in gungame.config.txt.

Credits
----------------------------------------------------
Translations
  • Thanks to PlasteR for the polish translation.
  • Thanks to Xilver266 for the spanish translation.
  • Thanks to VoGon for the portuguese translation.
  • Thanks to tObIwAnKeNoBi for the german translation.

Changelog
----------------------------------------------------
For full changelog see doc/CHANGELOG.txt
TODO
----------------------------------------------------
For full todo list see doc/TODO.txt
FAQ
----------------------------------------------------
  • Q. The map does not change after player wins
    A. GunGame plugin doesn't change the map itself, it leaves that to whatever mapchanger you use.
    After player reaches one of the latest levels GunGame will attempt to run the command that is located in "gungame.mapvote.cfg" to start map voting.
    By default it tries SourceMod default plugin to start the vote (MapChooser) - "sm_mapvote", but you can change that by changing the file "gungame.mapvote.cfg".

    See "VoteLevelLessWeaponCount" config variable in main gungame config file. By deafult it equals two.
    That means the voting begins after someone level up to the level that 2 levels below the maximum level.

    After someone wins the game GunGame finishes map like it happens when "mp_timelimit" exceeded. Then your map changing plugin should change the map.

    You need to configure your map voting/map changing plugin according to its documentation.
    For example SourceMod Map Management Plugins documentation is here https://wiki.alliedmods.net/Map_Mana...ns_(SourceMod).
    It uses some of the config files:
    "/maplist.txt"
    "/mapcycle.txt"
    "/cfg/sourcemod/mapchooser.cfg"
    "/cfg/sourcemod/mapvote.cfg"

    You can also try UltimateMapChooser plugin https://forums.alliedmods.net/showthread.php?t=134190
    If you are having issues with CS:GO you can try workaround - "EndGameSilent" "1" in main gungame config file.
    If you are running CS:GO, make sure to set the correct game mode (find in the FAQ).
  • Q.[CS:GO] What do I put for game_mode and game_type?
    A.+game_type 0 +game_mode 0
  • Q. I want weapon to be changed after leveling up in the same round and not in the next round.
    A. "TurboMode" "1" in gungame.config.txt.
  • Q. How to enable/disable gungame depending on map prefixes (aka buyzone issue):
    A. http://forums.alliedmods.net/showpos...&postcount=389
  • Q. How to switch stats database from sqlite to mysql
    A. http://forums.alliedmods.net/showpos...&postcount=865
  • Q. Sound does not work.
    A. Try to change all slashes ("/") in sound files paths to double-backslashes ("\\")
    in gungame.config.txt and restart server and client.
  • Q. Sound still does not work.
    A. Good article for beginning http://developer.valvesoftware.com/wiki/Pure_Servers
    Post your question with the following info: output of the command on server "sv_pure",
    output of the command on client "sv_pure" or content of the file "cstrike/pure_server_whitelist.txt",
    output of the command "sv_downloadurl" on server or client.
  • Q. Weapons desapearing on level up and player spawn.
    A. If you are using DeathMatch:SM then set sm_ggdm_removeweapons "0" in server.cfg and
    set "StripDeadPlayersWeapon" "1" in gungame.config.txt. GunGame:SM weapon stripper is much cpu effective
    then DeathMatch:SM weapon stripper, don't use DeathMatch:SM weapon stripper with GunGame:SM, it was designed for non GunGame servers.
  • Q. I level up on two levels at once.
    A. Double check that you have only gungame_sdhooks.smx OR gungame.smx in your plugin folder.
    Not both of them. If you have both you have to delete one of them.
  • Q. I have strange errors in my logs.
    A. First of all read this error messages carefully. Sometimes log messages has recommendations how to fix
    the issue. Double check that you have only gungame_sdhooks.smx OR gungame.smx in your plugin folder. Not both of them.
    If you have both you have to delete one of them.
  • Q. I have updated the plugin, and something does not work.
    A. First of all update weaponinfo.txt.
    Notice, that since version 1.2.0.0 the cfg directory changed it's location from cfg/gungame/ to cfg/gungame/css/ (cfg/gungame/csgo/).
    You can use your old gungame.config.txt and gungame.equip.txt, but you should update new weaponinfo.txt from the release zip file.
  • Q. Server has been updated and gungame does not work.
    A. If you have gungame version earlier then 1.2.0.0, you should update to the 1.2.0.0 version or later.
    Notice, that since version 1.2.0.0 the cfg directory changed it's location from cfg/gungame/ to cfg/gungame/css/ (cfg/gungame/csgo/).
    You can use your old gungame.config.txt and gungame.equip.txt, but you should update new weaponinfo.txt from the release zip file.
  • Q. How do i enable feature X?
    A. All config files are very good described and documented. Before asking such a question you should read
    commets in gungame.config.txt and gungame.equip.txt for all config variables.
  • Q. Something does not work, what should i do?
    A. Start with posting your output of server commands "version; meta version; sm version; plugin_print; meta list; sm exts list;sm plugins list"
    and content of the latest file cstrike/addons/sourcemod/logs/errors_<date>.log in this topic.
  • Q. Where the stats database is located?
    A. If you did not configure any custom databases, you gungame stats is located in
    addons\sourcemod\data\sqlite\sourcemod-local.sq3.
  • Q. How to convert my ES GG 5.1 winners database file into SM GG database?
    A.
    1) Install php (from http://php.net) into C:\programs\php folder.
    2) Copy C:\programs\php\php.ini-development into C:\programs\php\php.ini file.
    3) Uncomment 2 lines in C:\programs\php\php.ini:
    3.1) extension_dir = "ext"
    3.2) extension=php_sqlite3.dll
    4) Run C:\programs\php\php.exe tools\convert_winners_esgg51_to_ggsm.php <input.db> <output.db>
    where input.db is your ES GG 5.1 sqlite winners database file,
    and output.db is you SM GG sqlite winners database file, that is usualy located in
    addons\sourcemod\data\sqlite\sourcemod-local.sq3.


Issues
----------------------------------------------------
  • [CSGO] No multichannel sounds. It's possible to play only one sound at a time,
    no overlaps of the sounds. Sounds couldn't be cached on a client.
    http://wiki.alliedmods.net/CSGO_Quirks
  • [CSGO] Motd could not be shown as notmal motd. It's only possble to show
    new window with javascript function window.open().

3-rd party plugins
----------------------------------------------------
My gungame maps
----------------------------------------------------
Download
----------------------------------------------------
Links below

And also i've got a github repo here: https://github.com/altexdim/sourcemod-plugin-gungame

My plugins | Donations via PayPal

exvel 06-05-2009 05:02

Re: GunGame:SM
 
Glad to see that you finally started your own thread. :-)

Xp3r7 06-05-2009 08:57

Re: GunGame:SM
 
Quote:

Originally Posted by exvel (Post 842018)
Glad to see that you finally started your own thread. :-)

Same and keep up the good work on this!

My clan has wanted to switch all our servers over to SM but we are still using Mani on our GG5 server and getting all features that GG5 has will help! :)



One question though, gg_import - where do I put the ES database file at for this GG to import it?

Pietje 06-05-2009 11:34

Re: GunGame:SM
 
Maybe autoupdate would be handy to put in?
Link: http://forums.alliedmods.net/showthread.php?t=91992

altex 06-05-2009 16:33

Re: GunGame:SM
 
Quote:

Originally Posted by Xp3r7 (Post 842135)

One question though, gg_import - where do I put the ES database file at for this GG to import it?

in sourcemod/data/gungame folder

altex 06-05-2009 16:34

Re: GunGame:SM
 
Quote:

Originally Posted by Pietje (Post 842284)
Maybe autoupdate would be handy to put in?
Link: http://forums.alliedmods.net/showthread.php?t=91992

I don't think it's good idea.

Xp3r7 06-05-2009 21:53

Re: GunGame:SM
 
Quote:

Originally Posted by altex (Post 842488)
in sourcemod/data/gungame folder

Thank you!

May want to add that by the command in your post so others will see it easier and you wont be asked 1,000,000 times! lol




EDIT: Got this error.

Quote:

[GunGame] es_gg_winners_db.txt does not exists to be imported.
It doesnt exist because GG5 saves their database as winnersdata.db.

GG4 saves theirs as es_gg_database.sqldb btw.

So that has to be from GG3 or earlier!

altex 06-06-2009 02:33

Re: GunGame:SM
 
Quote:

Originally Posted by Xp3r7 (Post 842695)
May want to add that by the command in your post so others will see it easier and you wont be asked 1,000,000 times! lol

So that has to be from GG3 or earlier!

Updated first post. Thank you.

Stitllams 06-06-2009 02:39

Re: GunGame:SM
 
Thanks for the quick reply in Liam's thread.

First I would like to thank you for the work you have done since taking over from Liam.

I had a play with the weapon list and started off with more powerful weapons first so I could have some opposition when mates playing against bots.

Shotguns were first and boy did it make it difficult, was way fun though.

Cheers :)

altex 06-06-2009 02:47

Re: GunGame:SM
 
On our servers we have weapon order like this
"1" "awp"
"2" "g3sg1"
"3" "m249"
"4" "sg550"
"5" "ak47"
"6" "m4a1"
"7" "sg552"
"8" "aug"
"9" "galil"
"10" "famas"
"11" "mp5navy"
"12" "p90"
"13" "tmp"
"14" "ump45"
"15" "mac10"
"16" "xm1014"
"17" "m3"
"18" "scout"
"19" "deagle"
"20" "elite"
"21" "fiveseven"
"22" "p228"
"23" "usp"
"24" "glock"
"25" "hegrenade"
"26" "knife"


All times are GMT -4. The time now is 15:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.