Raised This Month: $ Target: $400
 0% 

FF2 Freak Fortress 2 1.10.14 Released


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-16-2014 , 23:56   Re: Freak Fortress 2 1.9.3 Released (and 1.10.0 betas)
Reply With Quote #11

Quote:
Originally Posted by friagram View Post
It's had both removeplayeritem and acceptentityinput kill for a long while now, I do this:

PHP Code:
stock TF2_RemoveWeaponSlot(clientslot)
{
    
decl ew;
    new 
weaponIndex;
    while ((
weaponIndex GetPlayerWeaponSlot(clientslot)) != -1)
    {
        
ew GetEntPropEnt(weaponIndexProp_Send"m_hExtraWearable");
        if(
IsValidEntity(ew))
        {
            
TF2_RemoveWearable(clientew);
        }
        
RemovePlayerItem(clientweaponIndex);
        
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.
Powerlord is offline
 



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 14:03.


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