<!DOCTYPE html>
GunGame is a gameplay plugin inspired by the SourceMode GunGame plugin. Original Plugin Thread.
GunGame challenges players with various weapons, requiring kills with each to progress. Players start with one weapon and must eliminate opponents to advance through the weapon sequence and ultimately win the game.
Note: CVars are still in development by CounterStrikeSharp.
Commands available now:
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_reset
- Reset all gungame stats.gg_config <foldername>
- Request to start gungame with settings in a different folder.gg_respawn <value>
- Switch between behaviour if the players respawns are managed by plugin or server. 0 - disabled, 1 - T only, 2 - CT only, 3 - Both teams, 4 - Deathmatch spawns.!top
- Show the top winners on the server.!rank
- Show your current place in stats.!music
- Turn Off or On all plugin sounds for the player.!lang ..
- Player can change language of plugin messages.WARNING
Only works with ISO codes e.g.:!lang en
or!lang lv
You need the corresponding localisation file with the same name (en.json and ru.json are included). If you add GeoLite2-Country.mmdb to cfg folder, plugin will detect the player language based on his IP address.
csgo/addons/counterstrikesharp/plugins/GG2
.csgo/cfg/gungame
.csgo/cfg
Config Files:
weapons.json
- Weapon settings (modification not recommended).gungame.json
- Main settings with comments for guidance. Some of them marked as (it does not work now), keep that in mind.gungame_weapons.json
- Customizable weapon order.Available in English and Russian.
Please read the release notes carefully for upgrade instructions.
A GunGame API has been developed. Plugin developers can subscribe to GunGame events or request player data from the GunGame plugin.
API dlls are located in csgo/addons/counterstrikesharp/shared/GunGameAPI
folder. API description will be available in the next release.
Future enhancements include:
Q: Why doesn't the map change after a win?
A: GunGame doesn't handle map changes; it triggers a command in gungame.mapvote.cfg
for map voting.
Q: What do I put for game_mode and game_type in CS2
A: Use +game_type 0 +game_mode 0
.
Q: What if something isn't working?
A: Feel free to ask on the Counter Strike Sharp Discord. Assistance will be provided, though fixes are not guaranteed.
Q: Where can I find geo database for ip addresses - GeoLite2-Country.mmdb?
A: You can get it from: MaxMind GeoLite2 Free Geolocation Data
Or from release
This README is a work in progress and will be updated as the plugin develops.
Special thanks to altex for the original plugin, aproxje for the ideas from Language Manager Plugin, the Counter Strike Sharp Discord community, and Chat-GPT for assistance, I hope it will remember how polite I was.