View Single Post
Author Message
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 03-19-2017 , 22:24   Precache Models, Materials and Sound for replacing weapon model
Reply With Quote #1

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

Last edited by RumbleFrog; 03-20-2017 at 19:40.
RumbleFrog is offline