[Release] Give A Car Function

Posts 1–15 of 27 · Page 1 of 2
[Release] Give A Car Function
Ok, it isn't a playable mod, but a function to give yourself a car to drive, it's fun to drive around.. can be used in many ways like in zombie mods menu buy-a-car or a race.

Function works as:

Code:
self thread givePlayerVehicle(vType);
vType ~ vehicle to give.

Available vehicles (vType) ARE ONLY:

Code:
police ~ terminal, bailout
jeep ~ afghan, derail, invasion, quarry, rundown, skidrow
hummer ~ after, invasion
armyTruck ~ derail, skidrow, rundown, scrapyard(?)
pickuper ~ derail, estate, quarry, scrapyard, underpass, bailout, crash
familyWhite ~ estate
familyBlack ~ estate, bailout
fast ~ estate
familyRed ~ estate
car80s ~ invasion
taxi ~ invasion
truck ~ karachi, quarry, scrapyard, bailout, storm
greenVan ~ quarry
whiteVan ~ quarry, skidrow
bimbaBlue ~ rundown
bimbaWhite ~ rundown
frozenJeep ~ sub base, derail
blueVan ~ underpass
fastBlue ~ bailout
fastWhite ~ bailout
oldBrown ~ crash
oldGreen ~ crash
oldRed ~ crash
oldWhite ~ storm
oldSilver ~ storm
fuelTruck ~ storm
Example:
Code:
self thread givePlayerVehicle("Jeep");
Another example:
Code:
mapz = getDvar("mapname");

if(mapz == "mp_afghan")
{
self thread givePlayerVehicle("jeep");
}
else if(mapz == "mp_derail")
{
self thread givePlayerVehicle("frozenJeep");
}
I haven't tested it since a little tweak, but it works.

Video:


Functions:
http://pastebin.com/x0SkpbPa

Functions are
Code:
isPlayerInVehicle();
givePlayerVehicle(vType);
REMEMBER!
to add
Code:
self thread doStartVeh();
onPlayerSpawned!!!

I also tried to make them ram people, but I was so lazy, code is still there, just remove the /**/ and //

Something that you'd want to know:

Vehicles don't fly.
Press your <fire> key for faster driving.

Credits:
4FunPlayin - Making this.
-Snakez- - All models.
ZerO_oNe - Testing it for me while I'm reinstalling MW2
pro can u upload the file mode please?
Quote Originally Posted by rangg View Post
pro can u upload the file mode please?

Pro can you read the thread please?
Just great! I used it in Terminal and it was very funny to play with! Thanks for sharing this with us.
o.O was made in the prephunt mod -_-
i mean all this modules -_-
Who on earth doesn't know how to change model? what models.. the car models are from Snakez, probably the first guy to give a full model list.
he means that in the mod PropHunt these codes were used before but it's a nice share anyway, clear wich models to use for wich maps and stuff.
I also have a mod with setModel, it was my first mod EVER, Chicken Mod, lol.. so what prophunt has to do with this?

Edit
Just checked prophunt, isn't really a problem to see that he made the player invisible, and spawned an object on him, so this cars are defo has nothing to do with prophunt. End of story. Mine doesn't spawn an object.
Please send me full edit code i dont now where i must put in THX ^^ Nice MOd
Is it that hard to read the first two lines? >.>
for the weird head glitch:

Code:
self.headmodel = "";
or
self.headmodel hide();
both untested, but yes self.headmodel is real
Posts 1–15 of 27 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us