Raised This Month: $12 Target: $400
 3% 

[CS:GO] Hide new arms?


Post New Thread Reply   
 
Thread Tools Display Modes
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-17-2017 , 20:41   Re: [CS:GO] Hide new arms?
Reply With Quote #181

Quote:
Originally Posted by Neuro Toxin View Post
Yeah, the gloves update killed my zombiereloaded arms plugin

Btw, I think that my zombiereloaded claws plugin still works but maybe is forbidden
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
SOBgaming
Senior Member
Join Date: Jul 2015
Old 01-20-2017 , 17:01   Re: [CS:GO] Hide new arms?
Reply With Quote #182

Quote:
Originally Posted by Franc1sco View Post
If Valve start to ban "wearable_item" then would be difficult to do it not banneable.
Any proof of them doing that yet? Or is that the current issue?
__________________

Last edited by SOBgaming; 01-20-2017 at 17:01.
SOBgaming is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 02-11-2017 , 18:17   Re: [CS:GO] Hide new arms?
Reply With Quote #183

any update on this yet? or are we forever cursed to never have back custom arm models
__________________
PresidentEvil is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-11-2017 , 18:25   Re: [CS:GO] Hide new arms?
Reply With Quote #184

Quote:
Originally Posted by PresidentEvil View Post
any update on this yet? or are we forever cursed to never have back custom arm models
Here the fix -> https://forums.alliedmods.net/showthread.php?t=293295

So topic solved
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 02-11-2017 at 18:30.
Franc1sco is offline
Send a message via MSN to Franc1sco
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 02-12-2017 , 09:54   Re: [CS:GO] Hide new arms?
Reply With Quote #185

Quote:
Originally Posted by Franc1sco View Post
How about you make it compatible with your plugin? The gloves reset to the default ones after every round.
__________________

Last edited by weeeishy; 02-12-2017 at 12:16. Reason: typo!
weeeishy is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 02-12-2017 , 12:01   Re: [CS:GO] Hide new arms?
Reply With Quote #186

Quote:
Originally Posted by weeeishy View Post
How about you make it compatible with your plugin? The gloves reset to the default ones every round.
you don't need to i guess, try the standalone version :
https://forums.alliedmods.net/showpo...1&postcount=41
__________________
ambn is offline
pkla
Member
Join Date: Oct 2010
Old 02-12-2017 , 12:33   Re: [CS:GO] Hide new arms?
Reply With Quote #187

Any chance that it will work well for Zombie:Reloaded?
I used this fix https://forums.alliedmods.net/showthread.php?t=293295 it only works for CT.

Last edited by pkla; 02-12-2017 at 12:33.
pkla is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 02-12-2017 , 13:58   Re: [CS:GO] Hide new arms?
Reply With Quote #188

Quote:
Here the fix -> https://forums.alliedmods.net/showthread.php?t=293295

So topic solved

It's not solved . On some maps the issue still exists...
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 02-13-2017 , 05:09   Re: [CS:GO] Hide new arms?
Reply With Quote #189

Quote:
Originally Posted by andi67 View Post
It's not solved . On some maps the issue still exists...
I tested my plugin in de_dust2, de_inferno and other official maps, it works.

But in unofficial maps like de_rats_1337_v2 and surf_beginner_ug...
Spoiler
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118

Last edited by rogeraabbccdd; 02-13-2017 at 05:09.
rogeraabbccdd is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 02-13-2017 , 09:42   Re: [CS:GO] Hide new arms?
Reply With Quote #190

Ok , IŽll post here what I have done till now. I canŽt guarantee that it works on every map , there might be some issues , take what you need but if you got it fixed with pieces of this , you have to post the solution here.

Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

#pragma newdecls required


char defaultModelsT[][] = 
{
    "models/player/custom_player/legacy/tm_anarchist.mdl",
    "models/player/custom_player/legacy/tm_anarchist_variantA.mdl",
    "models/player/custom_player/legacy/tm_anarchist_variantB.mdl",
    "models/player/custom_player/legacy/tm_anarchist_variantC.mdl",
    "models/player/custom_player/legacy/tm_anarchist_variantD.mdl"
};

char defaultModelsCT[][] = 
{
    "models/player/custom_player/legacy/ctm_gign.mdl",
    "models/player/custom_player/legacy/ctm_gign_variantA.mdl",
    "models/player/custom_player/legacy/ctm_gign_variantB.mdl",
    "models/player/custom_player/legacy/ctm_gign_variantC.mdl",
    "models/player/custom_player/legacy/ctm_gign_variantD.mdl"    
};

char stockModelsT[][] = 
{ 
    "models/player/custom_player/legacy/tm_phoenix.mdl",    
    "models/player/custom_player/legacy/tm_phoenix_variantA.mdl",
    "models/player/custom_player/legacy/tm_phoenix_variantB.mdl",
    "models/player/custom_player/legacy/tm_phoenix_variantC.mdl",
    "models/player/custom_player/legacy/tm_phoenix_variantD.mdl"
};
char stockModelsCT[][] = 
{
    "models/player/custom_player/legacy/ctm_fbi.mdl",
    "models/player/custom_player/legacy/ctm_fbi_variantA.mdl",
    "models/player/custom_player/legacy/ctm_fbi_variantB.mdl",
    "models/player/custom_player/legacy/ctm_fbi_variantC.mdl",
    "models/player/custom_player/legacy/ctm_fbi_variantD.mdl"
};



public void OnConfigsExecuted() 
{    
    for (int i = 0; i < sizeof(defaultModelsT); i++) 
    {
        if(defaultModelsT[i][0] && !IsModelPrecached(defaultModelsT[i]))
            PrecacheModel(defaultModelsT[i]);
    }
    for (int i = 0; i < sizeof(stockModelsT); i++) 
    {
        if(stockModelsT[i][0] && !IsModelPrecached(stockModelsT[i]))
            PrecacheModel(stockModelsT[i]);
    }    
    
    for (int i = 0; i < sizeof(defaultModelsCT); i++) 
    {
        if(defaultModelsCT[i][0] && !IsModelPrecached(defaultModelsCT[i]))
            PrecacheModel(defaultModelsCT[i]);
    }    
    for (int i = 0; i < sizeof(stockModelsCT); i++) 
    {
        if(stockModelsCT[i][0] && !IsModelPrecached(stockModelsCT[i]))
            PrecacheModel(stockModelsCT[i]);
    }

    // Replace with your own Models
    PrecacheModel("models/player/custom_player/superheroes/ultron/ultron_arms.mdl");
    PrecacheModel("models/player/custom_player/superheroes/ultron/ultron.mdl");    
}

public void OnPluginStart() 
{
    HookEvent("player_spawn", Event_Spawn, EventHookMode_Post);
} 

public Action Event_Spawn(Event gEventHook, const char[] gEventName, bool iDontBroadcast) 
{
    int client = GetClientOfUserId(gEventHook.GetInt("userid"));
    
    if (isValidClient(client) && IsPlayerAlive(client) && !IsFakeClient(client))
    {            
        int team = GetClientTeam(client);        
            
        if (team == 2) 
        {            
            char sModelT[128];
             GetEntPropString(client, Prop_Data, "m_ModelName", sModelT, sizeof(sModelT));
            
            bool bIsInArray;
            for (int i = 0; i < sizeof(defaultModelsT); i++) 
            {
                if (StrEqual(defaultModelsT[i], sModelT))
                {
                        bIsInArray = true;
                        break;
                }
            }

            if(bIsInArray) 
            {
                    SetEntityModel(client,stockModelsT[GetRandomInt(0 , -1)]);
                    // Replace with your own Model
                 SetEntPropString(client, Prop_Send, "m_szArmsModel", "models/player/custom_player/superheroes/ultron/ultron_arms.mdl");
                  CreateTimer(1.5, PlayerModel, client);                
            } 
            else if    (!bIsInArray)    
            {
                SetEntityModel(client,defaultModelsT[GetRandomInt(0 , -1)]);    
                // Replace with your own Model                
                 SetEntPropString(client, Prop_Send, "m_szArmsModel", "models/player/custom_player/superheroes/ultron/ultron_arms.mdl");    
                  CreateTimer(1.5, PlayerModel, client);                
            }
        } 
        else if (team == 3) 
        {    
            char sModelCT[128];
             GetEntPropString(client, Prop_Data, "m_ModelName", sModelCT, sizeof(sModelCT));            
 
            bool bIsInArray;
            for (int i = 0; i < sizeof(defaultModelsCT); i++) 
            {
                if (StrEqual(defaultModelsCT[i], sModelCT))
                {
                        bIsInArray = true;
                        break;
                }
            }

            if(bIsInArray) 
            {
                    SetEntityModel(client,stockModelsCT[GetRandomInt(0 , -1)]);  
                    // Replace with your own Model
                    SetEntPropString(client, Prop_Send, "m_szArmsModel", "models/player/custom_player/superheroes/ultron/ultron_arms.mdl");
                  CreateTimer(1.5, PlayerModel, client);                   
            } 
            else if    (!bIsInArray)    
            {
                SetEntityModel(client,defaultModelsCT[GetRandomInt(0 , -1)]);
                // Replace with your own Model
                 SetEntPropString(client, Prop_Send, "m_szArmsModel", "models/player/custom_player/superheroes/ultron/ultron_arms.mdl");
                 CreateTimer(1.5, PlayerModel, client);
            }
        }
    }

    return Plugin_Continue;
}

public Action PlayerModel(Handle timer ,any client)
{
    // Replace with your own Model
    SetEntityModel(client,"models/player/custom_player/superheroes/ultron/ultron.mdl");    
}

bool isValidClient(int client, bool bot = false) 
{
    if (client > 0 && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client) && (bot ? IsFakeClient(client) : !IsFakeClient(client))) 
        return true;
    return false;
}
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
Reply


Thread Tools
Display Modes

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 11:11.


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