Space Combat help needed

Topics regarding Scripting with Reality Factory
Post Reply
jamespro
Posts: 4
Joined: Wed Mar 28, 2007 4:58 pm

Space Combat help needed

Post by jamespro »

I am trying to make a Star Trek Fan game. I am having problems with space combat and I was wondering if some one could give me an example script for space combat so I can get an idea on how to do it? My game is a RPG style game including planet combat, space combat, exploration. You start out as a Star Fleet Cadet in star fleet academy where you learn how to play the game you then work up through the ranks to become a fleet captain where you can control a whole fleet of star ships. The main story line of the game will be an invasion by species 8472 however there will be many smaller story lines through out the game.

So if any one can provide me with a space combat script so I can see how to do it it would be very helpful!

(According to the Star Trek forum this is legal as long as you put a disclaimer saying that it has nothing to do with paramount and paramount owns star trek and that the game can't be sold.)
User avatar
jonas
Posts: 779
Joined: Tue Jul 05, 2005 5:43 pm
Location: Texas, USA
Contact:

Post by jonas »

Welcome to the forums Jamespro. I don't believe anyone as of yet has made a space combat game with realityfactory, or any flying game, but it is possible. You might take a look at some of the scripts in the demos that have cars, flying would be very similar you would just have to change the location of the vehicle, and ect..
Jonas

Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do it both ways and see which works better. - John Carmack
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Post by darksmaster923 »

well, you can script the player, but thats hard work and you have to have alot of experience.
Herp derp.
User avatar
BLACK_PHOENIX
Posts: 126
Joined: Wed Sep 27, 2006 6:42 am

Post by BLACK_PHOENIX »

this is actually very easy, just a bit confusing with rf. i reccomend the torque engine coz these type of things are really easy.


if your playing as a ship. you should make the ship model an actor so when you start you start as the ship. the bounding box will help with the combat so make it as small as the ship can fit.

next you will have to change around the camera and make it free to move around the bsp level and then attach it to the ship model.then the confusing bit. now you have to create a level that basically has no gravity. im not entirely sure on how to do this but this will allow you to move around the level like a ship with no gravity. then just script pawns the same way as normal but keeping them 0 gravity and eventually you might get a space combat level in RF. otherwise just use torque and youll do it in a quarter of the time since the levels used in torque have no "gravity" force that act upon the camera/player.
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

Not really sure if the torque engine is what he's looking for, you need to know porgramming (and also money) for the torque engine!

anyway, @jamespro: Welcome to the forums!


btw, if you're using a scripted player (which i really recomend for something like that, otherwise you cannot get faster/slower and aslo a few other things)
no gravity is pretty easy, because there is a Command called Gravity(true/false) which sets if gravity is acting to the pawn (=scripted player) to true or false.

It's also even easier to set the gravity in EnvironmentSetup to 0.
Everyone can see the difficult, but only the wise can see the simple.
-----
jamespro
Posts: 4
Joined: Wed Mar 28, 2007 4:58 pm

Post by jamespro »

Thank you every one for the replies. I have decided to put this game on hold until I am more experienced with Reality Factory. But once again thanks!
Post Reply