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 / Project Blue Ironsight crosshairs help?

Author
Message
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 12th Jan 2011 22:21
I have a set of crosshairs for model packs 9 and 10, and have been told that it can not have the crosshairs disabled when zoomed, and enabled when not.
However, when I was reading through the Project Blue manual, I saw the command

hidecrosshair

I imagine that it would go in the script for the iron sight when it enters, but I could not find where to put this commands counter, for when you zoom out - showcrosshair

I have a few different scripts for my crosshairs, none of them were coded by me. I'll post the most common layout for them. Whoever coded theese, sorry, I've forgotten your username, and you don't seem to have included who to put credit to anywhere in these.
If anyone can help me, please don't hesitate to post.



I'm that thing you catch a glimpse of in the corner of your eye...
The flash when you readjust the rear view mirror...
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 12th Jan 2011 22:46
hidecrosshair and showcrosshair are not gunspec options, they are script commands, and so they should be used in an FPI script.

To help you out, you can create a script that waits for the player to "enter zoom mode". When the player enters zoom, hide the crosshair. When the player leaves zoom, show the crosshair.

There is a PB command called "zoomed", which will be TRUE while the player is zoomed.

Example:



Actually.... I think that would be your entire script.


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.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 12th Jan 2011 22:47
Wow...


Thanks.

I'm that thing you catch a glimpse of in the corner of your eye...
The flash when you readjust the rear view mirror...
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 12th Jan 2011 22:50
No problem!

"Everybody gets one." *Fires a web and swings off*


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.
Ikey
14
Years of Service
User Offline
Joined: 17th Apr 2010
Location: Look in the back seat of your car
Posted: 12th Jan 2011 23:21
Okay then - Fix.

People with Project Blue, when you use the body + legs, to remove crosshairs when zoomed, add

:zoomed=1:hidecrosshair
:zoomed=0:showcrosshair

to the triggers section of your leg script, and you're good to go
Another option is to add it to default.fpi - same place.
This is a good idea, because whether you use body and legs or not, you will almost certainly have an object with this script in any level.

I'm that thing you catch a glimpse of in the corner of your eye...
The flash when you readjust the rear view mirror...

Login to post a reply

Server time is: 2024-11-24 14:40:20
Your offset time is: 2024-11-24 14:40:20