Post your scripting questions / solutions here
Moderator: Moderators
snipester
Banned
Posts: 135 Joined: Tue Apr 18, 2006 1:22 am
Post
by snipester » Sun May 07, 2006 8:07 am
can someoen scan this through and help me whats wrong?
Code: Select all
// DESTROYED VILLAGE
// ARCHITECTURE: NED
// SCRIPTING: NED
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Destroyed Village"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm2"
// 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/door_locked.scr::lock
level.script = maps/dm/mohdm2.scr
exec global/ambient.scr mohdm2
level waittill spawn
local.fix1 = spawn script_model model models/vehicles/european_car_silver.tik origin ( -3234.594 1877.879 173.791 ) angle ( 93.367 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( 638.450 1037.395 -24.408 ) angle ( 97.839 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -221.654 1108.809 32.786 ) angle ( 186.801 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -219.529 -1498.722 -27.744 ) angle ( 183.274 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -2300.448 -515.817 535.131 ) angle ( 180.439 )
local.fix1 = spawn script_model model models/static/bodies_tarp.tik origin ( -1694.271 -443.881 -71.631 ) angle ( 95.092 )
local.fix1 = spawn script_model model models/static/bunkerfan.tik origin ( -1692.619 -203.868 -47.904 ) angle ( 177.984 )
main:
thread trigger_maker
thread trigger_maker2
thread trigger_maker3
trigger_maker local.location local.dest:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = ( -2001 -1820 0 )
local.trig = spawn trigger_multiple
local.trig.origin = ( -2001 -1820 0 )
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest
end
teleport local.trig local.dest:
local.trig waittill trigger
local.player = parm.other
local.player tele ( -2215 -161 466 )
thread teleport local.trig local.dest
end
//2
trigger_maker2 local.location local.dest2:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = ( 247 -1460 0 )
local.trig = spawn trigger_multiple
local.trig.origin = ( 247 -1460 0 )
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport2 local.trig local.dest2
end
teleport2 local.trig local.dest2:
local.trig waittill trigger
local.player = parm.other
local.player tele ( 296 -1072 525 )
thread teleport2 local.trig local.dest2
end
//3
trigger_maker3 local.location local.dest3:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = ( 2544 -3794 210 )
local.trig = spawn trigger_multiple
local.trig.origin = ( 2544 -3794 210 )
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport3 local.trig local.dest3
end
teleport3 local.trig local.dest3:
local.trig waittill trigger
local.player = parm.other
local.player tele ( 2282 -3749 -10 )
thread teleport3 local.trig local.dest3
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
thnx anyone
(\_/)
(O.o) This is Bunny. Copy Bunny
(> <) to help him achieve world domination.
Green Beret
Major General
Posts: 746 Joined: Mon Apr 19, 2004 12:21 pm
Contact:
Post
by Green Beret » Sun May 07, 2006 8:49 am
If this dont help read this topic
/forum/viewtopic.php?t=10537&highlight=teleport
Code: Select all
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Destroyed Village"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm2"
// 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/door_locked.scr::lock
level.script = maps/dm/mohdm2.scr
exec global/ambient.scr mohdm2
level waittill spawn
local.fix1 = spawn script_model model models/vehicles/european_car_silver.tik origin ( -3234.594 1877.879 173.791 ) angle ( 93.367 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( 638.450 1037.395 -24.408 ) angle ( 97.839 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -221.654 1108.809 32.786 ) angle ( 186.801 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -219.529 -1498.722 -27.744 ) angle ( 183.274 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -2300.448 -515.817 535.131 ) angle ( 180.439 )
local.fix1 = spawn script_model model models/static/bodies_tarp.tik origin ( -1694.271 -443.881 -71.631 ) angle ( 95.092 )
local.fix1 = spawn script_model model models/static/bunkerfan.tik origin ( -1692.619 -203.868 -47.904 ) angle ( 177.984 )
//main: take this out
from to
thread trigger_maker ( x x x ) ( x x x ) //(from) (to) 1
thread trigger_maker2 ( x x x ) ( x x x ) //(from) (to) 2
thread trigger_maker3 ( x x x ) ( x x x ) //(from) (to) 3
end//add this
trigger_maker local.location local.dest:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location) //( -2001 -1820 0 )
local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest
end
teleport local.trig local.dest:
local.trig waittill trigger
local.player = parm.other
local.player tele (local.dest)
thread teleport local.trig local.dest
end
//2
trigger_maker2 local.location local.dest2:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)
local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport2 local.trig local.dest2
end
teleport2 local.trig local.dest2:
local.trig waittill trigger
local.player = parm.other
local.player tele local.dest2
thread teleport2 local.trig local.dest2
end
//3
trigger_maker3 local.location local.dest3:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)
local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport3 local.trig local.dest3
end
teleport3 local.trig local.dest3:
local.trig waittill trigger
local.player = parm.other
local.player tele local.dest3
thread teleport3 local.trig local.dest3
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
snipester
Banned
Posts: 135 Joined: Tue Apr 18, 2006 1:22 am
Post
by snipester » Sun May 07, 2006 12:07 pm
ok this is what i have now but only one of them works
Code: Select all
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Destroyed Village"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm2"
// 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/door_locked.scr::lock
level.script = maps/dm/mohdm2.scr
exec global/ambient.scr mohdm2
level waittill spawn
local.fix1 = spawn script_model model models/vehicles/european_car_silver.tik origin ( -3234.594 1877.879 173.791 ) angle ( 93.367 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -221.654 1108.809 32.786 ) angle ( 186.801 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -219.529 -1498.722 -27.744 ) angle ( 183.274 )
local.fix1 = spawn script_model model models/static/bodies_tarp.tik origin ( -1694.271 -443.881 -71.631 ) angle ( 95.092 )
local.fix1 = spawn script_model model models/static/bunkerfan.tik origin ( -1692.619 -203.868 -47.904 ) angle ( 177.984 )
teleports:
thread trigger_maker ( -3905 -2719 64 ) ( -2237 -458 588 ) //(from) (to) 1
thread trigger_maker2 ( -2488 -474 480 ) ( -690 -628 861 ) //(from) (to) 2
thread trigger_maker3 ( -1107 1605 216 ) ( -2662 1620 636 ) //(from) (to) 3
end
trigger_maker local.location local.dest:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)
local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest
end
teleport local.trig local.dest:
local.trig waittill trigger
local.player = parm.other
local.player tele (local.dest)
thread teleport local.trig local.dest
trigger_maker local.location local.dest2:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)
local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest
end
teleport local.trig local.dest2:
local.trig waittill trigger
local.player = parm.other
local.player tele (local.dest)
thread teleport local.trig local.dest2
end
//-----------------------------------------------------------------------------
roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 15 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
(\_/)
(O.o) This is Bunny. Copy Bunny
(> <) to help him achieve world domination.
Green Beret
Major General
Posts: 746 Joined: Mon Apr 19, 2004 12:21 pm
Contact:
Post
by Green Beret » Mon May 08, 2006 3:45 am
level waittill spawn
local.fix1 = spawn script_model model models/vehicles/european_car_silver.tik origin ( -3234.594 1877.879 173.791 ) angle ( 93.367 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -221.654 1108.809 32.786 ) angle ( 186.801 )
local.fix1 = spawn script_model model models/static/vehicle_shermantank_dead.tik origin ( -219.529 -1498.722 -27.744 ) angle ( 183.274 )
local.fix1 = spawn script_model model models/static/bodies_tarp.tik origin ( -1694.271 -443.881 -71.631 ) angle ( 95.092 )
local.fix1 = spawn script_model model models/static/bunkerfan.tik origin ( -1692.619 -203.868 -47.904 ) angle ( 177.984 )
teleports:
thread trigger_maker ( -3905 -2719 64 ) ( -2237 -458 588 ) //(from) (to) 1
thread trigger_maker2 ( -2488 -474 480 ) ( -690 -628 861 ) //(from) (to) 2
thread trigger_maker3 ( -1107 1605 216 ) ( -2662 1620 636 ) //(from) (to) 3
end
trigger_maker local.location local.dest:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)
local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest
end
teleport local.trig local.dest:
local.trig waittill trigger
local.player = parm.other
local.player tele (local.dest)
thread teleport local.trig local.dest
end //add this
trigger_maker2 local.location local.dest:
local.marker = spawn script_model
local.marker model "static/corona_orange.tik"
local.marker.origin = (local.location)
local.trig = spawn trigger_multiple
local.trig.origin = (local.location)
local.trig setsize ( -20 -20 -20 ) ( 20 20 20 )
thread teleport local.trig local.dest2
end
teleport local.trig local.dest2 :
local.trig waittill trigger
local.player = parm.other
local.player tele (local.dest)
thread teleport local.trig local.dest2
end
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Mon May 08, 2006 9:11 am
um Green Beret did you happen to see snipester's current rank
Green Beret
Major General
Posts: 746 Joined: Mon Apr 19, 2004 12:21 pm
Contact:
Post
by Green Beret » Tue May 09, 2006 4:29 am
Oops nope...im lost
..he must of been out of hand
shame shame
lizardkid
Windows Zealot
Posts: 3672 Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT
Post
by lizardkid » Tue May 09, 2006 10:15 am
let me be the first to rejoice.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Tue May 09, 2006 12:35 pm
Well I don't know the whole story but I trust our admins judgement they don't very often impose any bans here and are very tolerent .
lizardkid
Windows Zealot
Posts: 3672 Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT
Post
by lizardkid » Tue May 09, 2006 2:15 pm
if you browse through his post history you'll see he just doesnt know how to act on a forum, or at all for that matter. he seemed very young and hijacked and ressurected a lot of topics, and managed to contribute nothing.
much... like i'm doing now.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006