Page 1 of 4
Safety switch for weapons?
Posted: Wed Oct 20, 2010 12:30 pm
by Bugbear
I know that something similar has been suggested before...
tonight I was getting myself into position to dock, using keyboard control.
Got distracted by my better half, then looked back at screen and saw the station approaching fast. I hit the 's' key to slow down but...
...two minutes later I'm a fugitive and a cop killer to boot.
This suggestion is more about adding immersion, similar to the 'request docking permission' oxp that I quite like.
Basically, I'm just after a key assigned to a weapons on / off switch.
Posted: Wed Oct 20, 2010 10:43 pm
by Switeck
Change what keys map to what, so at least a fumble is less likely to hit your fire button. You could even require using shift with the fire key to make it even less likely.
Posted: Wed Oct 20, 2010 11:13 pm
by another_commander
The code for this request is ready to go in trunk. I will run a few more tests, then it will go in as trial code in the initial phase.
The way it is implemented is as follows:
Press '_' to toggle weapons lockdown. The message "Weapons systems online" or "Weapons systems offline" comes up accordingly, accompanied by the sound of the user's choice. The crosshairs are darkened when offline for visual indication. When weapons are locked down, no lasers can be fired in any direction. This could be useful when approaching stations, where accidental fire could lead to very unpleasant situations.
Posted: Wed Oct 20, 2010 11:19 pm
by Cody
I like that idea, a_c… it adds to the immersion factor. Did you code that today, or was it already in the pipeline?
Posted: Wed Oct 20, 2010 11:21 pm
by another_commander
Today. I had the idea in the back of my head for some time now, but since it came up now anyway, I thought what the hey, let's do it...
Posted: Wed Oct 20, 2010 11:23 pm
by Cody
As I've said before... you guys amaze me!
Does it also 'safe' missiles, or will I still have to use 'u' for that?
Posted: Wed Oct 20, 2010 11:26 pm
by another_commander
For now it does not affect missiles and that is because you cannot really fire a missile by accident (you have to target it first). But this is a part of the tests I would like to run before commiting anything.
Posted: Wed Oct 20, 2010 11:26 pm
by maik
another_commander wrote:Today. I had the idea in the back of my head for some time now, but since it came up now anyway, I thought what the hey, let's do it...
Excellent! Thanks!
Posted: Wed Oct 20, 2010 11:31 pm
by Cody
If you’re coming in to dock on manual, with an armed missile, it’s quite easy to fire one by mistake, as it’ll be locked-on to the station. I know, I’ve done it.
Posted: Wed Oct 20, 2010 11:36 pm
by Bugbear
a_c, does your tweak also disable the Energy Bomb?
Posted: Thu Oct 21, 2010 6:08 am
by Killer Wolf
nice work.
is it possible then to now spoof laser damage by (scripting?) a bit where if you take some damage the laser lock will activate until you dock and get it repaired? might make for some truly hairy combat experiences.
Posted: Thu Oct 21, 2010 7:48 am
by Ganelon
I think it's a cool idea, especially if we can add some voice bits. "Weapons are now hot.." "Primary weapons system standing down.." or something like that.
I've both shot and launched a missile at stations when doing a manual landing, especially with a joystick. I ended up moving the missile button off the joystick, so I have buttons for r,t, and u, but for m I have to reach out and push the button. Sort of more satisfactory like that anyway, in an odd way. And you learn to take your finger entirely off the trigger during tricky landings. LOL
I've also considered a hardware solution. Basically wire up a couple of nice big lighted toggle switches with safety covers as the "safe/arm" for laser and missile. But that could still be done with the safety switch in the program anyway, just set up those switches to basically make the keypresses for whatever the software needs. With a confirming message on the screen and/or an accompanying voice or sound effect bit, it'd just be even cooler.
Posted: Thu Oct 21, 2010 8:20 am
by another_commander
The system has been upgraded to include all weapons, namely lasers, missiles, mines and energy bomb. Missiles and mines can still be armed, circled with 'Y' and get assigned targets in weapons lock mode, but they will not fire until the system is released again. Missiles and mines display is also darkened when locked and a new HUD element, the "Weapons
offline" text has been added to the HUD display lists. This switches on when... guess
. Also, since the messages indicating status are definable via descriptions.plist, Ganelon's idea of having the ship's computer announcing weapons status is very doable just by enabling the speech option.
The weapons status is saved so that when you load a player saved in "weapons asleep" mode, the same mode will be resumed upon load.
Pics of the system: left is standard, right is with weapons locked.
If all goes well, I should be able to roll this in later today.
Edit: And... done. Revision 3774.
Posted: Fri Oct 22, 2010 9:35 pm
by Cody
Ah great... a good reason to download trunk and have a gander.
I'll do that tomorrow... and find out if Norton's still hates me installing it.
Posted: Fri Oct 22, 2010 10:03 pm
by Cmd. Cheyd
a_c-
Is it possible to also allow this weapon toggle to be joystick-button activated, please?