[REQ][L4D] Drop weapons
hi, i was thinking on a plugin that allows you to drop your primary weapon and second pistol, medkit and explosives whenever you want. with a specific key.
Possible? =D |
Re: [REQ][L4D] Drop weapons
I think so. But should rather use a chat trigger - all commands are bound for living survivors, no free button which can be used for that. My suggestion is to get survivor's active weapon slot, fakeclient command give that weapon, then remove weapon from survivor.
A few problems however - i doubt you can drop pistol (but we can try), and i dont know how to set ammo in dropped weapon. |
Re: [REQ][L4D] Drop weapons
the ammo in droped weapon it's not big deal. but i was suggesting this instead of just give to toher players ammo packs. something tnat it's impossible to do cuz ammo packs doesn't exist =P
so instead of passing ammo, pass the weapon. |
Re: [REQ][L4D] Drop weapons
Quote:
Oh well - i think we can "remember" the current ammo of player BEFORE he "drop" weapon. But this way we also need to hook if he is picking up "dropped" weapon again - that can be abit tricky, we can use GetClientAimTarget + hooking IN_USE to help with it. But how the hell we determine if weapon he picking up is the one he dropped?? "give" command dont have index property. Maybe just plain entity spawn should work, but im not too good at spawning something from code. Can someone give example of spawning pickable weapon? |
Re: [REQ][L4D] Drop weapons
Quote:
|
Re: [REQ][L4D] Drop weapons
Quote:
I'll see what I can do for this request. |
Re: [REQ][L4D] Drop weapons
1 Attachment(s)
Here you go, I tested it a bit. Seems to work fine. uses sm_drop so type !drop in chat.
|
Re: [REQ][L4D] Drop weapons
let's see.
|
Re: [REQ][L4D] Drop weapons
well, it's good. but it's annoying have to write !drop everytime.
i can bind a key to say it of course, but it's still annoying to flood the chat. what it's the cvar for that? so i can bind a key to attach it. PD: other idea: if i want the bots to drop a gun, i can say something like "louis drop" like saying to another teammate to drop that gun. PD2: still saying that drop ammo would be more useful =D |
Re: [REQ][L4D] Drop weapons
Quote:
You can use the fake client execute plugin if you want to force other players like bots to execute commands (like sm_drop) http://forums.alliedmods.net/showthread.php?p=630439 |
All times are GMT -4. The time now is 22:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.