Sinetihow would you go about combining the no smoke explosion script and the crosshair script? becuase i want to use both
Already worked for you but I guess I'll make a short guide for people who want to do it in the future.
http://www.teamfortress.tv/30866/guide-weapon-specific-custom-crosshairs (assuming you already understand the things from this thread)
I'll be going over my rocket launcher file. You'll also have to do this for your stickybomb launcher, grenade launcher, direct hit, airstrike, etc. It's just pasting the section from one file into the other file. Nothing special.
Open the relevant txt files. Somewhere at the start you will see //buckets with something like this:
"ExplosionPlayerEffect" "electrocuted_blue_flash"
"ExplosionWaterEffect" "electrocuted_red_flash"
"ExplosionSound" "BaseExplosionEffect.Sound"
This already uses smaller explosions. I prefer the flash explosions but I think most people use a particle related to sappers. The default values look like this:
"ExplosionPlayerEffect" "ExplosionCore_MidAir"
"ExplosionWaterEffect" "ExplosionCore_MidAir_underwater"
"ExplosionSound" "BaseExplosionEffect.Sound""
At the bottom of the txt file you will find the Crosshairs section. Default:
{
"file" "sprites/crosshairs"
"x" "32"
"y" "32"
"width" "32"
"height" "32"
}
Put your VTF and VMT of choice in vgui/replay/thumbnails. I named mine crosshair1.vtf and crosshair1.vmt for slot1 weapons. I then put this in the crosshair section:
{
"file" "vgui/replay/thumbnails/crosshair1"
"x" "0"
"y" "0"
"width" "64"
"height" "64"
}