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

[CS:GO] -N- Arms Fix [2.0.3 | 2021-01-22]


Post New Thread Reply   
 
Thread Tools Display Modes
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 05-26-2017 , 12:49   Re: [CS:GO] -N- Arms Fix
Reply With Quote #91

Quote:
Originally Posted by Maoling View Post
put this to OnMapStart and Event Player Spawn

PHP Code:
public void OnMapStart() 
{    
    
PrecacheModel("models/player/custom_player/legacy/tm_phoenix.mdl");
    
PrecacheModel("models/player/custom_player/legacy/tm_anarchist.mdl");
    
PrecacheModel("models/player/custom_player/legacy/ctm_sas.mdl");
    
PrecacheModel("models/player/custom_player/legacy/ctm_gign.mdl");

    
PrecacheModel("models/weapons/t_arms.mdl");
    
PrecacheModel("models/weapons/ct_arms.mdl");

    
PrecacheModel("models/player/custom_player/maoling/neptunia/noire/nextform/nextblack_nothruster_arms.mdl");
    
PrecacheModel("models/player/custom_player/maoling/neptunia/noire/nextform/nextblack_nothruster.mdl");         
}

public 
void Event_PlayerSpawn(Handle event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(event"userid"));
    
int team GetClientTeam(client);
    
    
char sModel[128];
    
GetEntPropString(clientProp_Data"m_ModelName"sModel128);

    if(
team == 2
    {            
        
SetEntityModel(client, (StrContains(sModel"tm_phoenix") == -1) ? "models/player/custom_player/legacy/tm_phoenix.mdl" "models/player/custom_player/legacy/tm_anarchist.mdl");
        
SetEntPropString(clientProp_Send"m_szArmsModel""models/weapons/t_arms.mdl");
    } 
    else if (
team == 3
    {            
        
SetEntityModel(client, (StrContains(sModel"ctm_sas") == -1) ? "models/player/custom_player/legacy/ctm_sas.mdl" "models/player/custom_player/legacy/ctm_gign.mdl");                
        
SetEntPropString(clientProp_Send"m_szArmsModel""models/weapons/ct_arms.mdl");
    } 

    
SetEntPropString(clientProp_Send"m_szArmsModel""Your Arms");

    
CreateTimer(0.1Timer_ModelDelayclient);

but there is a known issue.
if player spawn without any weapon, then still overcap.

https://www.youtube.com/watch?v=ZOcnTQYH4RA
Thats a cool death animation thingy :p Did you make it?
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
Kxnrl
AlliedModders Donor
Join Date: May 2015
Old 05-26-2017 , 13:16   Re: [CS:GO] -N- Arms Fix
Reply With Quote #92

Quote:
Originally Posted by Byte View Post
Thats a cool death animation thingy :p Did you make it?
i integrate it to zephyrus`s store base on
https://forums.alliedmods.net/showthread.php?t=146932
__________________
Kxnrl is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 05-26-2017 , 14:29   Re: [CS:GO] -N- Arms Fix
Reply With Quote #93

Holy shit , overlappingbug is not fixed on some maps like de_mirage , cs_office.......
__________________
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
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 05-26-2017 , 14:41   Re: [CS:GO] -N- Arms Fix
Reply With Quote #94

Quote:
Originally Posted by andi67 View Post
Holy shit , overlappingbug is not fixed on some maps like de_mirage , cs_office.......
was what i was saying all along
8guawong is offline
Kxnrl
AlliedModders Donor
Join Date: May 2015
Old 05-26-2017 , 16:40   Re: [CS:GO] -N- Arms Fix
Reply With Quote #95

PHP Code:
#include <sdktools>

#pragma newdecls required

char g_szDefaultModel[][] = 
{
    
"models/player/custom_player/legacy/tm_anarchist.mdl",
    
"models/player/custom_player/legacy/tm_pirate.mdl",
    
"models/player/custom_player/legacy/ctm_gign.mdl",
    
"models/player/custom_player/legacy/ctm_fbi.mdl"
};

public 
void OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawnEventHookMode_Post);
}

public 
void OnConfigsExecuted() 
{
    
PrecacheDefaultModel();
}

public 
void Event_PlayerSpawn(Handle event, const char[] namebool dontBroadcast)
{
    
int userid GetEventInt(event"userid");
    
int client GetClientOfUserId(userid);

    
// Set Default
    
SetDefaultSkin(clientGetClientTeam(client));
    
    
// Set Custom
    
SetEntPropString(clientProp_Send"m_szArmsModel""Your Custom Arms");
    
CreateTimer(0.1Timer_ModelDelayuserid);

    
// Fix Spawn without any weapon.
    
int decoy GivePlayerItem(client"weapon_decoy");
    if(
decoy != -1CreateTimer(0.1Timer_DecoyDelayEntIndexToEntRef(decoy));
}

public 
Action Timer_DecoyDelay(Handle timerint iRef)
{
    
int decoy decoy EntRefToEntIndex(decoy)
    
    if(!
IsValidEdict(decoy))
        return 
Plugin_Stop;

    
int owner GetEntPropEnt(decoyProp_Send"m_hOwnerEntity");
    
    if(
IsClientInGame(owner) && IsPlayerAlive(owner))
        
RemovePlayerItem(ownerdecoy);
    
    
AcceptEntityInput(decoy"Kill");

    return 
Plugin_Stop;
}

public 
Action Timer_ModelDelay(Handle timerint userid)
{
    
int client GetClientOfUserId(userid);
    
    if(!
IsClientInGame(client) || !IsPlayerAlive(client))
        return 
Plugin_Stop;
    
    
SetEntityModel(client"Your Custom Model");

    return 
Plugin_Stop;
}

void SetDefaultSkin(int clientint team)
{
    
char m_szMoedl[128];
    
GetEntPropString(clientProp_Data"m_ModelName"m_szMoedl128);

    if(
team == 2)
    {
        
SetEntityModel(client, (StrContains(m_szMoedl"tm_anarchist") != -1) ? g_szDefaultModel[1] : g_szDefaultModel[0]);
        
SetEntPropString(clientProp_Send"m_szArmsModel""models/weapons/t_arms.mdl");
    }
    else if(
team == 3)
    {
        
SetEntityModel(client, (StrContains(m_szMoedl"ctm_fbi") != -|| StrContains(m_szMoedl"ctm_sas") != -|| StrContains(m_szMoedl"ctm_swat") != -1) ? g_szDefaultModel[2] : g_szDefaultModel[3]);
        
SetEntPropString(clientProp_Send"m_szArmsModel""models/weapons/ct_arms.mdl");
    }
}

void PrecacheDefaultModel()
{
    for(
int x 0sizeof(g_szDefaultModel); ++x)
        
PrecacheModel(g_szDefaultModel[x]);

    
PrecacheModel("models/weapons/t_arms.mdl");
    
PrecacheModel("models/weapons/ct_arms.mdl");
    
    
// Precahce Your Custom Model and Arms.
    
PrecacheModel("Your Custom Model");
    
PrecacheModel("Your Custom Arms");

this work for me.
tested on ze/mg/ttt/casual server.
__________________
Kxnrl is offline
dobro777
New Member
Join Date: Jul 2016
Old 06-12-2017 , 12:34   Re: [CS:GO] -N- Arms Fix
Reply With Quote #96

Hello guys, tell me what's the matter fixes since Fix 1.5 and 1.5.5 do not work gloves
dobro777 is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 06-19-2017 , 16:38   Re: [CS:GO] -N- Arms Fix
Reply With Quote #97

So people are using this again?
Looks like the issues are back but I swear they were fine before o.O
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 06-20-2017 , 01:31   Re: [CS:GO] -N- Arms Fix
Reply With Quote #98

No issues in my server. Are you sure?
__________________
vortex. is offline
spancer35
Senior Member
Join Date: Dec 2014
Location: City 17
Old 07-05-2017 , 08:17   Re: [CS:GO] -N- Arms Fix
Reply With Quote #99

can plugin fix this or this?


Edit : 2nd pic(2 gloves) because of that plugin
__________________

Last edited by spancer35; 07-05-2017 at 08:49.
spancer35 is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 07-05-2017 , 14:12   Re: [CS:GO] -N- Arms Fix
Reply With Quote #100

Quote:
Originally Posted by spancer35 View Post
can plugin fix this or this?


Edit : 2nd pic(2 gloves) because of that plugin
Works well without gloves hotfix. Check my example plugin: here.

Custom version of skinchooser & ArmsFix: https://youtu.be/5JkT00y8-gQ
In spect:
https://prnt.sc/fs2r9w
https://prnt.sc/fs2rci
__________________

Last edited by NomisCZ; 07-05-2017 at 15:55.
NomisCZ is offline
Reply



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 07:17.


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