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

[L4D2] Drop Secondary (v1.4/1.6, 26-11-19)


Post New Thread Reply   
 
Thread Tools Display Modes
PVNDV
Junior Member
Join Date: Mar 2015
Old 11-26-2019 , 01:01   Re: [L4D2] Drop Secondary (v1.4, 28-09-18)
Reply With Quote #21

update
PVNDV is offline
headingWest
Junior Member
Join Date: Jan 2020
Old 01-02-2020 , 07:36   Re: [L4D2] Drop Secondary (v1.4, 28-09-18)
Reply With Quote #22

I think that "You get your own weapon if it has been stolen" thingy is pretty excessive and not needed at all imo. I would at least add a cvar for it.
headingWest is offline
PVNDV
Junior Member
Join Date: Mar 2015
Old 01-02-2020 , 15:54   Re: [L4D2] Drop Secondary (v1.4, 28-09-18)
Reply With Quote #23

Do you think that when it disappears from your slot it is better?
For now with 1.6 you just get pistol as should, if someone pick up your weapon

Last edited by PVNDV; 01-02-2020 at 16:01.
PVNDV is offline
headingWest
Junior Member
Join Date: Jan 2020
Old 01-03-2020 , 08:24   Re: [L4D2] Drop Secondary (v1.4, 28-09-18)
Reply With Quote #24

Doesn't just rescued survivor get pistol as the secondary weapon by default? I don't see the reason to include that line in the description, as it can be easily confused with that your plugin duplicates the weapon that has been picked up from the ground after your death, and gives it to you again after the rescue.
headingWest is offline
PVNDV
Junior Member
Join Date: Mar 2015
Old 01-03-2020 , 19:17   Re: [L4D2] Drop Secondary (v1.4, 28-09-18)
Reply With Quote #25

Quote:
Originally Posted by headingWest View Post
... your plugin duplicates the weapon that has been picked up from the ground after your death, and gives it to you again after the rescue.
Yes, it was there in previous versions, you got exactly same weapons after rescue or defib if someone take it, now it's like default you just get pistol weapon. I just did not add this to the description this time, sorry.
PVNDV is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 10-03-2020 , 15:16   Re: [L4D2] Drop Secondary (v1.4/1.6, 26-11-19)
Reply With Quote #26

Drop Secondary Improved v2.2 (2022/10/7)
- Convert All codes to new syntax.
- Support Custom Melee
- Create Fake Event "weapon_drop" when drop secondary weapon on death

Apply to:
l4d2

-Convar-
None

-Edit Github-
Latest version always here
__________________

Last edited by HarryPotter; 10-06-2022 at 12:51.
HarryPotter is offline
TBK Duy
Member
Join Date: Jun 2017
Location: Vietnam
Old 03-04-2021 , 04:47   Re: [L4D2] Drop Secondary (v1.4/1.6, 26-11-19)
Reply With Quote #27

I just noticed that the custom melee weapon does not getting drop, can someone add support for all custom secondary weapon ?
TBK Duy is offline
plug344
Member
Join Date: Dec 2021
Old 01-11-2022 , 03:07   Re: [L4D2] Drop Secondary (v1.4/1.6, 26-11-19)
Reply With Quote #28

Is there a reverse version ? It means that players will not drop anything when they die, not only secondary weapons (pistols, melee weapons), but also rifles, throwing items, first aid kits, pain pills and so on
plug344 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-11-2022 , 04:49   Re: [L4D2] Drop Secondary (v1.4/1.6, 26-11-19)
Reply With Quote #29

Quote:
Originally Posted by plug344 View Post
Is there a reverse version ? It means that players will not drop anything when they die, not only secondary weapons (pistols, melee weapons), but also rifles, throwing items, first aid kits, pain pills and so on
PHP Code:
#include <sourcemod>
#include <sdktools>

public void OnPluginStart()
{
    
HookEvent("player_death"OnPlayerDeathEventHookMode_Pre);
}

public 
void OnPlayerDeath(Event event, const char[] namebool dontBroadcast
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
    if(
client == || !IsClientInGame(client) || GetClientTeam(client) != 2)
    {
        return;
    }

    
int itemIdx;
    for (
int x 0<= 4x++)
    {
        if((
itemIdx GetPlayerWeaponSlot(clientx)) != -1)
        {
            
RemovePlayerItem(clientitemIdx);
            
AcceptEntityInput(itemIdx"Kill");
        }
    }

__________________
HarryPotter is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 01-11-2022 , 06:45   Re: [L4D2] Drop Secondary (v1.4/1.6, 26-11-19)
Reply With Quote #30

Quote:
Originally Posted by TBK Duy View Post
I just noticed that the custom melee weapon does not getting drop, can someone add support for all custom secondary weapon ?
Drop Secondary Improved v1.9 (2022/1/11)
- Support Custom Melee
__________________

Last edited by HarryPotter; 01-11-2022 at 06:45.
HarryPotter 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 13:46.


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