Crosshair changer

Crosshair changer

Postby YaRo » 28 Jul 2011, 11:58

Hello to everyone. I think I am not the only person who would like to change the default crosshair to something more suitable for me. Yes, I can change the image, but I wrote a function that allow you to choose your favorite crosshair from menu (UI options). All crosshairs were done by Fluxord and packed in 1.1 version. This is alpha variant, so there is not all crosshairs. In future i am planning to add color choose system, and, if you don't like this tile style of choosing, i can do something else, due to your feedbacks.

Warning! To make it work you need to patch (recompile) the game!

crosshair.zip
(52.14 KiB) Downloaded 434 times
Last edited by YaRo on 29 Jul 2011, 07:41, edited 2 times in total.
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Re: Crosshair changer

Postby Kitsune » 28 Jul 2011, 17:24

Works well, good job. Keep it up.

YaRo {l Wrote}:All crosshairs were made by Fluxord and packed in 1.1 version.


Fluxord made the crosshairs, not a dev team member.
viewtopic.php?f=53&t=1471
User avatar
Kitsune
 
Posts: 174
Joined: 28 Apr 2011, 00:07
Location: Maridia

Re: Crosshair changer

Postby YaRo » 28 Jul 2011, 20:36

Thanks! I edited my fault.
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Re: Crosshair changer

Postby Kitsune » 28 Jul 2011, 21:36

you should mention that the client has to be patched for it to work. and tbh, i think you could've done it another way, but it works well regardless and i love the classic Q3A crosshair nostalgia it gives. ^-^
User avatar
Kitsune
 
Posts: 174
Joined: 28 Apr 2011, 00:07
Location: Maridia

Re: Crosshair changer

Postby YaRo » 28 Jul 2011, 21:49

Yes, I've done this in Q3A style, however, if anyone wants, I can rewrite this, so it will look like weapon chooser from variables (with prev and next buttons). So just feedback
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Re: Crosshair changer

Postby qreeves » 29 Jul 2011, 03:24

Glad you finally made a forum post about this, I keep missing people on IRC. What exactly did you need to modify? You know you can use /crosshairtex "path/to/image" to set the crosshair, right?
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Crosshair changer

Postby YaRo » 29 Jul 2011, 07:43

qreeves, you need to put these files in the correct directory of the game and then compile it (I.E. by using "sudo make install" in unix).
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Re: Crosshair changer

Postby Kitsune » 29 Jul 2011, 15:31

YaRo, he wants to know what in the code you changed and why you didnt do it entirely in cubescript.
User avatar
Kitsune
 
Posts: 174
Joined: 28 Apr 2011, 00:07
Location: Maridia

Re: Crosshair changer

Postby YaRo » 29 Jul 2011, 21:47

Ah, I think I got it. I've added switch that returns crosshair texture in "getpointer" function, which can be selected from menu. The idea is simple, however that was hard to realize in source code (But this way is stable).
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Re: Crosshair changer

Postby YaRo » 19 Sep 2011, 20:19

Version 1.1 has come

New features:

-Better samples of crosshairs
-Per-weapon crosshair textures and colors
-Crosshair color changer
-My crosshairs pack



redeclipse/src/engine/ui.cpp ui.cpp - solved a bug
that shows you guibackground in all tabs, instead of one. Needs for
crosshair color select;


redeclipse/src/game/hud.cpp hud.cpp - identifying
variables;


redeclipse/src/game/hud.cpp hud2.cpp - main code
itself. made a new crosshair selection;


redeclipse/data/menus.cfg menus.cfg - this pastebin
contains all "ui" tab;


/redeclipse/game/game.h game.h - all HUD namespace
(fixed for crosshair changer)


redeclipse/data/crosshairs/ /crosshairs -
contains 10 different crosshairs with hit parts and whole prewiews.

How to set up:

Go to source of RE, search files (listed above), search that code functions and replace functions with new ones... Compile! Enjoy!

Image
Attachments
crosshairs.zip
(1.74 MiB) Downloaded 440 times
Last edited by YaRo on 20 Sep 2011, 14:28, edited 1 time in total.
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Re: Crosshair changer

Postby inpersona64 » 20 Sep 2011, 01:40

Is there anyone that could teamview me for this? i'd rather someone who knows how to do all this do it for me.
User avatar
inpersona64
 
Posts: 474
Joined: 01 Apr 2011, 18:19
Location: Eastern USA

Re: Crosshair changer

Postby YaRo » 20 Sep 2011, 14:16

In fact i emailed Mr. Reeves and asked him to put it into 1.2... However I'm too shy to ask him again... =)
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Re: Crosshair changer

Postby ZeroKnight » 20 Sep 2011, 17:04

inpersona64 {l Wrote}:Is there anyone that could teamview me for this? i'd rather someone who knows how to do all this do it for me.


I'll be online later today, so I'll do it for you then ;P
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Re: Crosshair changer

Postby inpersona64 » 20 Sep 2011, 18:17

ZeroKnight {l Wrote}:
inpersona64 {l Wrote}:Is there anyone that could teamview me for this? i'd rather someone who knows how to do all this do it for me.


I'll be online later today, so I'll do it for you then ;P

:D
User avatar
inpersona64
 
Posts: 474
Joined: 01 Apr 2011, 18:19
Location: Eastern USA

Re: Crosshair changer

Postby qreeves » 21 Sep 2011, 04:08

YaRo {l Wrote}:In fact i emailed Mr. Reeves and asked him to put it into 1.2... However I'm too shy to ask him again... =)

I've been having issues in real life at the moment. I did look at the stuff you provided, and again, it patches the code for the crosshair system in a way that I am not happy with. Everything I intended for people to be able to change/edit has already been exposed by variables, so unless you can do it without patching the source code I'm not prepared to apply it (hint: learn CubeScript better, you can do everything you're trying to do there).
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: Crosshair changer

Postby YaRo » 21 Sep 2011, 14:05

Dear Mr. Reeves,

I am very glad that you have read and checked this. Also I am grateful that you have criticized such thing.
However, I would like to say that I know CS, but I do not like such thing. I have written my own RE version and this XhairCS is a part of it. So I have to do a lot in source code that CS can not. This is about 95% of all things. That is why I do not prefer such style.

Yours sincerely,

Yaroslav YaRo Storozhev
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Re: Crosshair changer

Postby Phy83r0pt1k » 21 Sep 2011, 14:21

Actually, cube script can do many of the same things, just more work. trust me, doing fall damage in CS takes multiple pages compared to its 3 line C++ counterpart, the same goes for iron sights; but it can still be done nonetheless, and gui's are far easier in CS than C++ for this engine.
Phy83r0pt1k
 
Posts: 39
Joined: 20 Aug 2011, 04:28

Re: Crosshair changer

Postby YaRo » 21 Sep 2011, 14:26

Phy83r0pt1k {l Wrote}:Actually, cube script can do many of the same things, just more work. trust me, doing fall damage in CS takes multiple pages compared to its 3 line C++ counterpart, the same goes for iron sights; but it can still be done nonetheless, and gui's are far easier in CS than C++ for this engine.

In fact I really prefer C++ to CS... That is just my opinion, nothing more...
YaRo
 
Posts: 31
Joined: 27 Jul 2011, 22:26

Who is online

Users browsing this forum: No registered users and 0 guests

cron