Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Gear Transfer (2.33) [28-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
DreadedGhoul575
Senior Member
Join Date: Apr 2016
Old 07-27-2018 , 16:24   Re: [L4D & L4D2] Gear Transfer (1.6.0) [05-May-2018]
Reply With Quote #231

This appear to doesn't work, when you try to use it for both games (currently works for l4d1 for me).
DreadedGhoul575 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 07-27-2018 , 17:25   Re: [L4D & L4D2] Gear Transfer (1.6.0) [05-May-2018]
Reply With Quote #232

Quote:
Originally Posted by DreadedGhoul575 View Post
This appear to doesn't work, when you try to use it for both games (currently works for l4d1 for me).
Appears to work for me. Thanks.
__________________
Silvers is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 07-28-2018 , 13:59   Re: [L4D & L4D2] Gear Transfer (1.6.0) [05-May-2018]
Reply With Quote #233

Just implemented this plugin across my servers and it's working well too for me.
Mr. Man is offline
Sev
Veteran Member
Join Date: May 2010
Old 08-21-2018 , 15:53   Re: [L4D & L4D2] Gear Transfer (1.6.1) [14-Aug-2018]
Reply With Quote #234

This isn't a request btw...

Just wondering if you've ever thought about or found out about the method to make bots pickup these items like the defib and throwables and physically throw them to you like they do pills as opposed to items simply appearing in your inventory? I remember someone discovered the method a long time back, but they never shared it pubically.

Again, not a complaint or a request. Just wondering if you've ever figured out this method and/or thought about incorporating it into your plugin either optionally or as a replacement method?
Sev is offline
bazrael
Senior Member
Join Date: Jan 2010
Location: Where Lucy became superw
Old 02-11-2019 , 19:10   Re: [L4D & L4D2] Gear Transfer (1.6.1) [14-Aug-2018]
Reply With Quote #235

Quote:
Originally Posted by Sev View Post
This isn't a request btw...

Just wondering if you've ever thought about or found out about the method to make bots pickup these items like the defib and throwables and physically throw them to you like they do pills as opposed to items simply appearing in your inventory? I remember someone discovered the method a long time back, but they never shared it pubically.

Again, not a complaint or a request. Just wondering if you've ever figured out this method and/or thought about incorporating it into your plugin either optionally or as a replacement method?
This thought reminds me a long-term trouble when anyone throws a bottle of pills or an adrenaline shot to you with right mouse key, the item will hold in your hand instantly. This annoying setting will interrupt what you're doing and may use up the item unintentionally since you are pressing the left mouse key...

Once upon a time, my friend was intended to crown a Witch with pump shotgun, but his HP was pretty low and one of stupid bot threw a bottle of pills at perfect timing, and then my friend ate pills before Witch without shotgun so, of course, he incapacitated right away and wasted that bottle of pills... (He also killed that stupid bot after *that*.)

Is it possible to make pills or an adrenaline shot keep in inventory when anyone gives them to you, no matter it's through right mouse key (default setting) or R key transferring? (The dream came true.)
__________________
Kill all the son of a bitches, that's my official instructions.
L4Dε Modified Talker

Last edited by bazrael; 11-09-2020 at 19:38.
bazrael is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 03-14-2019 , 09:01   Re: [L4D & L4D2] Gear Transfer (1.6.1) [14-Aug-2018]
Reply With Quote #236

I don't know if this is possible - assuming this plugin is still supported, but can the bots have a preference in what items they pick-up, whether they're carrying (or not carrying) anything. So it gives bots a preference at any pick-up point to choose between picking-up for example; a defibrillator instead of a medkit - or vice versa. Same thing could apply to a molly instead of a pipe-bomb - or vice versa.

Example in Autoexec file could be:

// 0=Off, 1=bot grab priority med-kit, 2=bot grab priority defibrillator.
l4d_gear_transfer_bot_priority "2"

So given a choice based upon the above value 2, if the bot is carrying a med-kit, and it eventually finds a defibrillator, it would drop their medkit to pickup the defibrillator.

Or if bot was NOT carrying anything, but found both items together, it'd grab the defibrillator and not the med-kit. And if there were no defibrillator and only found a med-kit, the bot would pickup the med-kit anyway.

Is this something that's even doable?
Sunyata is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-14-2019 , 14:14   Re: [L4D & L4D2] Gear Transfer (1.6.1) [14-Aug-2018]
Reply With Quote #237

Quote:
Originally Posted by Sunyata View Post
Is this something that's even doable?
Re-arrange the "g_Pickups" array and recompile.
__________________
Silvers is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 03-15-2019 , 05:53   Re: [L4D & L4D2] Gear Transfer (1.6.1) [14-Aug-2018]
Reply With Quote #238

Thanks for the pointer, Silvers

I'll make that change to your script and test it out...
Sunyata is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-09-2019 , 09:04   Re: [L4D & L4D2] Gear Transfer (1.6.1) [14-Aug-2018]
Reply With Quote #239

Fix for:

Quote:
failed to vocalize ... (for custom models)
PHP Code:
    else {
        
i_Character GetEntProp(i_ClientProp_Send"m_survivorCharacter");
        if (
g_bLeft4Dead2) {
            switch (
i_Character) {
                case 
0:    { Format(s_Model,9,"gambler"); i_Type 2; }    // Nick
                
case 1:    { Format(s_Model,9,"producer"); i_Type 4; }    // Rochelle
                
case 2:    { Format(s_Model,9,"coach"); i_Type 1; }        // Coach
                
case 3:    { Format(s_Model,9,"mechanic"); i_Type 3; }     // Ellis
                
case 4:    { Format(s_Model,9,"NamVet"); i_Type 5; }     // Bill
                
case 5:    { Format(s_Model,9,"TeenGirl"); i_Type 8; }     // Zoey
                
case 6:    { Format(s_Model,9,"Biker"); i_Type 6; }     // Francis
                
case 7:    { Format(s_Model,9,"Manager"); i_Type 7; }     // Louis
            
}
        }
        else {
            switch (
i_Character) {
                case 
0:    { Format(s_Model,9,"TeenGirl"); i_Type 8; }    // Zoey
                
case 1:    { Format(s_Model,9,"NamVet"); i_Type 5; }        // Bill
                
case 2:    { Format(s_Model,9,"Biker"); i_Type 6; }        // Francis
                
case 3:    { Format(s_Model,9,"Manager"); i_Type 7; }     // Louis
            
}
        }
        
//LogError("failed to vocalize %s for %s", s_Class, s_Model); return;
    

L4D2 version is untested.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_gear_transfer_fork.sp - 417 views - 60.4 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-31-2019 , 21:51   Re: [L4D & L4D2] Gear Transfer (1.6.1.1) [09-May-2019]
Reply With Quote #240

Added, thanks.

Quote:
1.6.1.1 (09-May-2019) (Dragokas)
- Added detection of sex additionally by character (for custom models).
__________________
Silvers 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 09:15.


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