stalimodded
Posted: Fri Jun 16, 2006 3:05 am
i scripted a map this is what i did and it doesnt work on my machine and im so close to doing this
First i copied all files from pak5.pk3 to mohaa/main/maps/dm
then i edited the mohdm6.src to the following
then i made fix1.src in mohaa/main/maps/dm/
then edited to this
shouldnt this spawn some stuff on map it doesnt
i looked where the stuff spawns and did the Coord command and fount the coord on the items what am i doing wrong
any help will be appreciated
First i copied all files from pak5.pk3 to mohaa/main/maps/dm
then i edited the mohdm6.src to the following
Code: Select all
// STALINGRAD
// ARCHITECTURE: ZIED, POWZER
// SCRIPTING: POWZER
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Stalingrad"
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm6"
// 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/mohdm6.scr
exec global/ambient.scr mohdm6
exec maps/dm/fix1.scr
level waittill spawn
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 = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end
then edited to this
Code: Select all
local.fix1 = spawn script_model
local.fix1 model "static/nazi_crate.tik"
local.fix1.origin = ( -159.97 370.08 520.01 )
local.fix1.angles = ( 0 0 0 )
local.fix1.scale = 1.0
local.fix2 = spawn script_model
local.fix2 model "static/nazi_crate.tik"
local.fix2.origin = ( -162.52 281.58 520.01 )
local.fix2.angles = ( 0 0 0 )
local.fix2.scale = 1.0
local.fix3 = spawn script_model
local.fix3 model "static/nazi_crate.tik"
local.fix3.origin = ( -165.58 165.49 520.01 )
local.fix3.angles = ( 0 0 0 )
local.fix3.scale = 1.0
local.fix4 = spawn script_model
local.fix4 model "static/nazi_crate.tik"
local.fix4.origin = ( -167.81 81.16 520.01 )
local.fix4.angles = ( 0 0 0 )
local.fix4.scale = 1.0
local.fix5 = spawn script_model
local.fix5 model "static/nazi_crate.tik"
local.fix5.origin = ( -171.30 -51.43 520.01 )
local.fix5.angles = ( 0 0 0 )
local.fix5.scale = 1.0
local.fix6 = spawn script_model
local.fix6 model "static/nazi_crate.tik"
local.fix6.origin = ( -177.27 -180.00 520.01 )
local.fix6.angles = ( 0 0 0 )
local.fix6.scale = 1.0
local.fix7 = spawn script_model
local.fix7 model "emitters/firesmoke.tik"
local.fix7.origin = ( -279.93 43.84 -145.24 )
local.fix7.angles = ( 0 0 0 )
local.fix7.scale = 1.0
local.fix8 = spawn script_model
local.fix8 model "static/vehicle_bmwbike.tik"
local.fix8.origin = ( -604.77 -385.15 32.13 )
local.fix8.angles = ( 0 0 0 )
local.fix8.scale = 1.0
i looked where the stuff spawns and did the Coord command and fount the coord on the items what am i doing wrong
any help will be appreciated