[TF2] How to disable player picks up weapons?
As the title, if player picks up my modified weapons when I die, the effects will keep on the weapons and they can use it.
So does there any concoles to block this setting? |
Re: [TF2] How to disable player picks up weapons?
Quote:
|
Re: [TF2] How to disable player picks up weapons?
Thanks for the concole.
And how to hook the weapons I dropped? |
Re: [TF2] How to disable player picks up weapons?
PHP Code:
|
Re: [TF2] How to disable player picks up weapons?
what exactly is OnWeaponCanUse
does that fire when a weapon appears that someone can equip? when someone tries to equip it? or... |
Re: [TF2] How to disable player picks up weapons?
Quote:
|
Re: [TF2] How to disable player picks up weapons?
Quote:
Any mods that mess with item attributes are going to be more messy with this feature. As an alternative solution, you can kill the weapon entity when it is dropped. |
Re: [TF2] How to disable player picks up weapons?
kill the weapon entity as in use the cvar to set their lifetime to 0 rather than making an extraneous plugin to repeat that mechanic
|
Re: [TF2] How to disable player picks up weapons?
Okay I tested it. It fires whenever you are equipped with a weapon, so during/before/after?? post_inventoryapplication
and every time you pick up and switch for a new weapon I don't know how one would differentiate that firing when first equip with your stuff or switching to a new weapon, though. edit: I used a haphazard way of doing it (wait till round starts). Returning Plugin_Handled when trying to pick up a primary weapon makes you drop your primary weapon, but not take the new one, leaving you with no weapon in the primary slot. And then you can't pick up any primary weapons because you need to have one to drop in the first place. |
Re: [TF2] How to disable player picks up weapons?
Quote:
|
All times are GMT -4. The time now is 12:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.