Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Riven on May 27, 2002, 02:13:48 pm
-
I had an idea the other day for a recon drone for FS2 but have no idea on how this would be implemented but i guess it would require some source work. Seeming as i don't know didly about writting source i thought i would give everyone else the idea.
Keeping well back from the target in a stealth fighter a recon probe jumps in. The player can target and view from it and move it about using their own controls while remaining completely stationary. This could be used in many different mission types with more story telling in mission because these probes may 'intercept' top secret transmissions both between foe and allies!
Targeting the probe is easy enough and viewing via the "/" key on the numpad but can this be written into the source and how on earth could the controls be re-routed to the probe. I'm not sure if it even is possible but give me your ideas.
I've got plenty more strange ideas like this so you might hear a few more in the future.
-
Strange idea? you can already do this in Iwar2 ;)
-
Mmmmmm. Antimatter Remotes: for when you absolutely, positively have to destroy everything in a 10km radius, and let its family know its dead. :D
Remotes -- and indeed, remote control in general -- is a great thing to have at your disposal outside of the standard space-fighter oriented genre. Iwar2 makes heavy use of this game mechanic, as Venom said.
On the other hand, neither Iwar2, nor getting away from the tried-and-true Freespace formula seems terribly popular here.
-
could also be used for fly by wire bombs
-
Now that would be fun Bobboau!
-
All you'd have to do is put in a few sexps. Like:
When
-And
--KeyPressed
---(whatever)
--KeyPressed
---KeyPad6
-TurnRight
--Probe 1
-
I have an even easier idea than using sexps...
From my little bit of prog experience, when you listen for the keypress (like seeing if they pressed the button to move the ship left), just see what has the movement focus with an if statement.
case IDM_UP:
if(focus == probe)
probe.x++;
if(focus == ship)
ship.x++;
break;
all of that is entirely theory because I haven't been messing with the code at all...