Raised This Month: $ Target: $400
 0% 

Load models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
InteX01
Senior Member
Join Date: Jan 2017
Old 06-30-2017 , 05:14   Load models
Reply With Quote #1

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 is offline
InteX01
Senior Member
Join Date: Jan 2017
Old 06-30-2017 , 08:11   Re: Load models
Reply With Quote #2

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

Last edited by InteX01; 06-30-2017 at 08:11.
InteX01 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 06-30-2017 , 14:02   Re: Load models
Reply With Quote #3

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.
__________________
retired chump

Last edited by DjSoftero; 06-30-2017 at 14:05.
DjSoftero 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 22:55.


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