YET another script-spawn question:Algeirs mod

Post your scripting 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

YET another script-spawn question:Algeirs mod

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

Code: Select all

main:

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

setcvar "g_scoreboardpic" "mohdm7"

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

$world farplane_color "0.458824 0.458824 0.458824"
level.fogplane = 8000
$world farplane level.fogplane

	level waittill prespawn

//spawning pathnodes
pth1:
local.pth1 = spawn info_splinepath "targetname" "bomberpath"
local.pth1 model "vehicles/p47fly.tik"
local.pth1.origin = ( 152.27 -1520.63 311.30 )
local.pth1.angles = ( 20 90 0.00 )
local.pth1.scale = 1.0
local.pth1 $mdl "vehicles/p47fly.tik"
local.pth1 #set "2"
pth1.targetname = 1

pth2:
//spawning pathnodes
local.pth2 = spawn info_splinepath "targetname" "2"
local.pth2 model "vehicles/p47fly.tik"
local.pth2.origin = ( 125.93 -659.65 -145.64 )
local.pth2.angles = ( 7.44 90 0.0 )
local.pth2.scale = 1.0

//spawning pathnodes
pth3:
local.pth3 = spawn info_splinepath "targetname" "3"
local.pth3 model "vehicles/p47fly.tik"
local.pth3.origin = ( 254.60 578.54 149.78 )
local.pth3.angles = ( 8.01 102.37 -20 )
local.pth3.scale = 1.0

//spawning pathnodes
pth4:
local.pth4 = spawn info_splinepath "targetname" "4"
local.pth4 model "vehicles/p47fly.tik"
local.pth4.origin = ( 107.11 1405.04 149.78 )
local.pth4.angles = ( 0.00 155.58 -30 )
local.pth4.scale = 1.0

//spawning pathnodes
pth5:
local.pth5 = spawn info_splinepath "targetname" "5"
local.pth5 model "vehicles/p47fly.tik"
local.pth5.origin = ( -839.93 1643.97 149.78 )
local.pth5.angles = ( -2.57 174.46 -60.0 )
local.pth5.scale = 1.0

$bomberpath.target = $2
$2.target = $3
$3.target = $4
$4.target = $5

triggo:
level.t = spawn trigger_multiple "$targetname" "bombertrigger"
level.t.origin = ( 46.62 1715.00 -86.10 )
level.t.setsize "-128 -128 -128" "128 128 128"
level.t message "                     **********PLANE COMEING IN! EVERYBODY DUCK!!!!*************                  "

//=======================================================================

//========================= plane flying SIZE TRIGGER =========================

//======================================================================= 
trig:
local.trig = spawn trigger_multiple

local.trig.origin = ( 511.53 -232.71 -76.81) // position it

local.trig setsize ( -40 -40 -10 ) ( 40 40 10 ) // give it some size

local.trig setthread flying

local.trig message "                ********YOU CAN BE A PLANE FOR 30 SECONDS********"

local.trig wait 1 // How often the trig acts

local.trig delay 0 // How long before trig acts

 

flying:

local.player=parm.other

if (local.player.packon == 1)

{

end

}

local.player.packon = 1

local.static = spawn script_model 

local.static model "vehicles/p47.tik"

local.static notsolid

local.static.scale=0.75

local.static.origin = (local.player.origin + ( 50 50 100 ))

local.static.angle = "-45"

local.static glue local.player 

local.player.scale=.001

local.player gravity .1

local.player stufftext "say CMON DAD! "

parm.other stopwatch 60

wait 60

local.player.packon = 0

local.player.scale=1

local.player gravity 1

local.static remove

 

 


end

		//*** Precache Dm Stuff
		exec global/DMprecache.scr
		
		exec global/door_locked.scr::lock
		level.script = maps/dm/mohdm7.scr
		exec global/ambient.scr mohdm7
      exec global/bomber.scr	

	level waittill spawn
   
level.flyplane = 1

end
I cant use anything ive added to it, like that one trigger with the big intro. Could some1 help me with the problem. When i type restart into the console, i scrollup and it says mohdm7 scr was not properly loaded. HELP ME PLEASE :cry:
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

whenever it says not properly loaded type devcon in console, it'll have a trillion errors no doubt. type devcon 0 to get out of it again. you might want to make all those pathnode creation threads the same tho imo.

best thing i see is that you need to move your threads into separate threads instead of main thread and call them individually. mostly because nothing is spawned yet.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
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 »

er thats a type, im try to get a plane to fly in algeirs. Ok ill call them in spearate threads.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

*cocks eyebrows* a type? huh? did you try devcon? type devcon in your console after it loads and you'll see the errors the script generates.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply