AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Weapon Model Replacement (https://forums.alliedmods.net/showthread.php?t=99560)

Mr.Noobie 08-06-2009 22:09

Weapon Model Replacement
 
I have a problem with the weapon model replacement. I using GHW Chronic weapon model replacement plugin.

I have replace the m3 to winchester.

PHP Code:

"models/v_m3.mdl" "models/new/v_winchester.mdl"
"models/p_m3.mdl" "models/new/p_winchester.mdl"
"models/w_m3.mdl" "models/new/w_winchester.mdl" 

I have a plugin.

I replace m3 with golden winchester.

PHP Code:

                engfuncEngFunc_SetModel"models/new/v_goldenwinchester.mdl" 
                
engfuncEngFunc_SetModel"models/new/p_goldenwinchester.mdl" )
                
engfuncEngFunc_SetModel"models/new/w_goldenwinchester.mdl" 

Both normal winchester, golden winchester using m3 replacement.

But the golden winchester model change to the normal winchester. When GHW Chronic weapon model replacement plugin is on.


So my question is izzit possbile to make:

PHP Code:

[php]  engfuncEngFunc_SetModel"models/new/v_goldenwinchester.mdl" 
                
engfuncEngFunc_SetModel"models/new/p_goldenwinchester.mdl" )
                
engfuncEngFunc_SetModel"models/new/w_goldenwinchester.mdl" 

[/php]

works when GHW Chronic weapon model replacement plugin is on ??

ConnorMcLeod 08-07-2009 01:36

Re: Weapon Model Replacement
 
Don't change that weapon model with the model plugin, use only your plugin.

hzqst 08-07-2009 05:59

Re: Weapon Model Replacement
 
set_pev(index, pev_viewmodel2, "models/v_mygun.mdl")
set_pev(index, pev_weaponmodel2, "models/p_mygun.mdl")

Mr.Noobie 08-07-2009 07:26

Re: Weapon Model Replacement
 
Quote:

Originally Posted by hzqst (Post 892402)
set_pev(index, pev_viewmodel2, "models/v_mygun.mdl")
set_pev(index, pev_weaponmodel2, "models/p_mygun.mdl")

How about W_view ?

ConnorMcLeod 08-07-2009 08:07

Re: Weapon Model Replacement
 
entity_set_model(iEntity, szYourModel)

Mr.Noobie 08-07-2009 08:30

Re: Weapon Model Replacement
 
Quote:

Originally Posted by ConnorMcLeod (Post 892475)
entity_set_model(iEntity, szYourModel)

Ya i did it works. but i can't make the weapon replacer works.

Is it possible to use the GHW weapon replacement together with the golden winchester both using the replace of m3 ?


All times are GMT -4. The time now is 18:31.

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