Precache Models, Materials and Sound for replacing weapon model
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:
| |
Re: Precache Models, Materials and Sound for replacing weapon model
This is for the models and sounds but I don't know what to do with the materials.
PHP Code:
|
Re: Precache Models, Materials and Sound for replacing weapon model
Quote:
|
Re: Precache Models, Materials and Sound for replacing weapon model
Unfortunately, no, unless you're talking about CS:GO, I definitely remember numerous posts about it. Look up for something like world model, view model, etc. using Search above.
|
Re: Precache Models, Materials and Sound for replacing weapon model
Quote:
Code:
new index = PrecacheModel("models/weapons/w_fire_rapier.mdl") |
Re: Precache Models, Materials and Sound for replacing weapon model
EDIT: my mistake
|
Re: Precache Models, Materials and Sound for replacing weapon model
Can anyone link me a plugin that could do this in TF2? Natives would be a nice bonus. I've tried TF2Items Give Weapons
|
Re: Precache Models, Materials and Sound for replacing weapon model
Never mind, I totally forgot about Valve's policy on attachments.
|
All times are GMT -4. The time now is 13:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.