Raised This Month: $51 Target: $400
 12% 

Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-30-2023 , 22:58   Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
Reply With Quote #37

Quote:
Originally Posted by MikaMika View Post
Pity, i cant code
I have a quick look at the code, and it seem, that the voting start is delayed by this math:
Code:
File: MultiModServer/plugins/addons/amxmodx/scripting/galileo.sma 826: /** 827:  * Specifies how much time to delay the voting start after the round start. 828:  * 829:  * @return an integer, how many seconds to wait 830:  */ 831: #define ROUND_VOTING_START_SECONDS_DELAY() \ 832:     ( get_pcvar_num( cvar_mp_freezetime ) + PERIODIC_CHECKING_INTERVAL \ 833:       - ( get_pcvar_num( cvar_isToAskForEndOfTheMapVote ) & END_OF_MAP_VOTE_ANNOUNCE1 ? 5 : 0 ) \ 834:       + ( g_roundAverageTime > 2 * g_totalVoteTime / 3 ? g_totalVoteTime / 5 : 1 ) )

Changing it to this should start try to start the voting 10 seconds after the round start:
Code:
/**  * Specifies how much time to delay the voting start after the round start.  *  * @return an integer, how many seconds to wait  */ #define ROUND_VOTING_START_SECONDS_DELAY() 10

If the online compiler still working, my attachment here should be enough.
Attached Files
File Type: sma Get Plugin or Get Source (galileo.sma - 60 views - 775.3 KB)
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

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



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:11.


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