A big thanks to DJ_WEST
for Grenade Transfer
which I used to build this.
A massive thanks to Mr.RuyC and NanX for help testing and using their server for many, many hours!
Also thanks to AtomicStryker
for tips on improving the plugin, greatly appreciated!
Thanks to JoBarfCreepy
for Danish translations.
Thanks to Tertius Gaudens
for German translations.
Thanks to disawar1
for Russian translations.
Thanks to januto
for Spanish translations.
Thanks to bazrael
for Traditional Chinese translations.
- Transfers: molotovs, pipebombs, vomitjars, defibrillators, first aid kits, pain pills, adrenaline, explosive and incendiary rounds.
- Survivor bots can pick up nearby items. (Auto Grab)
- Survivor bots can give their items to players with none. (Auto Give)
- Allows players to give items to other players.
- Allows players to give, grab or switch items with a survivor bot.
- l4d_gear_transfer_notify 1 will display text to chat like this:
How to use:
(right click melee) or press your RELOAD
(default R) key whilst looking directly at another survivor.
There may be lag skips/pauses each time l4d_gear_transfer_timer
execute. The first timer runs if l4d_gear_transfer_auto_give
is enabled. The first timer checks if the bots are in range to a survivor to transfer an item or in range to pick up an item. If auto grab is enabled the second timer (l4d_gear_transfer_timer_item
) will execute, which searches for the items to pick up.
Saved to l4d_gear_transfer.cfg
in your servers \cfg\sourcemod\
// 0=Off, 1=Enables the transfer of adrenaline.
// 0=Off, 1=Enables the transfer of defibrillators.
// 0=Off, 1=Enables the transfer of explosive rounds.
// 0=Off, 1=Enables the transfer of first aid kits.
// 0=Off, 1=Enables the transfer of incendiary ammo.
// 0=Off, 1=Enables the transfer of molotovs.
// 0=Off, 1=Enables the transfer of pain pills.
// 0=Off, 1=Enables the transfer of pipe bombs.
// 0=Off, 1=Enables the transfer of vomit jars.
// 0=Off, 1=Enables. Make bots give their items to players with none.
// 0=Off, 1=Enables. Make bots automatically pick up nearby items.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab adrenaline.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab defibrillators.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab explosive rounds.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab first aid kits.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab incendiary ammo.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab molotovs.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab pain pills.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab pipe bombs.
// 0=Off, 1=Both, 2=Bots can give, 3=Bots can grab vomit jars.
// How close you have to be to transfer an item.
// How close the bots need to be for them to pick up an item.
// 0=Plugin off, 1=Plugin on.
// 0=Shove only, 1=Reload key only, 2=Shove and Reload key to transfer items.
// Disallow bots from auto give/grab in these game modes.
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
// (L4D2 only). Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
// 0=Off, 1=Display transfer info to everyone through chat messages.
// 0=Off, 1=Play a sound to the person giving/receiving an item.
// How often to check the bot positions to survivors/items for auto give/grab.
// How often to update all the item positions for auto grab.
// 0=Off. 1=Players vocalize when transferring items.
// Gear Transfer plugin version.
- Added Traditional Chinese translations - Thanks to bazrael.
- Added cvar "l4d_gear_transfer_vocalize" to control transfer vocalizes. Thanks to bazrael for the request.
- Fixed the last update breaking auto give and auto grab.
- Added Russian translations - Thanks to disawar1.
- Added cvar "l4d_gear_transfer_modes_on" to control which game modes the plugin works in.
- Added cvar "l4d_gear_transfer_modes_tog" same as above, but only works for L4D2.
- Fires the item_pickup and player_use events when bots auto grab. Required for Footlocker Spawner 1.2+.
- Added cvar 'l4d_gear_transfer_modes_off' to turn off the plugin on certain game modes.
- Fixed deleting grenade spawns which give infinite items.
- Changed the bot allow cvars (as requested by LTR.2) so you can specify which items bots auto give/grab.
- Another attempt to fix 'm_humanSpectatorUserID' errors.
- Added chat notifications block from round start the same as vocalize block.
- Changed the previous check to make sure the netclass is 'SurvivorBot', should stop all related errors.
- Added check for 'bebop_bot_fakeclient' which caused errors.
- Removed the -attack2 after shoves thanks to Valve patching some client commands.
- Added IsVisibleTo for player to player transfers (stops transfers through walls!)
- Fixed auto give transferring directly after a player to player transfer.
- Optimized a lot code.
- Fixed allow cvars not restricting their correct items.
- Added cvar 'l4d_gear_transfer_modes' to disable auto give/grab in listed game modes.
- Added cvar 'l4d_gear_transfer_timer_item' to specify how often the auto grab item list updates.
- Added delay to auto give when switching items with bots.
- Added vocalize block for 60 seconds from round start.
- Added check for translation file.
- Added finale_vehicle_leaving event to disable auto give/grab.
- Added notifications for auto give/grab when 'l4d_gear_transfer_notify' is enabled.
- Removed hint text when l4d_gear_transfer_notify set to 2. Now only shows chat notifications.
- Added ("-attack2") to stop shoving after successful transfer.
- Added FCVAR_DONTRECORD flag to the version cvar.
- Fixed 'switch' translation being given the wrong weapon name.
- Changed weapon name text color to yellow.
- Fixed player_shoved transfers not working because of a missing exclamation mark!
- Fixed Infected receiving items.
- Optimized auto give a little.
- Re-added FileExists check for scenes, now using Valve's Filesystem!
- Small changes.
- Re-added player_shoved event to transfer items.
- Removed FileExists check from scenes, now vocalizes L4D1 characters!
- Fixed creating dupe grenades when throwing.
- Fixed AutoTimer rubbish!
- Stopped auto give/grab when survivor is incapped/reviving.
- Small fixes.
- Added diplaying transfers in chat messages with translations.
- Changed some vocalize parts for The Sacrifice update.
- Fixed disabling shove transfers with first aid.
- Officially supports the first Left4Dead!
- Added check so bots will not auto grab "projectile" grenades.
- Added check so bots will not auto grab items who have owners.
- Added cvars to allow/disallow bots to auto give/grab certain items.
- Changed cvars to comply with releasing guidelines.
- Idle players no longer treated as bots.
- Small changes to auto grab.
- Disabled transfers with incapacitated players.
- Fixed disabling auto give/grab in versus.
- Changed the fix for auto grab creating two grenades again.
- Removed player_shoved event, reload+shove transfer from OnPlayerRunCmd.
- Changed the fix for auto grab creating two grenades.
- Fixed auto grab creating two grenades!
- Delaying all bots for 3 seconds after they receive an item.
- Optimized code.
- TraceFilter added on survivors so they don't block transfers.
- Delayed bots auto give for 3 seconds after they are given an item.
- Fixed auto give when sb_all_bot_team.
- Added weapon_given hook to stop pills/adrenaline being given back!
- Minor changes.
- Added adrenaline and pain pills to transfers. You can only use the reload key to switch.
- Added cvars to allow/disallow the above transfers.
- Added vocalize on first aid kit transfers.
- Renamed more appropriately to "Gear Transfer".
- Added defibrillators, first aid kits, explosive and incendiary rounds to transfers.
- Added cvars to allow/disallow the transfer of certain items.
- Changed the transfer being triggered by the Use key to the Reload key.
- Disabled auto give/grab in versus games (as they should be full with players!).
- Removed HookSingleEntityOutput, which was causing crashes.
- Some fixes.
- Added AtomicStryker's Vocalize with scenes.
- Removed Vocalize stuff.
- Changed things AtomicStryker suggested.
- Fixed UnhookEvent error.
- Added check in case of over 64 grenades.
- Initial release.
Updating from 1.5.9 or older:
- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
- Download "translations_gear_transfer.zip" and extract the "translations" folder to your servers \addons\sourcemod\ folder.
- New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
: English (en), Chinese Traditional (zho), Danish (da), German (de), Portuguese (pt), Russian (ru), Spanish (es).