I have the following directory structures, how would I go about caching these and replace a weapon's model with it? It uses custom materials as well.
I've tried SetEntityModel() but no luck with that.
Code:
|
|
+---materials
| +---models
| | \---weapons
| | \---c_items
| | c_motor_flaregun.vmt
| | c_motor_flaregun.vtf
| | c_motor_flaregun_balloon.vtf
| | c_motor_flaregun_balloon_orange.vtf
| | c_motor_flaregun_c_flaregun_shell.vmt
| | c_motor_flaregun_c_flaregun_shell.vtf
| | c_motor_flare_shiny.vmt
| |
| \---vgui
| \---replay
| \---thumbnails
+---models
| \---weapons
| +---c_models
| | +---c_flaregun_pyro
| | | c_flaregun_pyro.dx80.vtx
| | | c_flaregun_pyro.dx90.vtx
| | | c_flaregun_pyro.mdl
| | | c_flaregun_pyro.sw.vtx
| | | c_flaregun_pyro.vvd
| | |
| | \---c_motor_flaregun
| | c_motor_flaregun.dx80.vtx
| | c_motor_flaregun.dx90.vtx
| | c_motor_flaregun.mdl
| | c_motor_flaregun.sw.vtx
| | c_motor_flaregun.vvd
| |
| \---w_models
| w_flaregun_shell.dx80.vtx
| w_flaregun_shell.dx90.vtx
| w_flaregun_shell.mdl
| w_flaregun_shell.sw.vtx
| w_flaregun_shell.vvd
|
\---sound
\---weapons
flaregun_shoot.wav
flaregun_shoot_crit.wav