Change the crosshair
Quote from FireFusorf on July 6, 2015, 4:46 pmHi guys !
I wanted to know if it's possible to change the crosshair texture in portal 2.I'm talking about this : (you got it, i know x))
I would like it to look like that :
I guess I will have to use a similar technique as the one presented in this tutorial : mapping-help/tutorial-modifying-your-portal-gun-texture-t7597.html
But i don't know where the crosshair texture is...
Thank you
Hi guys !
I wanted to know if it's possible to change the crosshair texture in portal 2.
I'm talking about this : (you got it, i know x))
I would like it to look like that :
I guess I will have to use a similar technique as the one presented in this tutorial : mapping-help/tutorial-modifying-your-portal-gun-texture-t7597.html
But i don't know where the crosshair texture is...
Thank you
Quote from josepezdj on July 7, 2015, 6:29 amMaybe you can use that method based in the dlc3 folder to achieve this.
The file where the crosshair is stored is materials/sprites/hud/portal_crosshairs.VTF from inside your "portal 2/portal2/pak01_dir.VPK" file. The easiest approach would be to replace that file by your custom one (you could modify the hud resource file that controls this to make it point to a different file, but this is way much more complex)... However, it's a sprite sheet used by the Portal2 hud. It looks like this (but with transparent background):
Notice there are vertical division lines, you must draw whatever into each rectangle, and the game will take what's inside each one of them according to what it needs to draw at each pixel on your screen (hud).
Bare in mind the game priority as well, and introduce your new texture file into a pak01_dir.VPK file inside your portal 2/portal2_dl3 folder ok?
Maybe you can use that method based in the dlc3 folder to achieve this.
The file where the crosshair is stored is materials/sprites/hud/portal_crosshairs.VTF from inside your "portal 2/portal2/pak01_dir.VPK" file. The easiest approach would be to replace that file by your custom one (you could modify the hud resource file that controls this to make it point to a different file, but this is way much more complex)... However, it's a sprite sheet used by the Portal2 hud. It looks like this (but with transparent background):
Notice there are vertical division lines, you must draw whatever into each rectangle, and the game will take what's inside each one of them according to what it needs to draw at each pixel on your screen (hud).
Bare in mind the game priority as well, and introduce your new texture file into a pak01_dir.VPK file inside your portal 2/portal2_dl3 folder ok?
Quote from FireFusorf on July 7, 2015, 11:44 amIt works !
thank you very much !
It works !
thank you very much !