Raised This Month: $ Target: $400
 0% 

Map management plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-16-2011 , 17:58   Re: Map management plugin
Reply With Quote #1

Quote:
Originally Posted by e12harry View Post
Can I normaly use pcvar with mp_timelimit? and mp_roundtime?
(refering to drekes example) I personally, use get_cvar_pointer() in plugin_cfg().


Quote:
Originally Posted by e12harry View Post
Yes. If in first vote no map got more than 60% votes (cvar specified) There will be second vote with 2 most popular maps. In second vote wins map with more voices or first map if they have the same number of voices. Unfortunetly second vote sometimes is displayed twice.
I would probably separate the first and second votes (one set of function for each). I would also take the count down out of the vote function then just call the vote function when the count down is done. Trying to do different things in a single function can make things harder for you IMO.

Quote:
Originally Posted by e12harry View Post
It is set that map wins in first vote if it gets 60% voices.
If there was 4 players and 3 voted fore aim_map it should win, but there was a second vote.
I can't see anything wrong in the code so you need to get the value of all relevant variable involved to see if they are what you expect.

Quote:
Originally Posted by e12harry View Post
If there is no players then first map from random maps should win thw vote.
That should happen naturally.

Quote:
Originally Posted by e12harry View Post
set_task(get_timeleft() + 5.0, "changeMap", TASK_CHANGE_MAP);
If there is 30 seconds left in the map and you set a task for 35 seconds then it will never execute because the map will have changed already.
__________________

Last edited by fysiks; 07-16-2011 at 18:05.
fysiks is offline
Reply



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 00:47.


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