PDA

View Full Version : Implementing vehicles in the Unreal engine


Devil Master
12-02-2002, 01:41 AM
During the last days I was thinking about a way to implement vehicles in the Unreal engine, or better, to make it LOOK LIKE the player can drive vehicles.
I thought that a vehicle mesh and a "vehicle_key" inventory item would be needed for this and I thought about all the effects that using the "vehicle_key" item should have.
Since I don't know UnrealScript very much, I wrote them in a pseudolanguage. Would anyone who DOES know UnrealScript tell me if it can actually be done and translate the pseudolanguage into UnrealScript?
</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">PLAYER_IS_DRIVING = FALSE
if PLAYER_USES_VEHICLE_KEY
{
if PLAYER_COLLIDES_WITH_VEHICLE
{
if NOT(PLAYER_IS_DRIVING)
{
remove VEHICLE_MESH
replace PLAYER_MESH with VEHICLE_MESH
disable STRAFE_LEFT // you can't drive sideways
disable STRAFE_RIGHT //
disable MOUSE_VERTICAL_AXIS // nor look up and down
PLAYER_IS_DRIVING = TRUE
if PLAYER_IS_MOVING_FORWARD
{
play FORWARD_SOUND
}
if PLAYER_IS_MOVING_BACKWARDS
{
play BACKWARDS_SOUND
}
}
}
else
{
replace VEHICLE_MESH with PLAYER_MESH
summon VEHICLE_MESH
PLAYER_IS_DRIVING = FALSE
enable STRAFE_LEFT
enable STRAFE_RIGHT
enable MOUSE_VERTICAL_AXIS
}
}[/code]</blockquote><font size="2" face="Verdana, Arial">

[ 12-02-2002, 01:49 AM: Message edited by: Devil Master ]

Tip
12-02-2002, 09:32 AM
Or you could just get UT2003 and use the built in vehicle.

Devil Master
12-03-2002, 01:48 AM
UT2K3 doesn't have a real single player mode.
/me does not like it

Night Hacker
12-19-2002, 10:06 PM
Originally posted by Tip:
Or you could just get UT2003 and use the built in vehicle. <font size="2" face="Verdana, Arial">UT2003 has built in vehicals?! Kewl, I may buy it sooner than I thought after all. images/icons/smile.gif

Guest
12-19-2002, 11:22 PM
I don't like that it has no SP either. That really bums me out. Also Neil, don't get your hopes up about the vehicle in the game. It is a piece of crap, they just put it in for mod developers to tinker with. The only reason I bought it is to get the editor, it's worth it just for that. But it leaves a lot to be desired.

Night Hacker
12-20-2002, 12:28 AM
Yeah, from some of the work I have seen so far it does look nice. But I am certainly several months away from buying anything, got lotsa bills to pay off which will prolly take me until at least March, then I want to do a major upgrade so... prolly won't buy it until late spring or summer. <sigh>

BUT, UNRealEd 2 is fun, I have downloaded a few files that have added tools to it, so I am enjoying it.

widowmaker
12-20-2002, 01:25 AM
UED2 is nice. A lot more stabile on my machine than UED3. But when you get into UED3 you'll never want to go back. So many nifty features.

Adding vehicles in UT2K3 will be pretty easy. Why they didn't seems pretty clear to me. There are a lot of polys in the vehicle and it isn't team friendly.

It will be up to the mod community to make something worth while with the vehicle.

Devil Master
12-23-2002, 09:38 AM
Back to the original question, is there anyone who can help me to translate my pseudo-code into UnrealScript?