AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   weapon model (https://forums.alliedmods.net/showthread.php?t=272702)

The_Shadow 10-04-2015 13:51

weapon model
 
hi,

I want to change the weapon model so I i did

entity_set_string(client, EV_SZ_viewmodel,"models/new/Scout/v_scout_01.mdl") ;
[for scout]
and works but when i chnage my weapons
for example knife it go back to orignal model
who to fix it?

fysiks 10-04-2015 14:00

Re: weapon model
 
You have to set the weapon model everytime the "Current Weapon" event is triggered (Register the "CurWeapon" event).

HamletEagle 10-04-2015 14:26

Re: weapon model
 
Quote:

Originally Posted by fysiks (Post 2349778)
You have to set the weapon model everytime the "Current Weapon" event is triggered (Register the "CurWeapon" event).

Ham_Item_Deploy*

It makes more sense to set only in Deploy hooked as post, game also sets the models here.


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

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