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 / ironsight crosshair removal help(Plys Mod)

Author
Message
bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 1st Sep 2009 00:45 Edited at: 1st Sep 2009 01:02
Hi

I'm trying to remove the crosshair when you go to ironsights. The problem is that it works mostly but if you start clicking the right mouse button quickly it freaks out.
here is the script:



thanks

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Bigsnake
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: England
Posted: 1st Sep 2009 15:48
Quote: "start clicking the right mouse button quickly it freaks out."


why the hell would you do that anyway ?

Join the forums and download fpsc games here:
http://fpsc-games.webs.com/
Windows Vista,ATI Readon HD 4870,AMD Athlon 7750 64 Dual Core,4GB ram,SoundBlaster Audigy,EFX Free Edition
bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 1st Sep 2009 19:09
Making it bug proof

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Bigsnake
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: England
Posted: 1st Sep 2009 20:01
oh right

Join the forums and download fpsc games here:
http://fpsc-games.webs.com/
Windows Vista,ATI Readon HD 4870,AMD Athlon 7750 64 Dual Core,4GB ram,SoundBlaster Audigy,EFX Free Edition
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Sep 2009 02:38
Well, what happens if you hold down the right mouse button? If I'm not mistaken reading your script, the crosshair would most likely "flicker".

What you need to do is have state 20 wait for the right mouse button to be let go before going back to state 10.


The one and only,


bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 3rd Sep 2009 04:07
ahhh thanks Plystire

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 2nd Oct 2009 21:20
BUMP: I have just been working on a limping script and I wanted to see what I was doing wrong



come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Oct 2009 23:40
Quote: "desc limping script"

Should be:
Quote: "desc = limping script"


Shouldn't be your problem, though, just pointing it out.

I don't understand what the point of your script is, what it's supposed to be doing, and what it isn't doing.


The one and only,


bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 3rd Oct 2009 00:04
currently the script is supposed to be severely bobbing the camera when the player is moving, and its not doing anything right now.

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Oct 2009 00:55
If "bobbing" you mean moving up/down, then you'll want to alter the camera's X angle and not the Y angle. The Y angle controls left/right movement, while the X angle controls up/down.

Also, in your script, while key "17" is being held down, the timer is constantly being reset, so the condition that checks the timer is never going to be true (Because that line needs the key to be held down AND have the timer reach a certain point)


The one and only,


bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 13th Oct 2009 00:44 Edited at: 19th Oct 2009 07:34
Here is the completed crosshair script


WARNING: If you go completely crazy then this script will screw up, if any of you want to modify this script go ahead.

EDIT: Here is a updated script which, as far as I know works perfectly but runs like cold molasses on my computer:


EDIT: about the limping script I can't find a way to keep the timer from getting reset every loop.

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 22nd Oct 2009 21:25
In regards to the limping script, what if instead of using a entity timer I just checked if the Variable $CAX is, say, 10 units larger than OldViewX, that might make it work.

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 27th Oct 2009 03:04
Sorry for the double post but here is a fully working Project Blue 1.7 version of the crosshair script

Here ya go!

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Mugen
19
Years of Service
User Offline
Joined: 27th Aug 2005
Location:
Posted: 31st Oct 2009 21:49
I got mine to work with the PB 1.7 too
Use mine if you want to use it on a multiplayer game because it doesn't set states.



Mugen is the name pal, Ya got that?
bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 4th Nov 2009 21:21
I'm sorry, could someone explain how to use the camera environment variables.

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 5th Nov 2009 00:09
Quote: "camera environment variables"


Which ones? The position/angle variables? Are you wanting them for a user-made camera or the player camera?


The one and only,


bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 5th Nov 2009 18:22
The angle variables, and for the player camera

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Nov 2009 01:24
$CAX, $CAY, $CAZ

They stand for "Camera Angle" and whichever axis they belong to.

Just stick one of those into a command in order to use their values.

Examples:
setvar=MyVar $CAX
entityangley=$CAY


The one and only,


bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 6th Nov 2009 02:49 Edited at: 6th Nov 2009 21:21
thanks

EDIT: I'm having trouble with a weapon script I've been making.
It's supposed to stop the weapon from firing if the variable jamFlag is equal to 1 and jamFlag is set to zero when you reload.




come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Nov 2009 02:01
:state=0:setvar=jamFlag 0,setvar=jamCnt 30

Since it's always in state 0, it's always setting the Flag to 0.


The one and only,


bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 7th Nov 2009 05:40 Edited at: 7th Nov 2009 18:24
Thanks, god i'm an idiot

As for as I can tell all the variables are global right, then it must be a problem with the line of code with the random generator

come see night shift at http://forum.thegamecreators.com/?m=forum_view&t=106003&b=25 see you there

Login to post a reply

Server time is: 2024-11-25 08:03:52
Your offset time is: 2024-11-25 08:03:52