Hi! I've modeled a weapon that I had some glowing parts in mind for. Is there any way to use an emissive texture in tf2? Also, my weapon is slightly longer than the original one to replace, is it possible to move the spawn for muzzle?
The position of the muzzle can be changed in the .qc file. The muzzle location is defined relative to its attachment bone. Again, decompiling a working weapon and inspecting its .qc file is a good idea. Search for the code below to see how it works:
Replies
Emissive is called self illumination in TF2/Source Engine. You can read this to see how you can use it in your vmt files:
https://developer.valvesoftware.com/wiki/$selfillum
If you need an example, just decompile a TF2 model which has self illumination. Here's a list of such items:
https://wiki.teamfortress.com/wiki/Self-illumination
The position of the muzzle can be changed in the .qc file. The muzzle location is defined relative to its attachment bone. Again, decompiling a working weapon and inspecting its .qc file is a good idea. Search for the code below to see how it works:
I hope this helps, good luck!