07-29-2018, 01:57 AM
I'm trying to add two custom gametypes to the end-of-map voting list but I'm not having a lot of success:
Duel shows up in the list, but doesn't appear to work correctly (it plays as a straight deathmatch game). I've commented it out just in case I've broken something by overwriting it. The instagib cvars just return an error when they're loaded:
Though there is a second weird error that shows up when the vote screen is rendered:
(Honestly not sure what to make of that one).
Code:
//InstaGib Gametype
alias instagib "gametype dm;g_instagib 1"
alias noinstagib "gametype dm;g_instagib 0"
addvote instagib
addvote noinstagib
sv_vote_gametype_instagib_name "Instagib"
sv_vote_gametype_instagib_description "Instagib Deathmatch"
sv_vote_gametype_instagib_type "dm"
alias sv_vote_gametype_hook_instagib "instagib"
//sv_vote_gametype_mygametype_name "My Mode" // Name displayed for the custom gametype "mygametype" (replace "mygametype" with the name you set in sv_vote_gametype_options)
//sv_vote_gametype_mygametype_type "ft" // the basetype that the custom gametype is derived from
//sv_vote_gametype_mygametype_description "This is my custom gametype" // the description for the custom gametype
//// Custom icons for custom gametypes are supported and have to be located in a server pk3 as gfx/menu/default/gametype_mygametype
Though there is a second weird error that shows up when the vote screen is rendered:
(Honestly not sure what to make of that one).