Closed mo0nsniper closed 7 years ago
Hi, if you want to the voting to start for sure with less than 4 minutes:
1, The easy way is to disable the gal_endofmapvote_start
, i.e., set is to 0.
// Indicates whether there should be created a 4 minutes range before
// the last 2 minutes to detect a round start and to give time about 20
// seconds to buy weapons after the round to start and before the map
// voting to start.
// 0 - disabled this feature
// 1 - enable this feature
gal_endofmapvote_start 0
2, You could change the range from 500 seconds to 240 seconds: https://github.com/evandrocoan/Galileo/blob/4f899bedc94a8279decd3f8dbd9187d0c69686ac/scripting/galileo.sma#L427-L432
/**
* The macro 'VOTE_ROUND_START_DETECTION_DELAYED(0)' use this second intervals. The default time
* interval range is 4 minutes.
*/
#define VOTE_ROUND_START_MIN_DELAY 500
#define VOTE_ROUND_START_MAX_DELAY START_VOTEMAP_MIN_TIME
Thank you for the reply. I'll try setting VOTE_ROUND_START_MIN_DELAY to 240 because I like the option gal_endofmapvote_start for having the vote at the start of the round.
But from where comes the 7.5 minutes delay because 500 seconds + 2 minutes should be 6 minutes maximum?
Actually there is a error, I say 4 minutes but it is 5.81 minutes. It is fixed for the next version: 3a38351
Nice, thanks for the fix.
Maybe you could make a CVAR that includes the 2 minutes default voting and the extra 4 minutes so it's easier to configure without modifying the code.
Yeah, but I need to take care with another things first before allowing free configuration by cvars.
Because depending on the cvars gal_runoff_duration
and gal_vote_duration
+ some internal delays
, the voting must to start with some antecedence, otherwise the map will end before the voting is finished.
Feature request: make a CVAR that includes the 2 minutes default voting and the extra 4 minutes so it's easier to configure without modifying the code.
By above commit, what automatically created a way to calculate the optimum minimum time and allowing to choose on which round to start the voting. Now just last to implement this feature for the cvars mp_maxrounds/wins
and mp_fraglimit
scheduled on the issue:
Hello,
I'm having an issue with my configuration. I want the galileo map vote to show up in less than 4 minutes to the end of map. But now it shows up at approx 7:30 minutes. I have set gal_endofmapvote_start 1 in my cfg.
Here is my galileo.cfg and other settings. Also I am using ReHLDS as an engine.:
http://pastebin.com/EBVJfkYS
Feature request