TANK TUTORIAL+SCRIPT! E-Z To get! Only takes FIVE minutes!!!

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

TANK TUTORIAL+SCRIPT! E-Z To get! Only takes FIVE minutes!!!

Post by Master-Of-Fungus-Foo-D »

Ok everybody! I have the scripts, and all you need is WIN RAR. FOLLOW THESE STEPS!

1: download these essential files.(its best to put them on desktop.
http://bb.1asphost.com/ilikefungus/tank ... ehicle.scr

http://bb.1asphost.com/ilikefungus/tank ... esound.scr

#2:Now we use WINRAR to open up pak0. Put the two files we downloaded into ''global''

#3:SCRIPTING: put this line of scripting under the precache and other gloabal files.

Code: Select all

exec global/playervehicle.scr ( 649.00 336.0 -7.87 ) -160 1
exec global/playervehicle.scr ( -135.00 586.0 -7.87 ) -60 2
exec global/playervehiclesound.scr
(these are the scripts you hav just put in global from pak0)

the numbers you see there is the origin of the tank(top) and the jeep(bottom). Put the coordinate of where you want them there. Angles arent needed.WARNING!!! DO NOT! change the numbers OUTSIDE of the brackets!

AND THATS IT! moving a few files, downloading a bit, and a teency little bit of scripting to get, not just a driveable tank, BUT A PLAYER CONTROLLED JEEP AS WELL! WHAT A BONUS!

Now lastly id like to thank Ric-hard for posting up a file called tank_and_jeep.pk3 up on the recycling bin website. Without the script he put in a,this wouldve been imopossible!(not really, but my dream of making a driveable tank in alageirs would have to wait :) ) To edit the number of tanks and jeeps, a good scripter could go into the playervehicles.scr we put in global and KABOOM! two tanks and 8 jeeps! imagine the possibilities! (im working on it now :) )


I AM MASTER-OF-FUNGUS-FOO-D maybe the youngest mapper here! Good evening all! :wink:
Last edited by Master-Of-Fungus-Foo-D on Fri Jul 30, 2004 8:32 pm, edited 4 times in total.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

PlEaSe DoN't TyPe LiKe ThIs, it's hard to read. :wink:

Anyways it look nice!! But I wouldn't suggest editing the default paks, too easy to screw it up. It's best to put the files in a global folder, anything in it will overwrite the default ones. Also make your own pk3 and it will overwrite... :wink:
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

Image

good going. i suppose it could be superimposed into a tank?
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

Waddaya mean lizard kid? :?

I know you shouldnt edit the default paks, but THIS most likely couldnt screw it up... because you can remove it again. plus there isnt a PLAYERVEHICLE.scr in global(its called vehiclethinkers.scr) and THIS tank and jeep is SCRIPTED into your map. No Mapping rquiered.

NOw heres my real question! HAs anyone tried putting this in a DM map yet?
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Dani
Sergeant Major
Posts: 113
Joined: Mon Mar 08, 2004 6:45 pm
Contact:

Post by Dani »

I bet i'm younger than u, i'm only just 13 and i am making a class map. The Gates...
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

I just turned twelve buddy... Heh i guess i win(REALLY! i AM twelve!) seriously!
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

wooooooooow what a perception Image

hmmm
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

eheheheeheh... Im a kinda-not so great-but-stil-good-mapper and i can script. Im also pretty SMART. Im so happy. The vacation give me LOTS of time and while im in school ii still map.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

Master-Of-Fungus-Foo-D wrote:Im a kinda-not so great-but-stil-good-mapper and i can script. Im also pretty SMART.
even if you do say so yourself :lol:
"We must become the change we want to see in the world" (Mahatma Gandhi)
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

ah im smart! S-M-A-Q-Z-L :-\
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Cobra {sfx}
Site Admin
Posts: 194
Joined: Tue Mar 23, 2004 10:25 pm
Contact:

Post by Cobra {sfx} »

Yes you can use those drivables in any map, simply copy the maps script file eg mohdm2.scr and put the coords in where u want them to be, add to a maps/dm folder in a pk3 and make a global folder and copy the 2 files master of fungus has supplied above to global . They are quite buggy tho, i modified one slightly using an idea from Corporal Punishments to stop the player crashing the server when he left the server from within a tank....

add a case 3 to playervehicle.scr ...

case 3:

self fullstop

self notsolid
self.collisionent notsolid


if (local.player != NULL)
{
local.origin = local.player.origin + ( 0 0 100) // Eject player out of turret
local.player.origin = local.origin
local.currangles = self.faketurrent.angles
self detachdriverslot 0 local.player
}

if (self.gun)
{
self detachturretslot 0 self.gun.origin
self.faketurrent unglue self.gun
self.gun remove
}

if (local.player != NULL)
{
local.viewangl = local.player.viewangles
local.viewangl[0] = 20
local.viewangl[2] = 0
local.player.viewangles = local.viewangle
}

end


:)
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

thanx for the notice about that. Oh and thank you for using on a server, always glad to help.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

Master-Of-Fungus-Foo-D wrote:I just turned twelve buddy... Heh i guess i win(REALLY! i AM twelve!) seriously!
yes you can tell :wink:

lol at one point i was mapping at your age :lol:
"We must become the change we want to see in the world" (Mahatma Gandhi)
Post Reply