|
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
|
05-16-2014
, 23:56
Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
|
#671
|
Quote:
Originally Posted by friagram
It's had both removeplayeritem and acceptentityinput kill for a long while now, I do this:
PHP Code:
stock TF2_RemoveWeaponSlot(client, slot)
{
decl ew;
new weaponIndex;
while ((weaponIndex = GetPlayerWeaponSlot(client, slot)) != -1)
{
ew = GetEntPropEnt(weaponIndex, Prop_Send, "m_hExtraWearable");
if(IsValidEntity(ew))
{
TF2_RemoveWearable(client, ew);
}
RemovePlayerItem(client, weaponIndex);
AcceptEntityInput(weaponIndex, "Kill");
}
}
It seems to work on everything, but bot killers.
I've tried not using acceptentitinput kill, removeedict, etc, nothing gets rid of them.
I think, I'll try just using removeplayeritem, but I think it does nothing.. because when I tried just doing it, nothing happens at all. Don't know if it's broken on windows, or linux, or both, or what.
Not calling removewearable on the fob, also seems to do nothing, so I've no idea.
|
You may also need to handle "m_hExtraWearableViewModel"
__________________
Not currently working on SourceMod plugin development.
|
|
|
|