Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

L4D2 Runtime: A Timer to Track Campaign Map and Total time


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Most of this plugin was laid out by a good friend and he dropped this on my lap. I have full permission to post it here and I'm posting it to you guys hoping in due time it'll blossom into a fuller more capable time tracker.

What it does

Currently, there are 3 chat triggers. Its purpose is to track the current map time and the overall campaign time. When you start out before leaving the safe area, you'll be reminded of your last maps time (!last). When your team arrives at the safe room, you'll then be reminded of that maps run time (!now).

!now Will call up the time in this format ( current map time / total campaign time). Tracking starts when a team member leaves the safe area (or removes the bar from the door). Calling !now before tracking begins will show e.g, ( 00:00:00 / 00:03:45 ). Calling !now after tracking begins will show e.g., ( 00:00:10 / 00:03:55 ). This tracking stops when the whole team is safe.

!last follows the same format as !now but means ( last maps time / total campaign time up to that point ). Upon starting the next new map, you'll be reminded of this for a moment. To manually pull it up at any time, use !last.

!reset Will reset all the timers (!now and !last) back to 00:00:00 / 00:00:00. Although this is helpful it was truly added because tracking doesn't currently reset if a vote to restart passes or if a changelevel changes to another map. (I'd prefer this to be automatic, if you have the time and skills to figure this out and contribute, I appreciate it).

Why?
A few friends and I enjoy running all the campaigns and prefer having a better description of the time spent completing them than the games "completed time". If you enjoy running and would like a better timer than the games credit summary, try it.

Caveats Some campaigns won't play nice and one example is Clamtoll map 2. The tracking will never begin because player_left_start_area and/or door_unlocked are never fired. It's up to the map authors to implement this properly if at all and I don't know of another way to get this information reliably. So, the timer will kick in for the most part but when it breaks, let's blame the other guy right?

Future I'd like to add a couple things to this mod but I honestly don't know the language enough to implement them any time soon.
  • Automatic reset: When a campaign restarts or a changelevel kicks in, reset the times.
  • !times: An array of prior times would be great, shows up upon finale? called with !times.
  • Memory: Having times is awesome but having a time to beat would of course be better :)

I feel like the plugin is complete enough to release and I hope those of you interested in it find it useful.

Attached Files
File Type: sp Get Plugin or Get Source (runtime.sp - 6.0 KB)
File Type: smx runtime.smx (6.7 KB)
File Type: tar runtime.tar (20.0 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...