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 / Mouse keypress number??

Author
Message
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 8th Feb 2013 06:01 Edited at: 8th Feb 2013 06:01
I have searched as far as I could on and off forum for the number to put into a script for a right mouse button detection. I basically have a weapon that works well and a melee attack that works well on any keyboard key but I want it to use the rightclick of the mouse instead. Any ideas guys?

Model pack 66-99 high quality items...cheap!!
"Who loves ya baby!"
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 8th Feb 2013 06:09
mousestate=2

I don't trip over...I do random gravity checks.
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 8th Feb 2013 06:14
didn't work. It's really the left and right hands of a punching weapon but I would like to use this on many other weapons.

Model pack 66-99 high quality items...cheap!!
"Who loves ya baby!"
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 8th Feb 2013 06:20 Edited at: 8th Feb 2013 06:25
That one always worked for me, and I used it on an entity which reacted using interactive hand,(right click was always reserved for zoom so maybe you have to disable it for that first) I believe there may be another condition for 'mouseclick' or something similar but cant remember it off hand.

I don't trip over...I do random gravity checks.
ncmako
12
Years of Service
Recently Online
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 8th Feb 2013 06:23
Yes rolfy is right,"MOUSECLICK=X This returns true if the corresponding mouse button has been pressed"
X = 1 – Left button is pressed,
X = 2 – Right button is pressed,
X = 3 – Both left and right buttons are pressed.
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 8th Feb 2013 06:26 Edited at: 8th Feb 2013 06:32
Maybe this script might help though its for health, use the entity your hitting to trigger the anim and the health reduction using 'pickobject' rather than the weapon to trigger, if you know what I mean.



I am sure someone more savvy about scripting and weapons in particular will know exactly what you want, pretty sure it can be done easily enough.

mousestate= is when the button is held.

I don't trip over...I do random gravity checks.
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 8th Feb 2013 06:31 Edited at: 8th Feb 2013 06:35
My bad, I should have been more clear. This is for a gunspec. the question marks are what I'm trying to figure out.
;Melee
melee key = ???(needs to be right click)
melee range = 60
melee damage = 10
melee noscorch = 1
melee start = 101,104
melee end = 104,114

I can get any key on the keyboard to work i just need the key number for the right click.

Model pack 66-99 high quality items...cheap!!
"Who loves ya baby!"
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 8th Feb 2013 06:39 Edited at: 8th Feb 2013 07:08
Should it not be "start fire 2" ?

Errants fantasy hands use start fire sequences,

I don't trip over...I do random gravity checks.
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 8th Feb 2013 06:47 Edited at: 8th Feb 2013 06:49
Is there a vid of this in action? I need to know which one to purchase. This sounds exactly like what I need.
EDIT: nevermind i found the vid link in the store. Thanks guys for pointing this out to me.

Model pack 66-99 high quality items...cheap!!
"Who loves ya baby!"
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 8th Feb 2013 06:52 Edited at: 8th Feb 2013 07:05
Actually just took a closer look and it was using conditions from Ply's mod I dont know how much of that made it into the fpsc stock source but it def dual wielding which is in there for sure but I dont have enough info as never looked at it, 'candual' looks to be the condition required, so look into dual wielding.

You might require two separate modeled arms to use dual properly.

Right click was for blocking and it looks like start fire sequence was left click random anims for the right hand..

I don't trip over...I do random gravity checks.
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 8th Feb 2013 06:59
It's cool. I just bought and tested it and it's random enough to use with just the left click. Too bad the block doesn't work for melee attacks. But thanks this is great.

Model pack 66-99 high quality items...cheap!!
"Who loves ya baby!"
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 8th Feb 2013 07:03 Edited at: 8th Feb 2013 07:10
Not sure its exactly what you want but if its good for you, your welcome

I don't trip over...I do random gravity checks.

Login to post a reply

Server time is: 2024-11-23 17:28:07
Your offset time is: 2024-11-23 17:28:07