Raised This Month: $2 Target: $400
 0% 

[L4D & L4D2] Gear Transfer (2.11) [26-Jun-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 05-14-2020 , 00:08   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #281

Quote:
Originally Posted by Sev View Post
It would be interesting if this plugin could also pickup gascans and add them to the players backs as seen in Hard Rain for both bots and humans. The most significant reason for this besides the obvious option of having more fire at the disposable of the survivors is also a duel purpose with the chainsaw refuel plugin. Some of these campaigns simply don't spawn gascans at all, which makes carrying a chainsaw pointless, despite being able to refuel it. Alternatively, having a different/additional way to refuel the chainsaw is probably an option.
This is possible by editing the gascan slot through the info editor plugin
xZk is offline
ceasedU
Member
Join Date: Sep 2018
Old 05-15-2020 , 05:24   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #282

is there any chance you can add a feature to disable bots form auto grabbing in certain chapters like hard rain ch1. Its still doable its just the bots take everything before i have the chance to leave
ceasedU is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 05-15-2020 , 07:29   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #283

Use a maps config plugin to change the bots auto grab cvar on specific maps.
__________________
Silvers is offline
Sev
Veteran Member
Join Date: May 2010
Old 05-16-2020 , 18:42   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #284

Quote:
Originally Posted by xZk View Post
This is possible by editing the gascan slot through the info editor plugin
Gave it a ballpark shot. Doesn't seem like im close.

Could you point me in the right direction for adding the gascan as a slot item? I've tried other combos besides the below one.

"weapon_gascan"
{
"WeaponType" "upgradepack"
"primary_ammo" "AMMO_TYPE_FIRSTAID"
}

Last edited by Sev; 05-16-2020 at 18:43.
Sev is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 05-16-2020 , 19:52   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #285

Quote:
Originally Posted by Sev View Post
It would be interesting if this plugin could also pickup gascans
This would require a ton of work + rewrite Gear Transfer to allow more than 9 types of items. Not happening.


Quote:
Originally Posted by Sev View Post
"WeaponType" "upgradepack"
Quote:
"WeaponType" "pistol"
Bot's don't pickup "upgradepack" by game default, why would you set it to this value.

Isn't there already a plugin floating around that allows bots to pickup gascans? Maybe not on back or method to grab from bot, but that wouldn't be difficult to write, someone else can do it.
__________________
Silvers is offline
fbef0102
Senior Member
Join Date: Sep 2017
Location: TW
Old 06-24-2020 , 10:12   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #286

hi, Silvers
I notice that something wrong if set convar l4d_gear_transfer_method "2"

PHP Code:
// 0=Off. 1=Shove only, 2=Reload key only, 3=Shove and Reload key to transfer items.
// -
// Default: "3"
l4d_gear_transfer_method "2" 
I install this plugin [L4D & L4D2] Prototype Grenades, when I hold SHOOT (LMB) + SHOVE (RMB) keys, it will transfer items to teammates.
So I fix the following code line 1114
PHP Code:
if( buttons IN_RELOAD || buttons IN_ATTACK2 
to
PHP Code:
if( buttons IN_RELOAD || (buttons IN_ATTACK2 && !(buttons IN_ATTACK))) 
__________________

Last edited by fbef0102; 06-24-2020 at 10:13.
fbef0102 is offline
Sev
Veteran Member
Join Date: May 2010
Old 06-24-2020 , 10:45   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #287

Welp, I managed to give the gascan/cola its own slot with the info editor. Was easier than I thought.

Something seems to be going on with the bots and adrenaline though.

I have the proper settings in my config, but the bots won't instantly grab and transfer adrenaline for whatever reason. Every other weapon/health item is a non issue. Not sure what's causing it. Nothing in terms of error in the logs either.

l4d_gear_transfer_types_give "123456789"
l4d_gear_transfer_types_grab "123456789"

Filename: l4d_gear_transfer.smx
Title: [L4D & L4D2] Gear Transfer (Survivor bots can automatically pickup and give items. Players can switch, grab or give items.)
Author: SilverShot
Version: 2.10
Status: running

Last edited by Sev; 06-24-2020 at 10:47.
Sev is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 06-26-2020 , 09:10   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #288

Quote:
Originally Posted by fbef0102 View Post
hi, Silvers
Thank you. Updated with your fix.

Code:
2.11 (26-Jun-2020)
    - Fixed right click passing conflict with "Prototype Grenades" plugin. Thanks to "fbef0102" for fixing.

Quote:
Originally Posted by Sev View Post
Welp, I managed to give the gascan/cola its own slot with the info editor. Was easier than I thought.

Something seems to be going on with the bots and adrenaline though.
Nice. What do you mean won't instantly grab? Theres no difference between those items and all others. I have no problem here.
__________________
Silvers is offline
Sev
Veteran Member
Join Date: May 2010
Old 06-26-2020 , 16:04   Re: [L4D & L4D2] Gear Transfer (2.10) [10-May-2020]
Reply With Quote #289

Quote:
Originally Posted by Silvers View Post

What do you mean won't instantly grab? Theres no difference between those items and all others. I have no problem here.
For instance, when the bots are around other items, they transfer to them immediately and then pretty much immediately to me if I don't have anything. This doesn't happen with adrenaline, but does for everything else. They just use the vanilla behavior of walking towards them to pick them up, then if you don't have them, they will transfer them to you the old way up close.

For comparison sake. I had one of the older versions of the plugin still around.

Version: 1.5.10 from way back in 2012 and the bots transfer adrenaline just fine quickly to themselves and to me without the vanilla behavior. Maybe then newest version is conflicting with another plugin I have on. Just have to do some trial and error I guess.

Last edited by Sev; 06-26-2020 at 16:06.
Sev 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 15:01.


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