AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSGO] Gloves/Arms beign invisible/glitchy. (https://forums.alliedmods.net/showthread.php?t=301701)

zaCade 10-01-2017 16:04

[CSGO] Gloves/Arms beign invisible/glitchy.
 
Well ill just get straight to the point, alot of servers use custom maps, wich probably dont have this file:
https://developer.valvesoftware.com/..._Player_Models
included in the map, other then that it also seems to happen on maps that have this file. So that makes me believe there is more to this then just that file in question.

All of the fixes i've found around on alliedmodders seem to be using the netprop "m_szArmsModel" wich does work, but this also comes with 'unwanted' side effects. Wich is why i'm here looking for a possible 'other' way of fixing this. I've found out that using the native CS_UpdateClientModel() seems to 'fix' the arms, but also changes the model to one of the default models in the game, havent actually looked into wich ones are beign set. Because when i tried to use this native, i tried setting the model that the player had before using the native, wich would in its own turn break the arms again.

PHP Code:

char sModel[PLATFORM_MAX_PATH]
GetClientModel(clientsModelsizeof(sModel));

CS_UpdateClientModel(client);

SetEntityModel(clientsModel); 

Is what i've tried, along with the other fixes that i've found. Now what my question is, is there a way of fixing this problem without using the netprop stated above, because players that have the glove skins that valve implemented a while ago, get overlapping arms/gloves wich looks really bad obviously.

Neuro Toxin 10-01-2017 18:03

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
There is a wearables net prop. Dump netprops and search wear.

If this has a valid index then the player has gloves. Either don't set the arms netprop or kill the wearable via accept input and set the netprop to -1

zaCade 10-01-2017 18:34

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
So this netprop "m_hMyWearables" only stores the gloves?

Even beside that using the netprop "m_szArmsModel" to set arm models, wich could in that situation only be done if the player has no wearable gloves, but that still comes with the effect of some maps having overlapping gloves. Try for example setting "m_szArmsModel" to something, and then try loading like de_dust2. if the default model isnt the same as the one you set in "m_szArmsModel" you get overlapping models. Wich is what i want to prevent.

andi67 10-02-2017 05:47

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
Thank Valve for bringing this issue back , for the moment there is no solution to fix this completly....

zaCade 10-02-2017 12:52

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
Seems that as long as you use the actual default CSGO models the hands always work, no matter the map. So i'm starting to believe the engine somehow knows wich arm models to use in wich situation, but that this doesnt apply to custom models that arent in CSGO by default. Now if only we could figure out where the engine stores that data.

Neuro Toxin 10-02-2017 15:59

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
scripting/items/ ...

zaCade 10-02-2017 17:23

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
Those files only contain the item information from what it seems, and not wich arms model goes with the default CSGO models. So they dont really help sadly, as giving people items they dont own gets your Tokens banned.

andi67 10-03-2017 04:19

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
I think it was gamemodes.txt.....

zaCade 10-03-2017 07:59

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
Thats also not really what i was looking for, what i mean is.
How exactly does CSGO know what arms combination to use for wich model, and or in wich situation. Because it seems that this only applies to actual CUSTOM playermodels, the default ones always have gloves/arms. There has to be a way to tell the engine what arms to use with a playermodel. Cause how else does the game give the players the right stuff on default models.
Whats also wierd about this is the fact that on some maps the custom models do have arms but on most they dont.

8guawong 10-03-2017 08:19

Re: [CSGO] Gloves/Arms beign invisible/glitchy.
 
Quote:

CSGO know what arms combination to use for wich model
it gets the arm model which is set inside the .kv file

https://developer.valvesoftware.com/..._Player_Models


All times are GMT -4. The time now is 23:37.

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