View Single Post
Author Message
xerox8521
Senior Member
Join Date: Sep 2011
Old 10-31-2021 , 12:34   [L4D2] Inject Adrenaline to your Teammates
Reply With Quote #1

Based on the idea by MilanesaTM found here

This Plugin allows you to inject adrenaline to nearby survivor teammates.

Works on any gamemode.

How to Inject:
  1. Have Adrenaline actively equipped
  2. Go close to a survivor teammate you whish to inject it to
  3. Hold the USE key (E by default) for 2 seconds (default)

ConVars:
  • inject_adrenaline_version - Version of the Plugin
  • inject_adrenaline_range - Maximum Distance between injector and receiver. If any player is beyond this range it will not inject. Default: 128.0
  • inject_adrenaline_duration - Time it takes until the adrenaline is injected. Default: 2.0

The duration of the adrenaline effect can be adjusted using the build in ConVar: adrenaline_duration


REQUIREMENTS:
This plugin requires Left 4 DHooks Direct to use and for compiling.

Installation:
Put the inject_adre.smx into addons/sourcemod/plugins
Load a different map or restart the server or use "sm plugins load inject_adre" in the server console.

Using Get Plugin will fail due to the dependency of Left 4 DHooks Direct
Attached Files
File Type: sp Get Plugin or Get Source (inject_adre.sp - 502 views - 10.2 KB)
File Type: smx inject_adre.smx (7.3 KB, 610 views)

Last edited by xerox8521; 10-31-2021 at 17:11. Reason: Update to Version 1.0.1
xerox8521 is offline