PDA

View Full Version : [CSGO] ArmsFix


Kxnrl
11-21-2019, 09:21
Tested on windows.
Thanks to PerfectLaugh (https://github.com/PerfectLaugh)
Github (https://github.com/Kxnrl/sm-ext-ArmsFix)

Edit:
Don't forget create ArmsFix.autoload
Known bug: No view model draw if player use default model.

Franc1sco
11-21-2019, 10:12
Hook precachemodel and block it when model contains "models/weapons/v_models/arms/glove_hardknuckle" cant be done with dhooks and a plugin too?

Kxnrl
11-21-2019, 10:14
Hook precachemodel and block it when model contains "models/weapons/v_models/arms/glove_hardknuckle" cant be done with dhooks and a plugin too?

lazy to find gamedata.

Franc1sco
11-21-2019, 10:32
Here a dhooks version *REMOVED*

Not tested.

EDIT: ok i see that someone did something similar here https://forums.alliedmods.net/showthread.php?t=319761 i wasted my time :(. Well, atleast I updated my old gamedata.

ayrton09_arg
11-21-2019, 22:11
Here a dhooks version https://github.com/Franc1sco/Franug-CSGO-ArmsFix

Not tested.

EDIT: ok i see that someone did something similar here https://forums.alliedmods.net/showthread.php?t=319761 i wasted my time :(. Well, atleast I updated my old gamedata.

tested and not working :cry:

ayrton09_arg
11-21-2019, 22:41
Tested on windows.
Thanks to PerfectLaugh (https://github.com/PerfectLaugh)
Github (https://github.com/Kxnrl/sm-ext-ArmsFix)

working good! maybe the only problem is when i change to maps without custom models, some skins have no hands.

Accelerator
11-22-2019, 01:05
For linux

Elitcky
11-22-2019, 02:31
For linux

I tried this one, but it keep showing like 2 type of arms, the custom and the default arms.

Image (https://prnt.sc/q0fx8y)

Accelerator
11-22-2019, 02:35
You created a file ArmsFix.autoload in extensions folder? Restarted the server? sm exts list?

Elitcky
11-22-2019, 02:46
You created a file ArmsFix.autoload in extensions folder? Restarted the server? sm exts list?

Uhm no i did not create that file, don't know how
Restarted yes.

] sm exts list
"Automatic Updater" (1.10.0.6455) by AlliedModders LLC: Updates SourceMod gamedata files
"Webternet" (1.10.0.6455) by AlliedModders LLC: Extension for interacting with URLs
"CS Tools" (1.10.0.6455) by AlliedModders LLC: CS extended functionality
"BinTools" (1.10.0.6455) by AlliedModders LLC: Low-level C/C++ Calling API
"SDK Tools" (1.10.0.6455) by AlliedModders LLC: Source SDK Tools
"Top Menus" (1.10.0.6455) by AlliedModders: Creates sorted nested menus
"PTaH" (1.1.1) by Phoenix (˙·٠●Феникс●٠·˙): Additional CS:GO Hooks and Natives
"SDK Hooks" (1.10.0.6455) by AlliedModders LLC: Source SDK Hooks
"Client Preferences" (1.10.0.6455) by AlliedModders: Saves client preference settings
"SQLite" (1.10.0.6455) by AlliedModders LLC: SQLite Driver

ayrton09_arg
11-22-2019, 03:40
working good! maybe the only problem is when i change to maps without custom models, some skins have no hands.

terrorist team has hand but CT team not

freak.exe_uLow
11-22-2019, 07:20
For linux

So far everything works, but some models who use the standard arms because there is no model have no arms.

thank you :3

Sajmooooon
11-23-2019, 04:37
How to create ArmsFix.autoload ?

fragnichtnach
11-23-2019, 05:35
Sorry, what is this for?

edit: guess: for making custom arms work?

Kxnrl
11-23-2019, 06:28
Sorry, what is this for?

edit: guess: for making custom arms work?

correct.

Sajmooooon
11-23-2019, 09:39
correct.

Can u please tell me how to create ArmsFix.autoload or can u post it here please ?

sneaK
11-23-2019, 11:57
Can u please tell me how to create ArmsFix.autoload or can u post it here please ?

Create an empty file with that name and upload it to your extensions directory.

asdfxD
11-25-2019, 10:31
Linux version from here https://forums.alliedmods.net/showpost.php?p=2673949&postcount=7 does not work.

https://i.imgur.com/KfPI9he.jpg

https://i.imgur.com/PuiF4NN.jpg

Elitcky
11-25-2019, 16:57
You created a file ArmsFix.autoload in extensions folder? Restarted the server? sm exts list?

Working perfect, just needed to create that file.
Thanks bud

Sajmooooon
11-29-2019, 04:01
Can someone fix this ?
https://i.imgur.com/6Cdup2W.png

ayrton09_arg
11-29-2019, 18:11
Can someone fix this ?
https://i.imgur.com/6Cdup2W.png

hello the best fix for this is using this extension and then install the plugin https://forums.alliedmods.net/showthread.php?t=293295 and everything is working

egorka2
11-29-2019, 19:37
Please fix invisible CT arms (hands).

ayrton09_arg
11-30-2019, 07:04
Please fix invisible CT arms (hands).

hello the best fix for this is using this extension and then install the plugin https://forums.alliedmods.net/showthread.php?t=293295 and everything is working

egorka2
11-30-2019, 07:21
hello the best fix for this is using this extension and then install the plugin https://forums.alliedmods.net/showthread.php?t=293295 and everything is working
This plugin is buggy too, after install it looks like the plugin just doubles arms models lol

ayrton09_arg
11-30-2019, 07:34
This plugin is buggy too, after install it looks like the plugin just doubles arms models lol

i dont have that problem, maybe you are using another fix for arms or something

NomisCZ
11-30-2019, 11:12
This plugin is buggy too, after install it looks like the plugin just doubles arms models lol

Check your exts list - sm exts list and sm plugins list, probably you forgot to create blank ArmsFix.autoload in your extensions folder.

FuHua
12-01-2019, 05:00
How to create armsfix.autoload?
guys

NomisCZ
12-01-2019, 05:03
How to create armsfix.autoload?
guys

Create blank file ArmsFix.autoload and place it into extensions folder.

FuHua
12-01-2019, 05:07
Create blank file ArmsFix.autoload and place it into extensions folder.

Right here? E:\csgoserver\csgo\addons\sourcemod\extension s

And,Where should DLL files be placed?
Thank you very much for your quick reply

NomisCZ
12-01-2019, 08:03
Right here? E:\csgoserver\csgo\addons\sourcemod\extension s

And,Where should DLL files be placed?
Thank you very much for your quick reply

Place .dll and .autoload into E:\csgoserver\csgo\addons\sourcemod\extension s

rustaveli
12-02-2019, 08:55
after installation, the hands of the default player models disappear

andi67
12-02-2019, 16:58
you can try this together with the extension:

#pragma semicolon 1

#include <sourcemod>
#include <sdktools>
#include <sdkhooks>

#define PLUGIN_VERSION "1.0"

// Default models / arms - community maps
#define ARMS_T "models/weapons/t_arms_phoenix.mdl"
#define ARMS_CT "models/weapons/ct_arms_sas.mdl"



public OnPluginStart()
{
CreateConVar("sm_def_arms", PLUGIN_VERSION, " SM DEF ARMS Version", FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);

HookEvent("player_spawn", Event_PlayerSpawn);
}

public void OnMapStart()
{
PrecacheModel( ARMS_T);
PrecacheModel( ARMS_CT);
}

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

if (IsValidClient(client))
{
CreateTimer(0.1,defarms, client);
PrintToChat(client, "Setting Armsmodel !!!");
}
}

public Action defarms(Handle timer ,any client)
{
int team = GetClientTeam(client);

if (team == 2)
{
// Set the Armsmodel
SetEntPropString(client, Prop_Send, "m_szArmsModel", ARMS_T);
}
else if (team == 3)
{
SetEntPropString(client, Prop_Send, "m_szArmsModel", ARMS_CT);
}
}

stock bool IsValidClient(int client)
{
if (client <= 0) return false;
if (client > MaxClients) return false;
if (!IsClientConnected(client)) return false;
return IsClientInGame(client);
}

asdfxD
12-03-2019, 00:54
you can try this together with the extension:

#pragma semicolon 1

#include <sourcemod>
#include <sdktools>
#include <sdkhooks>

#define PLUGIN_VERSION "1.0"

// Default models / arms - community maps
#define ARMS_T "models/weapons/t_arms_phoenix.mdl"
#define ARMS_CT "models/weapons/ct_arms_sas.mdl"



public OnPluginStart()
{
CreateConVar("sm_def_arms", PLUGIN_VERSION, " SM DEF ARMS Version", FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);

HookEvent("player_spawn", Event_PlayerSpawn);
}

public void OnMapStart()
{
PrecacheModel( ARMS_T);
PrecacheModel( ARMS_CT);
}

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

if (IsValidClient(client))
{
CreateTimer(0.1,defarms, client);
PrintToChat(client, "Setting Armsmodel !!!");
}
}

public Action defarms(Handle timer ,any client)
{
int team = GetClientTeam(client);

if (team == 2)
{
// Set the Armsmodel
SetEntPropString(client, Prop_Send, "m_szArmsModel", ARMS_T);
}
else if (team == 3)
{
SetEntPropString(client, Prop_Send, "m_szArmsModel", ARMS_CT);
}
}

stock bool IsValidClient(int client)
{
if (client <= 0) return false;
if (client > MaxClients) return false;
if (!IsClientConnected(client)) return false;
return IsClientInGame(client);
}

does not work correctly, it sets the arms yes, but looks wired and after setting the arms.

Extension + Your Plugin:
https://i.imgur.com/ujakLp2.png


.
.
.
.
the extension + NomisCZ plugin works, but it changes arms models too when changing gloves on custom workshop maps only.

andi67
12-03-2019, 04:48
It works on official maps that come with the game , the Problem now seems to be the custommaps...

NomisCZ
12-03-2019, 05:12
Hmm, I tested in on some custom maps ...

There is only one issue, if you want to use new Agent models (arms overlapping). Because Valve uses the similar method as at gloves (paints), so you can't use SetEntPropString(client, Prop_Send, "m_szArmsModel", ""); and itemDefinitionIndex/PaintKit, because part of the hand will be missing.

Please check sm exts list to make sure extension is loaded.

You can also use N_ArmsFix_SetClientDefaultArms(client) - auto set default map arms, N_ArmsFix_SetClientDefaultModel(client) - auto set default map model or both N_ArmsFix_SetClientDefaults(client)



#include <sourcemod>
#include <sdktools>
#include <n_arms_fix>

public Plugin myinfo =
{
...
}

public void OnPluginStart()
{
...
}

// Forward Event_PlayerSpawn, SetClientDefault
public void N_ArmsFix_OnClientReady(int client)
{
SetEntPropString(client, Prop_Send, "m_szArmsModel", "models/player/custom_player/xxx/yyy_arms.mdl");
SetEntityModel(client, "models/player/custom_player/xxx/yyy.mdl");
}

public Action setDefaultArms(Timer timer, int client)
{

N_ArmsFix_SetClientDefaults(client);
//or
N_ArmsFix_SetClientDefaultArms(client);
N_ArmsFix_SetClientDefaultModel(client);
}

andi67
12-03-2019, 14:21
.
the extension + NomisCZ plugin works, but it changes arms models too when changing gloves on custom workshop maps only.

And witch plugin you are using for changing models/gloves?

asdfxD
12-03-2019, 22:28
agents chooser and franugs gloves. i got random arms when i change the gloves on custom workshop maps, it works fine on standard game maps.

andi67
12-04-2019, 06:02
You´re totally right , checked it with differant methods and as soon you choose one of the agentmodels gloves/arms get f......up

FuHua
01-04-2020, 23:44
I created armsfix. Autoload, but it still hasn't been loaded. Why? ... thank you very much

FuHua
01-04-2020, 23:49
] sm exts list
[SM] Displaying 13 extensions:
[01] Automatic Updater (1.10.0.6459): Updates SourceMod gamedata files
[02] Webternet (1.10.0.6459): Extension for interacting with URLs
[03] <FAILED> file "ArmsFix.ext.2.csgo.dll": Plugin requires newer Metamod version (16 > 15)
[04] CS Tools (1.10.0.6459): CS extended functionality
[05] BinTools (1.10.0.6459): Low-level C/C++ Calling API
[06] SDK Tools (1.10.0.6459): Source SDK Tools
[07] Top Menus (1.10.0.6459): Creates sorted nested menus
[08] Client Preferences (1.10.0.6459): Saves client preference settings
[09] SQLite (1.10.0.6459): SQLite Driver
[10] GeoIP (1.10.0.6459): Geographical IP information
[11] SDK Hooks (1.10.0.6459): Source SDK Hooks
[12] Regex (1.10.0.6459): Provides regex natives for plugins
[13] <OPTIONAL> file "store_sm.ext.dll": *********Ҳ***************************ָ******* *****************************ģ*********顣

What do you mean by plugin requires new metamod Version (16 > 15)?

Kxnrl
01-05-2020, 19:43
] sm exts list
[SM] Displaying 13 extensions:
[01] Automatic Updater (1.10.0.6459): Updates SourceMod gamedata files
[02] Webternet (1.10.0.6459): Extension for interacting with URLs
[03] <FAILED> file "ArmsFix.ext.2.csgo.dll": Plugin requires newer Metamod version (16 > 15)
[04] CS Tools (1.10.0.6459): CS extended functionality
[05] BinTools (1.10.0.6459): Low-level C/C++ Calling API
[06] SDK Tools (1.10.0.6459): Source SDK Tools
[07] Top Menus (1.10.0.6459): Creates sorted nested menus
[08] Client Preferences (1.10.0.6459): Saves client preference settings
[09] SQLite (1.10.0.6459): SQLite Driver
[10] GeoIP (1.10.0.6459): Geographical IP information
[11] SDK Hooks (1.10.0.6459): Source SDK Hooks
[12] Regex (1.10.0.6459): Provides regex natives for plugins
[13] <OPTIONAL> file "store_sm.ext.dll": *********Ҳ***************************ָ******* *****************************ģ*********顣

What do you mean by plugin requires new metamod Version (16 > 15)?

windows build compiled with latest dev build metamod, upgrade to latest dev build.

FuHua
01-05-2020, 22:09
windows build compiled with latest dev build metamod, upgrade to latest dev build.

I am using the data center version of windows 2016. Can I install what you said, or do I need to change the system?

ayrton09_arg
01-07-2020, 16:04
Tested on windows.
Thanks to PerfectLaugh (https://github.com/PerfectLaugh)
Github (https://github.com/Kxnrl/sm-ext-ArmsFix)

Edit:
Don't forget create ArmsFix.autoload
Known bug: No view model draw if player use default model.

hello :) there is a way fo tix this "Known bug: No view model draw if player use default model.[/QUOTE]" without using n-arms fix plugin.

Kxnrl
01-14-2020, 07:00
I am using the data center version of windows 2016. Can I install what you said, or do I need to change the system?

no. just upgrade to dev build metamod

Allower
02-28-2020, 22:14
IDF default valve arms model invisible after installing this extension on linux.https://psv4.userapi.com/c856232/u5189634/docs/d11/f9bde0f2ec1e/arms_ct.png?extra=dOX_4tVGIXc7UF_haGw5VVT0W7k ZF9VGLB8IAtBGf5Cv7azEqfFrKt_dYIPyL9vDwJfydHNg oJ3OsaYnz1ySsKKdg5gYbooeeYVN3JjhkBYdlnAFf_bwC oJsYBr4dRN8hFS9xhOhYuiyFV_0-_nc

On T side i change my player model to default Elite Crew Variant A (black guy)
https://psv4.userapi.com/c856232/u5189634/docs/d17/ce27606d67bc/skin_t_third.png?extra=TCTVbz9DmS586PJCZQpsN_ R5SVcHcHDhxQ9n-9emjUYJVMIH16fE6ELQS7dYFLy9VWIlM4Eo0OcUTFga4n l7_MCuVyZ4AZaScMQlOAAgsX0NHlnFAF84KCsdoZpomzR iZRASPIxRGkCR2779qNbJ

And saw his arms are white:
https://psv4.userapi.com/c856232/u5189634/docs/d5/828258c3f0d5/arms_t.png?extra=0b7lsYmo0MNtezwNryhonO-N8p-l5Hlwh7TAPvL1deyesHVp-ot8dZnMr-71ZgZlyjHLdwGPYFpmho3OIe1LxO7J-NdecAjGZ8p_xeWibZyggyPe5-sAftxQAzccBjNdE9Qd5Q1a-SB5UcXuy4Fz

Is there any chance to fix this?

Agent Wesker
07-23-2020, 15:39
Anyone know why sometimes switching maps gives this crash log?

https://i.gyazo.com/c3504690f8de8cfc98d5700fe8a159d7.png

https://crash.limetech.org/dh4tnwv245jl

Kxnrl
07-27-2020, 18:06
Anyone know why sometimes switching maps gives this crash log?

https://i.gyazo.com/c3504690f8de8cfc98d5700fe8a159d7.png

https://crash.limetech.org/dh4tnwv245jl

Crashing in PrecacheModel.
I guess you can see 'materials/xxxxx' in raw log.

OneMore
03-12-2021, 10:58
Hello guys,

I have a problem with official gloves and a custom player model. if someone has official (purchased) gloves, and he gets a custom model, his gloves leave a trace like on the picture.
Please advise can I use this extension to fix this issue. Or maybe you can advise on how to fix it...

mranis18
03-12-2022, 17:19
Hello guys,

I have a problem with official gloves and a custom player model. if someone has official (purchased) gloves, and he gets a custom model, his gloves leave a trace like on the picture.
Please advise can I use this extension to fix this issue. Or maybe you can advise on how to fix it...

same probleme with me