Hi i hope this is in the right place
but i have addded planes in my map with waypoints but when im in game my plane is on the floor :S
Hope you can help me,
Lynx
Flying Planes
Moderator: Moderators
Re: Flying Planes
They should be with splinepaths, buddy.1lynx1 wrote:with waypoints
Lynx
-
1lynx1
- Warrant Officer
- Posts: 141
- Joined: Sun Jun 29, 2008 9:07 am
- Location: United Kingdom
- Contact:
ok...
ok it doesnt work and ive done that
here is my scr,
hope this helps,
Cheers,
Lynx
here is my scr,
Code: Select all
main:
exec global/ai.scr
exec global/loadout.scr
exec gloal/friendly.scr
level waittill prespawn
exec global/ambient.scr
level waittill spawn
level.script = "maps DM Farm.scr"
thread p1
end
p1:
$p1 drive $w1p1
$w1p1 drive $w2p1
$w2p1 drive $w3p1
$w3p1 drive $w4p1
$w4p1 drive $w5p1
end
Cheers,
Lynx
O god.. drive is for tanks, and should be used with speed, acc etc... look at the global/bomber.scr - you'll find here instruction
There are also some another errors in your code:
should be
should be
btw i dont know for what the hell you exec ai and friendly in dm??
What should it do? What have those targetnames ?? PAth cant drive path...
There are also some another errors in your code:
Code: Select all
exec gloal/friendly.scr Code: Select all
exec global/friendly.scrCode: Select all
level.script = "maps DM Farm.scr" Code: Select all
level.script = "maps/DM/Farm.scr" Code: Select all
$w1p1 drive $w2p1
$w2p1 drive $w3p1
$w3p1 drive $w4p1
$w4p1 drive $w5p1 Well.... so download .map file o V2 rocket facility, open it and find splinepaths... open v2 scripts too. You'll see how it work... and here is tutorial copied fropm bomber.scr
// Plane/bombing system created by Mackey McCandlish.
//
// Before level waittill spawn "exec global/bomber.scr".
//
// Used in m3l3, m4l0, m5l1a, m5l1b, m5l3, m3l3, training, and maybe someplace else, who can say? (One of the DM levels too).
//
// Created a info_splinepath and click model and choose the plane you want to use. Choose one that ends with fly.tik.
//
// Copy the info_splinepath into a big line of them, of where you want the plane to fly through space.
//
// Link them all together.
//
// Give the first one a targetname of "bomberpath"
//
// Set this one's $mdl value to be equal to its model value.
//
// Rotate each individual info_splinepath. The way its rotated will determine what position the plane will be in when it flies
// through that point in space.
//
// You can set the "speed" key to multiplicably values. This defaults to 1. If you think 1 is too fast, set all the splines
// to a .speed of 0.5. Or set half of them to 0.5, and for that half the plane will fly at half speed.
//
// You can make the planes drop bombs by setting up similar paths using the model "ammo/us_bomb.tik", and the first spline
// on the path has targetname "bomber".
//
// Both the "bomber" and the "bomberpath" entities are given the same #set value, to associate them. You can give the bombers
// a $setthread value to make them run a thread in the level.script upon impact. They automatically do an explosion when they
// reach the end of their path.
//
// You can make triggers for the bombers with "trigger_multiple"s that have a targetname "bombertrigger" and the same #set
// number as the bomberpath, or you can do "thread global/bomber.scr::bomb #" where # is the #set number in question.
So all what you need it some splinepath, first group for first plane with #set 1, secon with #set 2 etc.... every splienpath link to next, CTRL + K... first must have targetname bomberpath
In map scripts when you want to call plane thread global/bomber.scr::bomb 1 (or 2, 3 100 etc) - its number of set of path (#set 1)
If you still have problem, try copy ALL about bombers from v2 script and map, and compile it under another name.....
I hope you'll got it, good luck
// Plane/bombing system created by Mackey McCandlish.
//
// Before level waittill spawn "exec global/bomber.scr".
//
// Used in m3l3, m4l0, m5l1a, m5l1b, m5l3, m3l3, training, and maybe someplace else, who can say? (One of the DM levels too).
//
// Created a info_splinepath and click model and choose the plane you want to use. Choose one that ends with fly.tik.
//
// Copy the info_splinepath into a big line of them, of where you want the plane to fly through space.
//
// Link them all together.
//
// Give the first one a targetname of "bomberpath"
//
// Set this one's $mdl value to be equal to its model value.
//
// Rotate each individual info_splinepath. The way its rotated will determine what position the plane will be in when it flies
// through that point in space.
//
// You can set the "speed" key to multiplicably values. This defaults to 1. If you think 1 is too fast, set all the splines
// to a .speed of 0.5. Or set half of them to 0.5, and for that half the plane will fly at half speed.
//
// You can make the planes drop bombs by setting up similar paths using the model "ammo/us_bomb.tik", and the first spline
// on the path has targetname "bomber".
//
// Both the "bomber" and the "bomberpath" entities are given the same #set value, to associate them. You can give the bombers
// a $setthread value to make them run a thread in the level.script upon impact. They automatically do an explosion when they
// reach the end of their path.
//
// You can make triggers for the bombers with "trigger_multiple"s that have a targetname "bombertrigger" and the same #set
// number as the bomberpath, or you can do "thread global/bomber.scr::bomb #" where # is the #set number in question.
So all what you need it some splinepath, first group for first plane with #set 1, secon with #set 2 etc.... every splienpath link to next, CTRL + K... first must have targetname bomberpath
In map scripts when you want to call plane thread global/bomber.scr::bomb 1 (or 2, 3 100 etc) - its number of set of path (#set 1)
If you still have problem, try copy ALL about bombers from v2 script and map, and compile it under another name.....
I hope you'll got it, good luck
-
$oldier Of Ra
- Lieutenant Colonel
- Posts: 404
- Joined: Sun Oct 16, 2005 7:16 pm
- Location: Belgium
- Contact:
Yeah I'm sure that'll work...Aprop wrote:try copy ALL about bombers from v2 script and map, and compile it under another name.....
Lynx: Well those targetnames... do those entities exist? If so, make sure they are splinepaths! And also why should path X "drive" to the next path and so on? Shouldn't, you know, like a plane fly those paths?
I use my own tools to generate splinepaths. It can be time consuming manually. This is how I get the job done. Aren't arrays and for statements handy?
Ofc, you do not have to do it so complicated, spawn them in radiant or with local vars in script, doesn't matter.
Code: Select all
// ---------------------------------------------
// Path 1 starting from the railway line
// ---------------------------------------------
level.pl[1] = spawn info_splinepath
level.pl[1].origin = ( -6688.546 -4066.648 1759.336 )
level.pl[1].angles = ( 0.000 11.135 0.000 )
level.pl[2] = spawn info_splinepath
level.pl[2].origin = ( -1598.079 -3088.307 1759.336 )
level.pl[2].angles = ( 0.000 28.993 0.000 )
level.pl[3] = spawn info_splinepath
level.pl[3].origin = ( -950.367 -2686.572 1759.336 )
level.pl[3].angles = ( 0.000 45.747 0.000 )
level.pl[4] = spawn info_splinepath
level.pl[4].origin = ( -444.396 -2033.868 1759.336 )
level.pl[4].angles = ( 0.000 66.929 0.000 )
level.pl[5] = spawn info_splinepath
level.pl[5].origin = ( -165.854 -333.093 1759.336 )
level.pl[5].angles = ( 0.000 82.991 0.000 )
level.pl[6] = spawn info_splinepath
level.pl[6].origin = ( 142.919 1085.946 1759.336 )
level.pl[6].angles = ( 0.000 67.758 0.000 )
level.pl[7] = spawn info_splinepath
level.pl[7].origin = ( 1123.328 3751.507 1759.336 )
level.pl[7].angles = ( 0.000 73.438 0.000 )
level.pl[8] = spawn info_splinepath
level.pl[8].origin = ( 1543.310 5498.362 1461.033 )
level.pl[8].angles = ( 0.000 75.932 0.000 )
level.pl[9] = spawn info_splinepath
level.pl[9].origin = ( 1946.042 7550.250 1351.406 )
level.pl[9].angles = ( 0.000 151.804 0.000 )
for (local.c = 1; local.c < level.pl.size; local.c++)
{
level.pl[local.c].target = level.pl[(local.c + 1)]
}
Code: Select all
$path1.target = $path2
$path2.target = $path3
To make a plane fly these paths. Spawn a planemodel with "fly" at the end of it's modelname.
Then simply:
<your_plane> flypath <1st_path> <speed> <acceleration>
translated in script that would be:
Code: Select all
$myplane flypath $path1 850 360
waitmove //!!!!Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.