AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Load models (https://forums.alliedmods.net/showthread.php?t=299026)

InteX01 06-30-2017 05:14

Load models
 
How could i put custom skin on gun in cs 1.6
I want to change skin of this classic guns
https://forums.alliedmods.net/showthread.php?t=65201

InteX01 06-30-2017 08:11

Re: Load models
 
PHP Code:

new model[25];
    
pev(idpev_viewmodel2model24);
    if (
equali(model"models/v_mp5.mdl") && get_pcvar_num(pbgun))
    {
        
set_pev(idpev_viewmodel2, (get_user_team(id) == 1) ? "models/v_vip_ct.mdl" "models/v_vip_t.mdl");
        
set_pev(idpev_weaponmodel2, (ctgun) ? "models/p_pbgun1.mdl" "models/p_pbgun.mdl");
    } 

I used this, and it loads skin and all, but it shoots bullets instead of Paintballs

PHP Code:

new model[25];
    
pev(idpev_viewmodel2model24);
    if (
equali(model"models/v_mp5.mdl") && get_pcvar_num(pbgun))
    {
        
set_pev(idpev_viewmodel2, (get_user_team(id) == 1) ? g_pbgun_models[tgun] : g_pbgun_models[ctgun]);
        
set_pev(idpev_weaponmodel2, (ctgun) ? "models/p_pbgun1.mdl" "models/p_pbgun.mdl");
    } 

Original

DjSoftero 06-30-2017 14:02

Re: Load models
 
If the original code shoots those blobs and an edited version doesnt, then this is not the part where it gets messed up. Perhaps you edited something else aswell?
Btw. You switched around viewmodel of t and ct.


All times are GMT -4. The time now is 22:55.

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