hey all,
ok, i have been looking around for a good solid tutorial on how i might do this, but i havent really come across one. most of the time people are asking how to either put planes in their own maps, or if they do try and put them in the original maps, someone will give them a piece of the code and then they kinda figure it out somehow and i... cant...
so how exactly do i spawn a flying plane that will fly by every... 2 min or so, and drop a bomb... if you have a mod that adds a plane to one of the maps that would do well also, i should be able to figure it out from there, but i just cant find any...
thanks for any help
spawing planes in the original maps
Moderator: Moderators
maybe you might like to try my global/strafe.scr it spawns a plane into you map that flys a path and strafes . There are keys you can add to the nodes to make the plane bomb at the nodes or turn the guns off . Look at the docs and if you have any questions just post and I will try to answer them . Here is a sample script made by deadeye arrow . Click on my sig to go to my website to get the pak .
Code: Select all
local.org1 = spawn info_splinepath "targetname" "strafe_path"
local.org1.origin = ( -642 -3626 1979)
local.org1.angles = (30 118 5)
local.org1.set = 1
local.org1.planescale = .4
local.org1.speed = .5
local.org1.guns = 0
local.org2 = spawn info_splinepath "targetname" "node2"
local.org2.origin = ( -1482 -2358 1171)
local.org2.angles = (45 118 10)
local.org2.set = 1
local.org2.planescale = .4
local.org2.speed = .5
local.org2.guns = 0
local.org3 = spawn info_splinepath "targetname" "node3"
local.org3.origin = ( -2093 -1184 872)
local.org3.angles = (25 96 55)
local.org3.set = 1
local.org3.bomb = 1
local.org3.planescale = .4
local.org3.speed = .5
local.org3.guns = 1
local.org4 = spawn info_splinepath "targetname" "node4"
local.org4.origin = ( -2095 -422 872)
local.org4.angles = (25 96 55)
local.org4.set = 1
local.org4.planescale = .4
local.org4.speed = .5
local.org4.guns = 1
local.org5 = spawn info_splinepath "targetname" "node5"
local.org5.origin = ( -1659 4 872)
local.org5.angles = (0 18 55)
local.org5.set = 1
local.org5.bomb = 1
local.org5.planescale = .4
local.org5.speed = .5
local.org5.guns = 1
local.org6 = spawn info_splinepath "targetname" "node6"
local.org6.origin = ( -915 6 872)
local.org6.angles = (0 26 0)
local.org6.set = 1
local.org6.planescale = .4
local.org6.speed = .5
local.org6.guns = 0
local.org7 = spawn info_splinepath "targetname" "node7"
local.org7.origin = ( -339 161 872)
local.org7.angles = (0 57 -65)
local.org7.set = 1
local.org7.planescale = .4
local.org7.speed = .5
local.org7.guns = 1
local.org8 = spawn info_splinepath "targetname" "node8"
local.org8.origin = ( -110 988 872)
local.org8.angles = (0 90 0)
local.org8.set = 1
local.org8.planescale = .4
local.org8.speed = .5
local.org8.guns = 0
local.org9 = spawn info_splinepath "targetname" "node9"
local.org9.origin = ( -248 1576 872)
local.org9.angles = (0 85 45)
local.org9.set = 1
local.org9.planescale = .4
local.org9.speed = .5
local.org9.guns = 1
local.org10 = spawn info_splinepath "targetname" "node10"
local.org10.origin = ( -64 2142 872)
local.org10.angles = (0 30 70)
local.org10.bomb = 1
local.org10.set = 1
local.org10.planescale = .4
local.org10.speed = .5
local.org10.guns = 1
local.org11 = spawn info_splinepath "targetname" "node11"
local.org11.origin = (855 2250 872)
local.org11.angles = (0 0 45)
local.org11.bomb = 1
local.org11.set = 1
local.org11.planescale = .4
local.org11.speed = .5
local.org11.guns = 0
local.org12 = spawn info_splinepath "targetname" "node12"
local.org12.origin = (1725 2336 882)
local.org12.angles = ( -25 0 0)
local.org12.set = 1
local.org12.planescale = .4
local.org12.speed = .5
local.org12.guns = 0
local.org13 = spawn info_splinepath "targetname" "node13"
local.org13.origin = (4106 2703 1395)
local.org13.angles = ( -45 0 0)
local.org13.set = 1
local.org13.planescale = .4
local.org13.speed = .5
local.org13.guns = 0
local.org1.target = local.org2
local.org2.target = local.org3
local.org3.target = local.org4
local.org4.target = local.org5
local.org5.target = local.org6
local.org6.target = local.org7
local.org7.target = local.org8
local.org8.target = local.org9
local.org9.target = local.org10
local.org10.target = local.org11
local.org11.target = local.org12
local.org12.target = local.org13
level.script = maps/dm/mohdm4.scr
exec global/strafe.scr
wait 4
while(1)
{
exec global/strafe.scr::strafe 1
wait 20
}
end
Just one comment about that script if you turn off the guns like this
local.org11.guns = 0
you don't need to repeat that key at the next node the guns will stay off until you use .guns = 1 and then they will stay on untill you shut them off at another node .
Glad you like the strafe script it makes life a bit easier . I tried to make it as easy to use as I could and still have lots of options .
local.org11.guns = 0
you don't need to repeat that key at the next node the guns will stay off until you use .guns = 1 and then they will stay on untill you shut them off at another node .
Glad you like the strafe script it makes life a bit easier . I tried to make it as easy to use as I could and still have lots of options .
yes just repeat the node spawning and use a different set number but too many may be hard on your fps 2 will be ok I think .
local.org14 = spawn info_splinepath "targetname" "strafe_path" // first node must have this targetname
local.org14.origin = ( ?? ?? ?? )
local.org14.angles = (30 118 5)
local.org14.set = 2 //**************
local.org14.planescale = .4
local.org14.speed = .5
local.org14.guns = 0
local.org15 = spawn info_splinepath "targetname" "node14"
local.org15.origin = ( ?? ?? ?? )
local.org15.angles = (45 118 10)
local.org15.set = 2 //******************
local.org15.planescale = .4
local.org15.speed = .5
local.org15.guns = 0
....
....
....
local.org14.target = local.org15
.....
while(1)
{
exec global/strafe.scr::strafe 1
wait 4
exec global/strafe.scr::strafe 2 // *** this is the set number
wait 20
}
end
local.org14 = spawn info_splinepath "targetname" "strafe_path" // first node must have this targetname
local.org14.origin = ( ?? ?? ?? )
local.org14.angles = (30 118 5)
local.org14.set = 2 //**************
local.org14.planescale = .4
local.org14.speed = .5
local.org14.guns = 0
local.org15 = spawn info_splinepath "targetname" "node14"
local.org15.origin = ( ?? ?? ?? )
local.org15.angles = (45 118 10)
local.org15.set = 2 //******************
local.org15.planescale = .4
local.org15.speed = .5
local.org15.guns = 0
....
....
....
local.org14.target = local.org15
.....
while(1)
{
exec global/strafe.scr::strafe 1
wait 4
exec global/strafe.scr::strafe 2 // *** this is the set number
wait 20
}
end
