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

Solved [csgo] Fists from AREZ's pack


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
m0b
Junior Member
Join Date: Jun 2020
Old 12-11-2020 , 21:15   [csgo] Fists from AREZ's pack
#1

Hello, I found good Fists from AREZ's pack (https://ibb.co/r4WNjKw
https://ibb.co/W38RvSD) , it works for the cs:go client via a MiGI addons,
I want to add this to my server, but there is a problem, i cant get it to work.

To add this to the game, I use the plugin https://forums.alliedmods.net/showthread.php?t=276733

PHP Code:
int iDefaultKnifeT,iDefaultKnifeCTiTridaggerModel,iTridaggerSteelModel,iBlackDagger,iKabar,iOldKnife,iUltimateKnifeifuides;

.....public 
void OnMapStart().........

        
iDefaultKnifeT =  PrecacheModel("models/weapons/v_knife_default_t.mdl");
        
iDefaultKnifeCT PrecacheModel("models/weapons/v_knife_default_ct.mdl");

        
AddFileToDownloadsTable("models/weapons/v_knife_default_t.mdl");
        
AddFileToDownloadsTable("models/weapons/v_knife_default_ct.mdl");
        
AddFileToDownloadsTable("models/weapons/v_knife_default_t.vvd");
        
AddFileToDownloadsTable("models/weapons/v_knife_default_t.dx90.vtx");
        
AddFileToDownloadsTable("models/weapons/v_knife_default_ct.vvd");
        
AddFileToDownloadsTable("models/weapons/v_knife_default_ct.dx90.vtx");

AddFileToDownloadsTable("materials/models/weapons/v_models/knife_t/tm_leet_lowerbody_variantb_exponent.vtf");
AddFileToDownloadsTable("materials/models/weapons/v_models/knife_t/tm_leet_lowerbody_variantb_normal.vtf");
AddFileToDownloadsTable("materials/models/weapons/v_models/knife_t/tm_leet_lowerbody_variantb.vmt");
AddFileToDownloadsTable("materials/models/weapons/v_models/knife_t/tm_leet_lowerbody_variantb.vtf");
........

void SetKnife(int param1char[] item)
{
        
char item2[16];
        if (
StrEqual(item"default"))
        {
                
//FPVMI_RemoveViewModelToClient(param1, "weapon_knife");
                
KnifeSelection[param1] = 0;
                if (
GetClientTeam(param1) == 2)                                 {
                
FPVMI_AddViewModelToClient(param1"weapon_knife"iDefaultKnifeT);
                 
CPrintToChat(param1,"set t def");
                }
                 if (
GetClientTeam(param1) == 3)                                  {
                
FPVMI_AddViewModelToClient(param1"weapon_knife"iDefaultKnifeCT);
                 
CPrintToChat(param1,"set ct def");
                }

                
IntToString(KnifeSelection[param1], item2sizeof(item2));
                
SetClientCookie(param1g_hMySelectionitem2);

        }
...................... 
The problem is that the client does not download the model files, they have a default path and a name
and the client loads the standard model. If this is renamed or assigned to a different path, the standard model is still loaded.


Please tell me how to fix it



fists pack _https://drive.google.com/file/d/1BU6bL6Xf9kivfxLuZr_v-ng6wY-7Nml2/view?usp=sharing

Last edited by DarkDeviL; 12-13-2020 at 03:09. Reason: Restore to previous version.
m0b is offline
Closed Thread



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 18:24.


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