[prefab] Controllable Vehicle

martijntje

L8: Fancy Shmancy Member
Aug 2, 2009
539
334
http://forums.tf2maps.net/downloads.php?do=file&id=3818

Known issues:
IMPORTANT EDIT: Apparently if anyone is a car when waiting for players ends, it will crash. Seems to be a fourth player-exit scenario I did not think of because I always skip that timer. Use mp_waitingforplayers_cancel 1 to cancel it so you can play on your own.

Also, the map does not appear to function properly on dedicated servers, so don't try running it on one. I will investigate this issue later.
/end important edit



attachment.php


I found this thread: http://forums.tf2maps.net/showthread.php?t=13412 and thought, I might also be able to do it. So I tried to make Something similar from the ground up.

Usage: place in the same folder as all your other prefabs. Simply add it to your map. Make sure that players can get in the car in the waiting for players period. (aka use mp_waitingforplayers_cancel 1). To take control of a car simple stand on top of it. You can walk up it from the back. Use the movement keys to ride the card (w,s,a and d default) use M1 to boos your forward speed (use with cation) and M2 to boost your backward speed.) currently there is no method of flipping your card back around once it is on its back. While riding, it kills players you hit/crush with your car. Engineer buildings seem a problem, they stop the car. When build on the car, the car wont move at all.


My method: on top of the car is a trigger_multiple wich when touched by a player parents the player to the card and activate a game_ui. (jump to exit) Giving the player a top down view.
The car is a prop_dynamic (by default the chairman model: http://forums.tf2maps.net/showthread.php?t=13291) parented to a phys_box. To the phys_box multiple thrusters are connected wich will thrust at the press of a key (via game_ui).

The car isnt perfect, shakes sometimes, and moves more than a hovercraft than a car, but it works and I find it to be fun. The only crash I have had was with the waiting for players period, but other than that it worked fine. Unlike boojum's, my version has (crappy) physics, allowing it to flip, fall, ride hills, ride a looping, do a 540 mctwist to nosegrind and divide by 0.

Use this prefab as you see fit, make a fun map or use it to learn from.
 

Sokair

L1: Registered
Oct 15, 2010
24
0
Ohoohoho..that is awesome. So will people see you inside the car, or will not see you at all?


EDIT: sorry for bumping :x
 
Last edited:

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
Wait what

This was posted three months ago and nobody commented until now

I don't even remember this thread