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

xLoadCountdown - countdown until map load


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Exolent[jNr] (178)
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-31-2009 , 17:13   xLoadCountdown - countdown until map load
Reply With Quote #1



Screenshots:


(next map unknown) | (next map known)

Description:

Don't you hate it when the time limit ran out and you just sit there, staring at the scoreboard, wondering when in God's name the map change will finally start and release you from waiting?
Then this plugin is for you.

Waiting seems to be longer when you don't see how long you still have to wait. That's why "estimated time left" and progress bars were invented.

So, this plugin will show a countdown in chat area (HUD messages don't work, HL does not allow them anymore after time limit was reached) every second until the next map will be loaded when time for the current map ran out. It will do this based on mp_chattime.
If amx_nextmap is set (usually it is when you are using any AMXX map vote plugin) it will also show the next map in the countdown message.
Optionally it can as well speak the countdown numbers.


Requirements:
  • Metamod v1.18
  • HLDS v3.1.1.1
  • AMXX v1.70

Basically the plugin is intended to work with
- every HL1 mod
- the currently latest and last before latest AMXX version



Languages:
Many thanks to all translators! If you like a translation, why not give karma to the translator if he is listed with his account?

You can translate a language that is missing? Then please go to this thread.



Known problems:

Some plugins mess with mp_chattime, especially plugins having to do with map management (e.g. map voting plugins). Therefore you can correct the countdown using the CVAR chattime_offset. See the CVARs section for details.



CVARs:

For easy graphical CVAR configuration open this file:
xLoadCountdown.xconf
(you need to have xVarConfig installed for this to work)

chattime_offset:
If your countdown is shown correctly then either don't set this CVAR at all or set it to 0, which also is the default.
But if you noticed you always have a difference of X seconds from what xLoadCountdown thinks when the map change will occour and when it occurs in reality you can change the cvar chattime_offset to a positive or negative integer.

For example:
nextmap.amxx is adding 2 seconds to mp_chattime to be able to control the mapchange itself.
If xLoadCountdown is loaded after nextmap.amxx you need to correct the offset like this:
chattime_offset -2

If you're confused with the setting of this CVAR simply experiment a little with it until you found the correct value fitting your server.


loadcountdown_chat:
0 means countdown messages in chat area are disabled.
1 means countdown messages in chat area are enabled.

Set to 1 by default.


loadcountdown_voice:
0 means voice is disabled.
1 means voice is enabled. The ingame voice will speak the countdown numbers.

Set to 0 by default.



Installation:

The files go into these directories (relative to your amxx directory):
  • xloadcountdown.amxx --> /plugins
  • xloadcountdown.txt --> /data/lang
  • xloadcountdown.sma --> /scripting (optional, only for your reference or if you compile it there)


Current version: 0.2.1
Attached Files
File Type: sma Get Plugin or Get Source (xloadcountdown.sma - 2400 views - 6.7 KB)
File Type: txt xloadcountdown.txt (1.7 KB, 841 views)
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:

Last edited by xOR; 03-04-2018 at 09:46. Reason: updated URLs to new domain name
xOR is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 12-31-2009 , 17:22   Re: xLoadCountdown - countdown until map load
Reply With Quote #2

Thanks!
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 12-31-2009 , 17:23   Re: xLoadCountdown - countdown until map load
Reply With Quote #3

Maybe cvar for message type(?):
- hud
- chat
- print_center

edit: Where is the language file?

Last edited by matsi; 12-31-2009 at 18:07.
matsi is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-31-2009 , 17:28   Re: xLoadCountdown - countdown until map load
Reply With Quote #4

it's there now. stuff is coming slow, sorry
i will create a translation thread as well and put a link to it in the language section.

also i still have to set up an svn repo for this and a project in my bug tracker. as soon as it is there i can put suggestions as yours onto a roadmap. ofc it's a good suggestion and it will go on the roadmap then, thanks already.
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
Zapdos1
BANNED
Join Date: Jul 2009
Location: Chile - La Serena
Old 12-31-2009 , 17:29   Re: xLoadCountdown - countdown until map load
Reply With Quote #5

good plugin, but can it make some overflow?? :S

(sorry for the english)
Zapdos1 is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-31-2009 , 17:35   Re: xLoadCountdown - countdown until map load
Reply With Quote #6

what do you mean? are you getting overflow error messages?
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
Zapdos1
BANNED
Join Date: Jul 2009
Location: Chile - La Serena
Old 12-31-2009 , 17:35   Re: xLoadCountdown - countdown until map load
Reply With Quote #7

Quote:
Originally Posted by xOR View Post
what do you mean? are you getting overflow error messages?
i'm just asking, can this plugin make overflow problems??
Zapdos1 is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-31-2009 , 17:39   Re: xLoadCountdown - countdown until map load
Reply With Quote #8

erm, i don't think so. do you see any special risk for that or why are you so concerned about exactly this overflow thing of all possible problems?
ofc it wasn't thoroughly tested yet, it's brandnew and i just coded it within the last hour or so. did some quick test runs, made the screenshots and there you go...
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
xOR
Veteran Member
Join Date: Jun 2006
Location: x-base.info
Old 12-31-2009 , 17:44   xLoadCountdown - finnish language added
Reply With Quote #9

finnish translation was added.

many thanks for the translation matsi but my friend X3D was just a second faster than you.
__________________
Got more than one HL1 (CS, DoD, NS, TS, TFC, HLDM...) server? Check:
xOR is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 12-31-2009 , 18:05   Re: xLoadCountdown - countdown until map load
Reply With Quote #10

Spanish traslation

Code:
[es]
MSG_LOADCOUNTDOWN_MAP = Cargando mapa %s en %d segundos
MSG_LOADCOUNTDOWN = Cargando mapa siguiente en %d segundos
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
Reply


Thread Tools
Display Modes

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 04:30.


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