AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Weapon Drop (https://forums.alliedmods.net/showthread.php?t=123098)

MarshalZCC 09-01-2010 23:07

Re: [L4D2] Weapon Drop
 
You may want a cvar that selects between "hunting_knife" and "knife" if you plan on adding this in.

nagypocak 09-05-2010 19:17

Re: [L4D2] Weapon Drop
 
Quote:

Originally Posted by MarshalZCC (Post 1286743)
Knife support:

Code:

#define MODEL_V_KNIFE "models/v_models/v_knife_t.mdl"
Code:

else if (StrEqual(item, MODEL_V_KNIFE))
{
    DispatchKeyValue(index, "model", MODEL_V_KNIFE);
    DispatchKeyValue(index, "melee_script_name", "hunting_knife");
}

NOTE: This assumes using a modified VPK that adds knife support using "hunting_knife.txt". The original german version is "knife.txt"

Cool :wink:

and as for Riotshield I guess it would be:
Code:

#define MODEL_V_RIOTSHIELD "models/weapons/melee/v_riotshield.mdl"
Code:

else if (StrEqual(item, MODEL_V_RIOTSHIELD))
{
    DispatchKeyValue(index, "model", MODEL_V_RIOTSHIELD);
    DispatchKeyValue(index, "melee_script_name", "riotshield");
}

with the same assumption, a VPK adding support to riotshield.txt script

Silvers 11-29-2010 19:53

Re: [L4D2] Weapon Drop
 
I would suggest replacing this
PHP Code:

        RemovePlayerItem(clientGetPlayerWeaponSlot(clientslot)); 

with

PHP Code:

        new item GetPlayerWeaponSlot(clientslot);
        
AcceptEntityInput(item"kill"); 

]Because RemovePlayerItem() simply does not delete the entity, but removes/drops it from the player.

:wink:

MarshalZCC 11-29-2010 21:17

Re: [L4D2] Weapon Drop
 
Isn't that the point?

Silvers 11-29-2010 21:33

Re: [L4D2] Weapon Drop
 
Not if the plugins creating a new entity and applying the previous settings (ammo, upgrades etc).

MarshalZCC 11-29-2010 21:55

Re: [L4D2] Weapon Drop
 
Ah, I understand now. Good catch.

Machine 03-21-2011 04:13

Re: [L4D2] Weapon Drop
 
Updated to 1.3

EDIT: The gamedata currently only has the signature for windows as I don't have access to a linux server. Anyone be so kind as to find the linux signature for weapon_drop?

TheSuggestioner 08-25-2011 16:38

Re: [L4D2] Weapon Drop
 
You should add an option for forcing some players to drop weapons.
(sm_drop (name, @me, @alive, etc)
Yes, of course, that feature should be root admin only.

Akhenamon 12-19-2011 11:43

Re: [L4D2] Weapon Drop
 
Since there aren't any version for linux, I need to get back my working version 1.2.
Could someone make a post with this plugin v1.2 (the source file) , please? I really need it.

Machine 12-20-2011 00:46

Re: [L4D2] Weapon Drop
 
I uploaded the older version for linux users. I still haven't got the linux signature for weapon drop. :/


All times are GMT -4. The time now is 14:10.

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