Author Topic: Holding down the mouse button to fire phasers  (Read 2701 times)

Offline Anew9

  • Posts: 197
  • Cookies: 1
Holding down the mouse button to fire phasers
« on: August 10, 2010, 02:39:27 PM »
Is there anyway to incorporate the phaser fire animation without having to fully hold down the mouse button? Like for example, could I just click it once and have the phaser animation turn on and fire fully?

Is there somewhere in the cfg folder etc where I could modify that parameter and have it like the torpedoes?

Offline CJLarkin

  • Posts: 243
  • Cookies: 27
Re: Holding down the mouse button to fire phasers
« Reply #1 on: August 10, 2010, 03:37:59 PM »
Do you mean firing phasers in quick repetition, like disruptor cannons? Similar to the way Phasers are fired in Nemesis?
Build a game and people will be happy for a few years. Build a community... Well, look at BC. :D
Here's to another 20 years!

Offline Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: Holding down the mouse button to fire phasers
« Reply #2 on: August 10, 2010, 03:45:54 PM »
I'm pretty sure he means he just wants to click the mouse and have the phasers keep firing when he lets go.

Offline Morgan

  • Moderator
  • Posts: 1340
  • Cookies: 65535
Re: Holding down the mouse button to fire phasers
« Reply #3 on: August 10, 2010, 05:04:52 PM »
I think Kirk is right. To my knowledge that can't be done, since releasing the mouse or "F" button is what tells the phasers to stop firing, but I could be off. However there is a game glitch that pops up every now and then where the phasers will keep firing regardless of whether or not your holding down the key, until you press the fire button again. I can't think of how I trigger it (I rarely pay attention how I do it), but it usually happens when I'm firing and shifting through the crew menu's, trying to re-route power or something.

Offline Anew9

  • Posts: 197
  • Cookies: 1
Re: Holding down the mouse button to fire phasers
« Reply #4 on: August 10, 2010, 08:01:54 PM »
I think its a mish-mash of both your theories. What I mean is that if I press the mouse button once, the phaser in the firing arc will complete a firing cycle until its dry. I want to stop holding the mouse button down when firing phasers.

And ultimately I would like to be able to click the mouse once to fire one phaser and click again to fire another from a different bank. But I'm pretty sure that's impossible seeing as how set single fire to 0 fires all the banks in the targets arc at once.

Offline Anew9

  • Posts: 197
  • Cookies: 1
Re: Holding down the mouse button to fire phasers
« Reply #5 on: August 10, 2010, 08:38:50 PM »
I just hate when the phasers cut out because the ship leaves a phaser arc. I want to be able to shoot the phaser regardless of if the button is pushed.

BTW, I'm ultimately trying to balance/ script the game to look something like this:


Offline Morgan

  • Moderator
  • Posts: 1340
  • Cookies: 65535
Re: Holding down the mouse button to fire phasers
« Reply #6 on: August 10, 2010, 09:18:29 PM »
I just hate when the phasers cut out because the ship leaves a phaser arc. I want to be able to shoot the phaser regardless of if the button is pushed.
The phaser cuts out when you move out of its arc because you've/your enemy moved into a position that particular array can't reach. It has nothing to do with being able to fire without holding the button.

Like I said, I doubt what your asking is possible. The button having to be held down to fire phasers is hard-coded in the game as far as I know, but a more experienced scripter may want to chime in and tell me if I'm right or wrong.

Also you may want to avoid double posting and make use of the modify button, for future reference.  :)

Offline Locke

  • Posts: 535
  • Cookies: 36
  • Cannot find REALITY.SYS - Universe Halted
Re: Holding down the mouse button to fire phasers
« Reply #7 on: August 11, 2010, 04:09:50 AM »
So what you're wanting is to fire like Voyager was around 1:55-2:05, right?  If you watch, the ship fires from several arrays at several parts of the ship.  So you would need to fire, switch to a different subsystem of the ship and fire again, all at close range.  This would accomplish your goal.  Unfortunately, I don't think you have enough fingers to do this, the weapons won't fire that quickly, and the game engine won't accept that many commands at once.  It can't even handle a roll-pitch-yaw combination.  That's pressing Q-W-A for the non-aeronautical of you. ;)

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Holding down the mouse button to fire phasers
« Reply #8 on: August 11, 2010, 07:54:48 AM »
That's pressing Q-W-A for the non-aeronautical of you. ;)
meh, most of the time i let Kiska do the driving lol :P

Offline Villain

  • Posts: 1480
  • Cookies: 71
  • The artist formerly known as Prime
Re: Holding down the mouse button to fire phasers
« Reply #9 on: August 11, 2010, 02:40:32 PM »
Actually, KM has multi-targetting. If you set up a bunch of subsystems you want to hit and click "Add target" under Multi Targetting (Found in Technologies in Felix's menu) then do your run, Felix will assign all avaliable arrays that can see the target to fire on however many of the selected ones they can. :)


"The design is clearly ancient... Launched hundreds of thousands of years ago."

Quote from: JimmyB76
der-ner-ner-ner-ner ..... der-ner-ner-ner-ner .....
---
Quote from: Rick Sternbach, on the topic of the Galor Class' length
...Probably not, but the number I get(379.6m) could be considered ?original intent,? a term that I think I will be using from now on, and ?canon? be damned.

Offline Locke

  • Posts: 535
  • Cookies: 36
  • Cannot find REALITY.SYS - Universe Halted
Re: Holding down the mouse button to fire phasers
« Reply #10 on: August 11, 2010, 05:19:12 PM »
Actually, KM has multi-targetting. If you set up a bunch of subsystems you want to hit and click "Add target" under Multi Targetting (Found in Technologies in Felix's menu) then do your run, Felix will assign all avaliable arrays that can see the target to fire on however many of the selected ones they can. :)

. . . and now I know what Multi-Targeting is for . . . :P  Can't believe I never knew that.  I just assumed it was for targeting multiple ships at once, and I always like to focus on a single one at a time.

Offline Anew9

  • Posts: 197
  • Cookies: 1
Re: Holding down the mouse button to fire phasers
« Reply #11 on: August 11, 2010, 11:11:23 PM »
Ya I used multitargetting that came with the shuttle framework mod, it was awesome. But I never really considered it canon apart from Dragons teeth in Voyager.

I don't expect to be able to exactly duplicate scenes from the show, i just want to have the option to engage in more diverse combat rather than shooting phasers and torpedoes until the ship explodes. Basically that makes combat a class vs class fight. Cold math.

I want to be able to use my deflector to disrupt shield harmonics. I want to be able to use shield frequencies and modulations to bypass defenses. I want to be able to outsmart my opponent in battle just like in the show.

Offline Locke

  • Posts: 535
  • Cookies: 36
  • Cannot find REALITY.SYS - Universe Halted
Re: Holding down the mouse button to fire phasers
« Reply #12 on: August 12, 2010, 01:55:27 AM »
Wait for Excalibur . . . ;)

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: Holding down the mouse button to fire phasers
« Reply #13 on: August 12, 2010, 07:34:47 AM »

Offline Anew9

  • Posts: 197
  • Cookies: 1
Re: Holding down the mouse button to fire phasers
« Reply #14 on: August 12, 2010, 07:40:30 PM »
Excalibur isnt even close to being finished...

Ive also been waiting for nano GE and that isnt even close to being done either.

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2200
  • Cookies: 1707
  • Life is life
Re: Holding down the mouse button to fire phasers
« Reply #15 on: August 13, 2010, 06:18:55 PM »
Maybe possible to do, emphasis on maybe. Some clever scripting would be required though.
Acta, non verba.
aka USS Sovereign

Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: Holding down the mouse button to fire phasers
« Reply #16 on: August 14, 2010, 09:54:35 AM »
Couldn't it be done  similar to the Husnock script I asked you about?

like

Code: [Select]
click mouse button -> if sActive == "FALSE":
sActive = 1
StartFiring()
      elif sActive == "TRUE":
sActive = 0
StopFiring()

Is it possible to assign mouse buttons with key foundation?




Offline DKealt

  • Posts: 110
  • Cookies: 4
Re: Holding down the mouse button to fire phasers
« Reply #17 on: August 14, 2010, 10:13:23 AM »
Okay,

I didn't respond to this thread because it seems like such an obvious answer, but since it hasn't been mentioned I thought I'd just put it out there.

All weapon systems can be made to automatically fire when using the Mouse.

All you do is Left Click to activate Phasers, once done hold the click down and press the Shift key. Then let go of the left Click first then followed by the shift key. And voila Phasers will continually fire when able.

As I said before this works with all weapons phaser, pulse and torpedo

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2200
  • Cookies: 1707
  • Life is life
Re: Holding down the mouse button to fire phasers
« Reply #18 on: August 14, 2010, 11:15:54 AM »
Quote
Couldn't it be done  similar to the Husnock script I asked you about?

It could be, I just can't remember what that script was about. A lot on my mind these days.

Quote
click mouse button -> if sActive == "FALSE":
            sActive = 1
            StartFiring()
            elif sActive == "TRUE":
            sActive = 0
            StopFiring()

Yeah although you better use bool values instead of string, programmatically more accurate lol You need only 1 variable (only for the player) whose status is set on the mouse click event and must be handled appropriately at some critical game events like starting a new mission, choosing a new ship and such.

Quote
Is it possible to assign mouse buttons with key foundation?

It should be.

Quote
Okay,

I didn't respond to this thread because it seems like such an obvious answer, but since it hasn't been mentioned I thought I'd just put it out there.

All weapon systems can be made to automatically fire when using the Mouse.

All you do is Left Click to activate Phasers, once done hold the click down and press the Shift key. Then let go of the left Click first then followed by the shift key. And voila Phasers will continually fire when able.

As I said before this works with all weapons phaser, pulse and torpedo

Man asked to do this with a single click and not via key combo.
Acta, non verba.
aka USS Sovereign