help with sniper rifle mod -1 reply

Please wait...

dude100

I'm too cool to Post

50 XP

16th December 2002

0 Uploads

7 Posts

0 Threads

#1 15 years ago

Hi all, im currently modifying the sniper rifle and need a bit of help!. i need to be able to give it a aiming crosshair when it is unzoomed (normal carrying possition). I know how to do this but i have not been able to succesfully compile the code and since there aren’t any tutorials or much info on compiling i was really hoping one of you guys that know how to code could do this for me and send me the file. Or send me some instructions on how to compile the code! if anyone can give me a hand i would really appreciate it!. this mod is looking pretty good so far you could make it GREAT!.

Open up cg_draw.c and go to the CG_DrawCrosshair function.

See this section of code?

// If zoomed or unzoomed with the sniper rifle dont draw the standard crosshair zoomed = (cg.predictedPlayerState.pm_flags&PMF_ZOOMED); if ( zoomed || (cg.predictedPlayerState.weapon==WP_MSG90A1 && !zoomed) ) { return; } Basically whenever your are zoomed in or are using the sniper rifle unzoomed, then it will skip drawing the crosshair. All you have to do is to change the code to this:

zoomed = (cg.predictedPlayerState.pm_flags&PMF_ZOOMED); if ( zoomed ) { return; }

please reply to this or email me at [email]Randomcreator@hotmail.com[/email] And anyone that helps me with this task will get FULL credit in the readme file for this mod!

Thanks to ark for the above info on how to change the code!




arkanis50

Slightly cooler than a n00b

50 XP

20th December 2002

0 Uploads

37 Posts

0 Threads

#2 15 years ago

I'll code it for you...

I was going to do this for you when you first asked, but I am was in the middle of wrapping up a mod for release soon.

I still am pushing for a January 1st release date but I can spend a few miutes doing this for you, just need to get some clean code to work with.

The file might be around 400k in size, so I may have to upload it.

I'll get back to you.

Ark




arkanis50

Slightly cooler than a n00b

50 XP

20th December 2002

0 Uploads

37 Posts

0 Threads

#3 15 years ago

Ok done... it's only 190k... it would be 980k but I removed a bunch of unneeded files. It *should* work, I tested it and it seems to work.

There are some instructions in the email.

If you need any other coding or mod stuff done then you are on your own... :) there are tutorials around on coding and compiling code on the Raven forums.

Ark




arkanis50

Slightly cooler than a n00b

50 XP

20th December 2002

0 Uploads

37 Posts

0 Threads

#4 15 years ago

Having problems uploading file or attatching them to emails.. .will have top try tomorrow.

Ark




Point-Blank

I'm too cool to Post

50 XP

7th January 2003

0 Uploads

2 Posts

0 Threads

#5 15 years ago

I am iterested in a mod like this, is this available for anybody, I tried but failed at this task. (Spent many hours pulling out my hair)