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[L4D & 2] Pick Up / No Auto Switch


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
Developed after SirPlease's initial work. Big thanks to him.

This plugin allows players to customize their auto switch setting that was forced by game,
which means players can decide to not pull out weapons when picking up.

Besides it provides control over behaviors regarding:
  • Receiving light health items (stop the game forcing players to pull out)
  • Picking up incapped teammates (interrupt the pick-up under certain situations)

Known Issues:
Anyway the features are accomplished server-side, so inevitably there is an unsync issue.

Unlike other games like CS:GO, the auto switch is forced in game, which means the client side will always predicts this behavior until response from server side.
Eventually it boils down to some failures in manual switching at the instant picking up weapons. Although the time gap has been pretty small (a server frame), it's still noticable when players' latency go up.

CVars:
PHP Code:

// "Flags for Switching from current item (1:Weapons, 2: Passed Pills)"
// The default flags applied on clients
// ("Weapons" flag applies only when the client has never used the command to customize)
pickup_switch_flags "3" 

// "Flags for Stopping Pick-up progress on Incapped Survivors (1:Spit Damage, 2:TankPunch, 4:TankRock"
pickup_incap_flags "7" 


Player Commands:
PHP Code:

// Toggle the auto switch setting
// The setting is saved server-side and restored every time joining the server.
sm_secondary 


Dependency:

Installation:
  • Get l4d2_pickup.smx into plugins folder.
  • Get l4d2_pickup.txt into gamedata folder.
  • Get l4d2_pickup.phrases.txt into translations folder.
    • As an English translation file, it can be distributed into other language versions.


Extra Compiling Requirement:

GitHub Repository

DO NOT CLICK "Get Plugin" BELOW

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_pickup.sp - 19.5 KB)
File Type: txt l4d2_pickup.txt (5.7 KB)
File Type: txt l4d2_pickup.phrases.txt (262 Bytes)
File Type: smx l4d2_pickup.smx (17.8 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ę...