drivable jeep multiplayer

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

Moderator: Moderators

User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

These two line spawn the driveable vehicles into the map

exec global/playervehicle.scr ( 2944.99 -1716.46 67.43 ) 177.8 1
exec global/playervehicle.scr ( 595.98 -1297.28 29.23 ) 177.8 2

The jeep is a custom jeep it changes the jeep to make it drivable by changeing it's classname from driveable vehicle to vehicle tank . The tank is a normal tank . In the map you will need to hold down the use key beside the tank or jeep for a few secs to get in .
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

ok you meant i write this on my script :

exec global/playervehicle.scr ( 2944.99 -1716.46 67.43 ) 177.8 1
exec global/playervehicle.scr ( 595.98 -1297.28 29.23 ) 177.8 2

then i ll got a jeep drivable ????? do i got to put one on my map too.........any targetname ????

i dont well understand???? plz can you explian me bodger or i got email if you want agentmad007@hotmail.com TY

i m noob lol hehe
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post by Ric-hard »

Here is an example with 1 Tank and one Jeep.
Note: Use rightclick save target as
http://members.lycos.co.uk/userver/DOWN ... p_test.zip

The things u need to do to get a JEEP into your map is,
1. Copy the content in the GLOBAL and the MODELS/VEHICLES-folder into your pk3.
2. Start your map and run like the wind to the place where u want the jeep or tank to be spawned, then type coord in the console and write down the coordinates.
3. Open your map-script and put this code (with your cordinates ofcourse) after level waittill spawn

exec global/playervehicle.scr ( -135.00 586.00 -7.87 ) -60 2
exec global/playervehiclesound.scr
Last edited by Ric-hard on Wed Mar 10, 2004 4:17 pm, edited 1 time in total.
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

//exec global/playervehicle.scr <origin> <angle> <type>
//type 1 =tank type 2 =jeep
whats the point of adding lines 2 a script if they are commented out ????
Image
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post by Ric-hard »

OOOps,
Thx M&M
Fixed it
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

it work for mohaa and not for moh breakthrough strange


and you said

exec global/playervehicle.scr ( -135.00 586.00 -7.87 ) -60 2

i typed coord and i get

location:464.41 -111.93 -7.87
angle 5.66 164.15 0.00
axis -0.96 0.27 -0.10


so for my example it will

exec global/playervehicle.scr ( 464.41 -111.93 -7.87 ) 5.66 164.15


isnt it ?????


plz correct me and tell me why for moh breakthrough it dont work i cant see either the jeep neither the tank and for mohaa i drive it cooool


and more over i searched in pak of mohaa and maintt and i dont found the playervehicle.scr is it a custom that bjarne made ????
sorry for all question :(

TY
Ric-hard
Sergeant Major
Posts: 102
Joined: Sun Feb 29, 2004 6:44 am
Location: sweden
Contact:

Post by Ric-hard »

I didnt know u made this for Breakthrough, dunno if it works, but try.

exec global/playervehicle.scr ( 464.41 -111.93 -7.87 ) 164.15 2
exec global/playervehiclesound.scr
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

The syntax for the line is

exec global/playervehicle.scr <origin> <angle> <type>

so if you type coord and get

location:464.41 -111.93 -7.87
angle 5.66 164.15 0.00
axis -0.96 0.27 -0.10

then origin is 464.41 -111.93 -7.87

angle is 164.15 which is the yaw or y angle same as useing angle in the editor

you don't need the axis so RIC-HARD is right .

exec global/playervehiclesound.scr is in the global/playervehicle.scr so you don't need to put it in your level.script it uses the script master sound fix for mohaa but for screarhead there is a playervehiclesound.scr in the ubersound directory that should autoload when you start a spearhead map . I know I put exec global/playervehiclesound.scr in the level script but after looking again at the map I see I did not have to .
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

It dont work with the lines that richard give me

i saw no tank and no jeep

strange can you explain why plzzzzzzzzzzzzzzzzz? i really want this jeep on my map !!!!!!!!!!!!!!!
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Well do you have the The_rescue.pk3 in your main directory and did you add those lines with you coordinates into your level script ?
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

yes i got it and it dont work !
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Well either your coordinates are wrong or you have another script error and your script isn't running . Maybe post your script.
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

i tried like this
main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "tank_and_jeep_test"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/ambient.scr mohdm6
level.script = maps/dm/tank_and_jeep_test.scr


level waittill spawn

exec global/playervehicle.scr ( 464.41 -111.93 -7.87 ) 164.15 1
exec global/playervehicle.scr ( 464.41 -111.93 -7.87 ) 164.15 2
exec global/playervehiclesound.scr

level waitTill prespawn

end
//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end


and like this too


main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "tank_and_jeep_test"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/ambient.scr mohdm6
level.script = maps/dm/tank_and_jeep_test.scr


level waittill spawn

exec global/playervehicle.scr ( 464.41 -111.93 -7.87 ) 164.15 2
exec global/playervehiclesound.scr

level waitTill prespawn

end
//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end

this is your script i dont modif it !!!! your pk3 work on mohaa but dont work on moh breakthrough !!!!!
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "tank_and_jeep_test"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread

level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/ambient.scr mohdm6
level.script = maps/dm/tank_and_jeep_test.scr


level waittill spawn

exec global/playervehicle.scr ( 464.41 -111.93 -7.87 ) 164.15 1
exec global/playervehicle.scr ( 1507.66 -1651.61 -7.87 ) 94.15 2
exec global/playervehiclesound.scr

level waitTill prespawn

end
//-----------------------------------------------------------------------------

roundbasedthread:

// Can specify different scoreboard messages for round based games here.

level waitTill prespawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end


DONT WORK ALSO
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

maybe i got to notice that in my maintt( main of breakthrough) i dont got the jeep.tik like in main , but i got the kingtank.tik


it seems that your global/models/jeep.tik of your pk3 refer to the global/models/jeep.tik of the main folder.....it add some modif thats it ?

but in my maintt if i dont got this file is it a problem ???
Post Reply