Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Possible Adaptive Crosshair script? Not a request, an Improvment (C&C) thread.

Author
Message
SecretiveOps
14
Years of Service
User Offline
Joined: 13th Sep 2010
Location:
Posted: 22nd Nov 2010 15:07
Not too soure, but I may have found a good adaptive crosshair script that changes the hud image from a big crosshair to a little crosshair, to a regular crosshair, dependent on if you move, jump, crouch, whatever.

Here it is. Tell me why this won't work. I've tried it and nothing happened. I even entered the desc = line.



Someone tell me if this would work. If it does, please give me credit on this discovery. If someone can teach me how, I would make it show an animated HUD.

How it should work:

The script cycles through numerous times looking for a key to be pressed. When the condition is met, it shows the HUD for as long as it is pressed, or another key is pressed.

Why does life suck the life out of you?
Seth Black
FPSC Reloaded TGC Backer
20
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 22nd Nov 2010 18:31 Edited at: 22nd Nov 2010 18:39
...some good imagination and creativity at work.

Unfortunately, the crosshair system used by the player's weapon is controlled
internally, by the engine.

It is possible to omit the hardcoded weapon crosshair HUD image, and implement
your HUD concept during gameplay.

It is also possible to simply leave the hardcoded weapon crosshair HUD image,
and tailor your custom images to function around it during gameplay.

In order to maintain any semblance of weapon accuracy, it would be crucial to
have your custom images perfectly centered, to allow them to properly act as
reliable replacement crosshairs.

The script above is a rough draft, and needs critical refinement of .fpi commands,
before it will function as intended. You are well on your way, and it should work
for you, once you make the needed corrections.

Rather than just provide you with the answers, it will be much more educational
for you to examine existing scripts that are widely available on your own, and to
discover the relatively simple code corrections that you must make, to make your
script functional.

SecretiveOps
14
Years of Service
User Offline
Joined: 13th Sep 2010
Location:
Posted: 22nd Nov 2010 18:44
Dang... you sound like my science teacher. Yeah, I kind of thought that it wouldn't necessarily work. But for games that have "blacked out" their crosshairs, this would be a good concept.

Why does life suck the life out of you?
Seth Black
FPSC Reloaded TGC Backer
20
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 22nd Nov 2010 19:01 Edited at: 22nd Nov 2010 19:01
...the concept is a good one, SecretiveOps. You really should explore it, to its
fullest potential. I think it'd be a cool effect.

Quote: "Dang... you sound like my science teacher..."


...I'll take that as a compliment. Thank you.

SecretiveOps
14
Years of Service
User Offline
Joined: 13th Sep 2010
Location:
Posted: 22nd Nov 2010 19:55
Oh my god! You just said you has a DD cup size!

Lol I had to say that, sorry. But when I get home, I will work on this code non-stop until it works.

Why does life suck the life out of you?
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 23rd Nov 2010 00:21
Looks to me like you just have some minor fixes to be made and it'll be showing the HUDs like it should.

Combine this with PB's "plraccmult" command to change the player's accuracy and it'd be perfect!


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
SecretiveOps
14
Years of Service
User Offline
Joined: 13th Sep 2010
Location:
Posted: 23rd Nov 2010 19:32
Wow, never thought of that Ply, thanks!

I'll have to review the code to see what errors are to be fixed.

Why does life suck the life out of you?
Seth Black
FPSC Reloaded TGC Backer
20
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 23rd Nov 2010 19:39
Quote: "...Oh my god! You just said you has a DD cup size!"


...swap cup with codpiece, and we'll call it even.

SecretiveOps
14
Years of Service
User Offline
Joined: 13th Sep 2010
Location:
Posted: 23rd Nov 2010 20:41
Whatever floats your codpiece, Seth. Just got Holographic and Suppressor attachments for my MP9/10/EAI Weaps. YAY!

Why does life suck the life out of you?
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 29th Nov 2010 10:04 Edited at: 29th Nov 2010 10:34
Sweet! adaptive crosshairs and Holographic / Suppressor attachments?
I want some!
I will take a look at your script SecretiveOps and see if I can help out with that, if you dont mind?
Also, where do u get the holographic attachments?

1 last thing:
forwardmovementcode
crouchbutton

are these project blue commands?
Thanks.

Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 1st Dec 2010 04:17
Those are not PB commands. The scancode commands need a number. Which one of the things wrong in his script. Unless, of course, he's using a Mod where those are acceptable.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
General Jackson
User Banned
Posted: 1st Dec 2010 19:31
Michael Thompson: Here are some very nice attachments for your guns Click Me

I am Southern, and I love Grits. Feel free to ask me what grits are if your a yankee
Crusader2
16
Years of Service
User Offline
Joined: 8th Aug 2008
Location: Somewhere...
Posted: 5th Dec 2010 04:01
Quote: "I am Southern, and I love Grits. Feel free to ask me what grits are if your a yankee"


Saw GJ's signature and just couldn't resist... THAT is amazing my friend. Grits might just be the greatest thing ever invented by the South. And I was actually in a restaurant the other day and someone asked the waiter what grits were... It was sad

[/offtopic]

This is an interesting idea, hopefully it works out! And GJ, nice attachments!

Best Regards,
Crusader2

"BOINK!" -The Scout

Login to post a reply

Server time is: 2025-06-04 20:26:25
Your offset time is: 2025-06-04 20:26:25