AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   xLoadCountdown - countdown until map load (https://forums.alliedmods.net/showthread.php?t=113964)

xOR 12-31-2009 17:13

xLoadCountdown - countdown until map load
 
3 Attachment(s)
http://xloadcountdown.x-base.info/lo...dCountdown.png

Screenshots:

http://xloadcountdown.x-base.info/sc...tdown_CS_s.png http://xloadcountdown.x-base.info/sc...n_CS_MAP_s.png
(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? :wink:

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

Fry! 12-31-2009 17:22

Re: xLoadCountdown - countdown until map load
 
Thanks!

matsi 12-31-2009 17:23

Re: xLoadCountdown - countdown until map load
 
Maybe cvar for message type(?):
- hud
- chat
- print_center

edit: Where is the language file?

xOR 12-31-2009 17:28

Re: xLoadCountdown - countdown until map load
 
it's there now. stuff is coming slow, sorry :mrgreen:
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. :wink:

Zapdos1 12-31-2009 17:29

Re: xLoadCountdown - countdown until map load
 
good plugin, but can it make some overflow?? :S

(sorry for the english)

xOR 12-31-2009 17:35

Re: xLoadCountdown - countdown until map load
 
what do you mean? are you getting overflow error messages?

Zapdos1 12-31-2009 17:35

Re: xLoadCountdown - countdown until map load
 
Quote:

Originally Posted by xOR (Post 1038341)
what do you mean? are you getting overflow error messages?

i'm just asking, can this plugin make overflow problems??

xOR 12-31-2009 17:39

Re: xLoadCountdown - countdown until map load
 
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...

xOR 12-31-2009 17:44

xLoadCountdown - finnish language added
 
finnish translation was added.

many thanks for the translation matsi but my friend X3D was just a second faster than you.

Starsailor 12-31-2009 18:05

Re: xLoadCountdown - countdown until map load
 
Spanish traslation

Code:

[es]
MSG_LOADCOUNTDOWN_MAP = Cargando mapa %s en %d segundos
MSG_LOADCOUNTDOWN = Cargando mapa siguiente en %d segundos



All times are GMT -4. The time now is 05:59.

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