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

RSS[CSGO] A Sprint command for CSGO


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description
A Sprint command for CSGO with optional slowdown, cooldown and feedback messages and sounds.

Feature list
Implements a speed boost for a configurable amount of time.
Optional slowdown time after the speed boots is used
Configurable cooldown time
Optional feedback messages
Optional feedback sounds

CVAR/Commands
sm_abs_sprint
The command to bind to a key to activate sprint.
For example in the console type
bind "q" "sm_abs_sprint"
Use whatever free key you have or want for sprint instead of the "q" key in this example

sm_abs_sprint_enabled
Sprint Enabled = 1 or Disabled = 0

sm_abs_sprint_duration
Time in seconds speed boost will last
Default = 6

sm_abs_sprint_speed
Speed boost amount
Default = 1.50 times as fast

sm_abs_sprint_slowdown_enabled;
Sprint Slowdown Enabled = 1 or Disabled = 0
When enabled player speed is slower than normal for a period of time after using sprint

sm_abs_sprint_slowdown_duration;
Time in seconds slowdown will last
Default = 8
If slowdown is enabled then the the time you have to wait before using sprint agin is:
sm_abs_sprint_slowdown_duration + sm_abs_sprint_cooldown_duration

sm_abs_sprint_slowdown_speed;
Speed slowdown amount
Default = 0.75 times as fast

sm_abs_sprint_cooldown_duration
Time in seconds to wait before using the speed boost again
Default = 30

sm_abs_sprint_showMessages
Sprint Messages Enabled = 1 or Disabled = 0
Colored messages will be shown for Sprint/Slowdown/Cooldown - Start/End

sm_abs_sprint_playSounds
Sprint Sounds Enabled = 1 or Disabled = 0
Sounds will be Played for Sprint/Slowdown/Cooldown - Start/End

sm_sm_abs_sprint_SoundVolume
Sprint Sounds Volume 0 to 50
Default = 30
Sets how loud the sounds will be

Installation instructions
Click the Get Plugin link below
Put the ABS_CSGO_Sprint.smx file into your SourceMod plugins folder.

Plans
I implemented about everything I could think of for this but will consider
adding "good" new ideas for it.
The plugin is well tested but will fix any bugs if found.

Credits
The scripting techniques in this plugin came from the CSS version.
Credit goes to St00ne / (and bacardi Of Course!)
https://forums.alliedmods.net/showth...ghlight=sprint
Thank You!

Changes from the original CSS version.
1) Bug fix. At least for running under CSGO the original CSS plugin would crash if there was a
map change while one of the timers were running, either in sprint or in cooldown timer.

2) Enabling sprint with the use key has been removed since most of
the time you don't want to also enable sprint with use.

3) Added an optional slowdown feature where you move slower for a period of time after using sprint.

4) Added features to optionally show messages and play sounds for the sprint states of
Sprint/Slowdown/Cooldown - Start/End

Changelog
2023-01-04
v1.0 Released

Attached Files
File Type: sp Get Plugin or Get Source (ABS_CSGO_Sprint.sp - 13.4 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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