View Single Post
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 07-23-2016 , 02:56   Re: Galileo v3.2.2-248 (a feature rich map voting plugin) | Last Update: 2016.07.20
Reply With Quote #291

Quote:
Originally Posted by Shattered Heart Lynx View Post
Hello addons_zz

Great job on everything you have done so far.
You are welcome.


Quote:
Originally Posted by Shattered Heart Lynx View Post
Do you mind expanding Sven Co-op support?

You can use is_running("svencoop") to add some extra checks and to manipulate some specific cvars.

Examples:
PHP Code:
set_pcvar_stringg_cvar_amx_nextmapnextMap );
if(
is_running("svencoop"))
{
    
set_cvar_string"mp_nextmap_cycle"nextMap );

This controls the Next Map: [map name] text which appears in the scoreboard, which is tied to the mp_nextmap_cycle cvar. I know there are more references to amx_nextmap in your code but it was just an example.

Also:
PHP Code:
#include <hamsandwich> 
[plugin_init()]
PHP Code:
if(is_running("svencoop"))
{
    
RegisterHam(Ham_Use"game_end""voteNextmap");

PHP Code:
voteNextmap()
{
    [
call the vote next map methodto immediately change]

This allows the players to choose the nextmap everytime they complete the current one. I tested with server_cmd("gal_startvote") and it works (executing the command because it's a different .amxx plugin), and it would be better if you call the function directly.

Thanks in advance.
I am working on this, as I improve some plugin maintainability. Moreover, there is something more needed from a mapchooser for Sven Coop?
I saw this other plugin 'NextMap with Sven Co-op Fix'. You think, is there something not covered here yet or with the next update you suggested, everything is well covered?
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 07-23-2016 at 02:57. Reason: misspellings
addons_zz is offline