AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ SOLVED ] Change weapon v_ and p_ mdl with Ham? (https://forums.alliedmods.net/showthread.php?t=275232)

CrazY. 11-25-2015 09:23

[ SOLVED ] Change weapon v_ and p_ mdl with Ham?
 
Hey Modders, how to change weapon v_ and p_ model with Ham_Item_Deploy?

Chihuahuax 11-25-2015 10:40

Re: [ HELP ] Change weapon v_ and p_ mdl with Ham?
 
You will get tons of results if u search

CrazY. 11-25-2015 11:08

Re: [ HELP ] Change weapon v_ and p_ mdl with Ham?
 
[sarcasm]Our you helped me a lot, thank you :fox:[/sarcasm]

redivcram 11-25-2015 11:51

Re: [ HELP ] Change weapon v_ and p_ mdl with Ham?
 
[notsarcasm] Search before posting :stupidfoximage: [/notsarcasm]

But seriously, there are hundreds of threads opened for this kind of topic.

CrazY. 11-25-2015 13:45

Re: [ HELP ] Change weapon v_ and p_ mdl with Ham?
 
Edit:

Quote:

Originally Posted by yokomo (Post 2141064)
Hooking CurWeapon to set custom models is bad, it call too much, use Ham_Item_Deploy is better.

Changes all models


Code taken from ZP.

If you don't want to use loop for all weapon, then you can register 1 by 1.

PHP Code:

RegisterHam(Ham_Item_Deploy"weapon_knife""OnItemDeployPost"1)
RegisterHam(Ham_Item_Deploy"weapon_ak47""OnItemDeployPost"1


Thank :grrr:

zmd94 11-25-2015 22:33

Re: [ SOLVED ] Change weapon v_ and p_ mdl with Ham?
 
Nice sharing.


All times are GMT -4. The time now is 17:54.

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