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 Product Chat / Forcing Use Action to Be Used By Mouse 1?

Author
Message
ASTECH
18
Years of Service
User Offline
Joined: 18th Jul 2007
Location:
Posted: 23rd Feb 2012 00:35 Edited at: 23rd Feb 2012 00:36
I've briefly read over the community guide and if the answer to this question is there, I must have missed it. What I'm currently trying to do is self explanatory by the title. Instead of having one of the keyboard keys to be the "Action" button, I want it mapped to left click in my build game.

Is there a way to force this? I know it would clash with equipped weapons but I'm not worried about this at the moment. I just would like to know if this is do-able and what steps I need to take to make this happen.

PC Specs: AMD X4 2.7Ghz, 8GB DDR3 RAM, Nvidia 9800GT, Win. 7 Pro 64 Bit
rolfy
20
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 23rd Feb 2012 00:54 Edited at: 23rd Feb 2012 01:25
mousestate=1 will do the trick. I cant think offhand how you would disable the weapon from firing but pretty sure its do-able.
There are probably a couple of different ways to either put away a weapon or stop from firing if conditions are met.

hideplrweapon for instance.

To make things even simpler you could use right mouse button. mousestate=2.

Without knowing what you want to do I can only guess at the script.
For example to use say a gradual health up:




This would go into a health pack entity or one of those medicine terminals or whatever, when the pack is centre screen clicking on it would gradually increase health, of course you would have to reselect your weapon when done.

I just threw it up so not sure it would work without testing but you get the idea.

Awesome! Its one of those threads.
ASTECH
18
Years of Service
User Offline
Joined: 18th Jul 2007
Location:
Posted: 23rd Feb 2012 01:23
Thanks Rolfy.

What I'm doing isn't mainly focused on a script as much as it is focused on the hardcoded controls of FPSC.

As in you press "mouse 1" to shoot and "enter" to use switched and doors. When you go to build a game, you can map what buttons do what.
I'm sure you know this but I'm just clarifying what exactly I'm looking at.

I currently went into setup.ini and buildsetup.ini. Where "Key7" is directs what key is responsible for using items in the game world. This is what I'm trying to direct to the Mouse 1.

PC Specs: AMD X4 2.7Ghz, 8GB DDR3 RAM, Nvidia 9800GT, Win. 7 Pro 64 Bit
rolfy
20
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 23rd Feb 2012 01:26 Edited at: 23rd Feb 2012 01:27
Ah! I see. Cant help you there I am afraid, never looked at that.

Awesome! Its one of those threads.
elbow
15
Years of Service
User Offline
Joined: 3rd Dec 2010
Location:
Posted: 23rd Feb 2012 05:04
Hi Rolfy

Your explanation and sample script gave me an idea for solving a problem I was facing in my game.

Thanks

Eugene

Login to post a reply

Server time is: 2026-07-02 12:51:43
Your offset time is: 2026-07-02 12:51:43