Baseplate Posted October 15, 2012 Share Posted October 15, 2012 Well, can I change the crosshair by using "TXD"? if so how to change it for every weapon? Link to comment
denny199 Posted October 15, 2012 Share Posted October 15, 2012 Use shaders. the crosshair needs to be 1/4 off the whole crosshair evrything: client: addEventHandler( "onClientResourceStart", resourceRoot, function() if getVersion ().sortable < "1.1.0" then outputChatBox( "resource wont work on this client." ) return end local texture = dxCreateTexture ("images/aimer.png") local shader = dxCreateShader ( "shader.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) engineApplyShaderToWorldTexture ( shader, "sitem16") end ) meta.xml: <meta> <script src="cscripted.lua" type="client" /> <file src="shader.fx" type="client" /> <file src="images/aimer.png" type="client" /> </meta> shader: texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } and then the croshair: http://denz.comuf.com/apps/aimer.png Link to comment
myonlake Posted October 16, 2012 Share Posted October 16, 2012 Another way on doing is basically making a photo and using DirectX functions to place the image on the screen. It doesn't really matter how you do it though. Link to comment
denny199 Posted October 16, 2012 Share Posted October 16, 2012 Maybe it is, but the crosshair is not in the middle of the screen. Link to comment
50p Posted October 16, 2012 Share Posted October 16, 2012 Maybe it is, but the crosshair is not in the middle of the screen. Doesn't matter if you know basic maths, viewtopic.php?f=91&t=41865&p=423999#p423999 Link to comment
myonlake Posted October 16, 2012 Share Posted October 16, 2012 Maybe it is, but the crosshair is not in the middle of the screen. Doesn't matter if you know basic maths, viewtopic.php?f=91&t=41865&p=423999#p423999 Yeah, I first didn't understand denny's comment since it is quite easy to place it in the middle of the screen. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now