Quote:
Originally Posted by Franc1sco
Yes, with code. Share your code and we will see what is wrong.
|
Well, at store.sp I added:
Code:
#include "store/tracers1.sp"
#include "store/tracers2.sp"
#include "store/tracers3.sp"
#include "store/tracers4.sp"
#include "store/tracers5.sp"
#include "store/tracers6.sp"
Code:
Tracers_OnPluginStart();
Tracers1_OnPluginStart();
Tracers2_OnPluginStart();
Tracers3_OnPluginStart();
Tracers4_OnPluginStart();
Tracers5_OnPluginStart();
Tracers6_OnPluginStart();
Then, I made a copy of the tracers file and chanced all vars with the number on the file name, to prevent duplicated entries. Then I changed the following line with the model I want:
Code:
g_cvarTracer1Material = RegisterConVar("sm_store_tracer_material", "materials/supporter_tracers/thin_beam.vmt", "Material to be used with tracers", TYPE_STRING);
But even if make a different type (with different models) for each tracer, it won't change when I equip in game.
Here is the items file
Code:
"Thin Beam"
{
"price" "1500"
"type" "tracer1"
"color" "35 142 35"
"flag" "o"
}
"Medium Beam"
{
"color" "35 142 35"
"price" "1500"
"type" "tracer2"
"flag" "o"
}