Upvote Upvoted 0 Downvote Downvoted
VTF image works for everything BUT sapper&cleaver
posted in Customization
1
#1
0 Frags +

I dont have any no-explosion scripts

So i've made it so my vtf crosshair is a png of the weapon name in the bottom left corner
screenshot - https://imgur.com/a/fLRuSBT

what i did to position this was by first taking a 2048 - 2048 png with the name label roughly in the center. then i went into the weapons corresponding tf_weapon.txt and changed the x and y position to 600 and -387

"crosshair"
{
"file" "vgui/replay/thumbnails/bat"
"x" "600"
"y" "-387"
"width" "2048"
"height" "2048"
}
{
"file" "sprites/crosshairs"
"x" "32"
"y" "32"
"width" "32"
"height" "32"
}

I have no idea what the second crosshair thing is below the one i edited, but i doesnt seem to be causing an issue so i left it.
Everything is working perfectly except for the sapper and flying guillotine. I tested to see if the files were even responsive by changing the

"file" "vgui/replay/thumbnails/nothing"

to nothing. For all the other weapons, if i set this to nothing i get a missing texture, but for the sapper/cleaver nothing happens. Because nothing happened, i decided to re-extract the txt's from the source to see if i accidentally messed up my previous txt but even that didnt fix it.
They just dont appear. i've double checked everything and i cant find what im doing wrong. Is there something im missing?

Here is what the weapon.ctx looks like for both

"crosshair"
{
"file" "vgui/replay/thumbnails/cleaver"
"x" "600"
"y" "-387"
"width" "2048"
"height" "2048"
}
{
"file" "sprites/crosshairs"
"x" "32"
"y" "32"
"width" "32"
"height" "32"
}

[b]I dont have any no-explosion scripts[/b]

So i've made it so my vtf crosshair is a png of the weapon name in the bottom left corner
screenshot - https://imgur.com/a/fLRuSBT


what i did to position this was by first taking a 2048 - 2048 png with the name label roughly in the center. then i went into the weapons corresponding tf_weapon.txt and changed the x and y position to 600 and -387

"crosshair"
{
"file" "vgui/replay/thumbnails/bat"
"x" [b]"600"[/b]
"y" [b]"-387"[/b]
"width" "2048"
"height" "2048"
}
{
"file" "sprites/crosshairs"
"x" "32"
"y" "32"
"width" "32"
"height" "32"
}

I have no idea what the second crosshair thing is below the one i edited, but i doesnt seem to be causing an issue so i left it.
Everything is working perfectly except for the sapper and flying guillotine. I tested to see if the files were even responsive by changing the

"file" "vgui/replay/thumbnails/nothing"

to nothing. For all the other weapons, if i set this to nothing i get a missing texture, but for the sapper/cleaver nothing happens. Because nothing happened, i decided to re-extract the txt's from the source to see if i accidentally messed up my previous txt but even that didnt fix it.
They just dont appear. i've double checked everything and i cant find what im doing wrong. Is there something im missing?

Here is what the weapon.ctx looks like for both

"crosshair"
{
"file" "vgui/replay/thumbnails/cleaver"
"x" "600"
"y" "-387"
"width" "2048"
"height" "2048"
}
{
"file" "sprites/crosshairs"
"x" "32"
"y" "32"
"width" "32"
"height" "32"
}
Please sign in through STEAM to post a comment.