View Single Post
Author Message
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-30-2021 , 12:21   [L4D2] Multiple Gascan and Cola Fill [v1.0.1 | 31-January-2021]
Reply With Quote #1

L4D2 ONLY

Description

By default you have to wait before someone pour a gascan or deliver a cola bottles.

This plugin allow multiple gascans and colas to be filled at the same time.

Currently, supports:
  • Gascan
  • Cola Bottles

Features
  • Allow multiple gascans and colas to be filled at the same time.
  • Allow configuring which type (gascan/cola) should be affected by the plugin.

Cvars

A configuration file named "l4d2_multiple_gascan_fill.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

PHP Code:
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_multiple_gascan_fill_enable "1"

// Which types should be affected by the plugin.
// 0 = NONE, 1 = GASCAN, 2 = COLA.
// Add numbers greater than 0 for multiple options.
// Example: "3", enables for GASCAN and COLA.
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "3.000000"
l4d2_multiple_gascan_fill_type "3" 
Admin Commands
  • sm_print_cvars_l4d2_multiple_gascan_fill => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Notes
  • This was achieved by resetting (-1) the "m_useActionOwner" netprop on "point_prop_use_target" entity, every time someone starts using it.

Thank you!

Conflicting Plugins

Related Plugins

Post Reply
  • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

Installation
  • Put the "l4d2_multiple_gascan_fill.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_multiple_gascan_fill.sp - 378 views - 9.0 KB)
__________________

Last edited by Marttt; 01-15-2023 at 12:19.
Marttt is offline