View Single Post
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 03-20-2017 , 06:39   Re: Precache Models, Materials and Sound for replacing weapon model
Reply With Quote #3

Quote:
Originally Posted by cravenge View Post
This is for the models and sounds but I don't know what to do with the materials.
PHP Code:
PrecacheModel("models/weapons/c_models/c_flaregun_pyro/c_flaregun_pyro.mdl"true);
PrecacheModel("models/weapons/c_models/c_motor_flaregun/c_motor_flaregun.mdl"true);
PrecacheModel("models/weapons/w_models/w_flaregun_shell.mdl"true);

PrecacheSound("sound/weapons/flaregun_shoot.wav"true);
PrecacheSound("sound/weapons/flaregun_shoot_crit.wav"true); 
Thanks, any idea how to set the model for a weapon? I also seen PrecacheMaterial on SMLib but I never tried it
RumbleFrog is offline