Raised This Month: $44 Target: $400
 11% 

[L4D & 2] Pick Up / No Auto Switch


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Forgetest
Member
Join Date: Aug 2020
Plugin ID:
8202
Plugin Version:
4.2.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Alters a few things regarding picking up/giving items and incapped Players.
Old 09-29-2022 , 05:13   [L4D & 2] Pick Up / No Auto Switch
Reply With Quote #1

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 - 18 views - 19.5 KB)
File Type: txt l4d2_pickup.txt (5.7 KB, 20 views)
File Type: txt l4d2_pickup.phrases.txt (262 Bytes, 21 views)
File Type: smx l4d2_pickup.smx (17.8 KB, 15 views)

Last edited by Forgetest; 09-29-2022 at 05:26.
Forgetest 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 14:29.


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