Raised This Month: $ Target: $400
 0% 

[L4D2] Fix Scavenge Issues


Post New Thread Reply   
 
Thread Tools Display Modes
Author
blueblur
New Member
Join Date: Nov 2022
Plugin ID:
8530
Plugin Version:
1.9
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
A plugin to fix and adjust details in l4d2 scavenge mode.
Old 08-10-2023 , 13:58   [L4D2] Fix Scavenge Issues
Reply With Quote #1

About
This plugin works only in scavenge mode.
It is designed to fix or manage some issues in general scavenge mode game play.

Functions
This plugin dose 3 things:

- Fixed the bug that there are no gascans produced in the first round of a new game. (Requies Left4DHooks 1.134 or above)

- Allows you to select total game round number by cvar.

- Allows you to chosse whether do auto reset round number and scores in the end of match or not by cvar.

Cvars
PHP Code:
// Allow admins to use admin command to spawn gascans ?
// Default: 0
l4d2_scavenge_allow_enrich_gascan "0"

// Total number of rounds to set. Valid values are 1, 3, 5.
// Default: 5
l4d2_scavenge_rounds "5"

// Enable end match auto restart? (in case we use vanilla rematch vote)
// Default: 1
l4d2_scavenge_match_end_restart "1" 
Admin Commander
PHP Code:
// Enrich all gascans immediately. Need to turn on the cvar before use.
sm_enrichgascan 
Requiement
- Left4DHooks 1.134 or above
- A include file to compile.

Note
- This plugin is recommended to play with plugin readyup from L4D2 Competitive Rework (forward use). It is also compatiable with vanilla scavenge.

- The Missing-gascan issue can actually be resolved by Lux's L4D2_ChangeLevel when switching the map. But this issue also causes when the first client entering the server and the server being defaultly running the scavenge mode. The recent update of Left4DHooks provided a better solution (which is to spawn the gascan immediately).

- Part of code was from other. Credit to Eyal282.
Attached Files
File Type: inc scavenge_func.inc (10.8 KB, 50 views)
File Type: sp Get Plugin or Get Source (l4d2_fix_scav_issues.sp - 43 views - 4.2 KB)

Last edited by blueblur; 08-28-2023 at 21:20. Reason: update 1.9
blueblur is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-24-2023 , 20:23   Re: [L4D2] Fix Scavenge Issues
Reply With Quote #2

Nice.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Reply



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 12:45.


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