Spownpoint problem..
Posted: Wed Mar 04, 2009 7:41 pm
In PA there are different spownpoints then AA..infact that's giving me broblems! I'm trying to spawn axis in a side of the map and allies in the other...but...I didn't found the way to do that, becouse there are already existent spawn groups..and I don't know how to stop them..
I had a look at mp_teamdeathmatch.scr and I put this in the map scr, after the exec mp_teamdeathmatch.scr line:
well that's don't work..
so I tried to semply add ax spawnpoints and al spawnpoints:
but the game is running as I didn't add them!
so...I tried to set this:
but it don't works!!
however I've also tried some combination on these scripts as "disable all spawnpoints and add mine" and other combinations..
STILL WITHOUT GOOD RESULTS!!!
Someone can help me to do that?
I had a look at mp_teamdeathmatch.scr and I put this in the map scr, after the exec mp_teamdeathmatch.scr line:
Code: Select all
//------------------
shutdown_all_spawns:
//------------------
local.spawns = level playerspawncount mp enabled
dprintln ( "shutting down " + local.spawns + " spawnpoints" )
for (local.i = local.spawns; local.i > 0; local.i--)
{
local.sp = level playerspawn local.i mp enabled
local.sp disablespawn
}
end
exec maps/dm/gavutu_new_spowns.scr
//------------------
Disable_Wrong_Spowns:
//------------------
local.spawns = level playerspawncount mp enabled
//-------------------PART 1----------------------------------------------
local.spawnset = ( randomint level.spawnSetCount ) + 1
println ( "INFO: enabling spawns at objective " + local.spawnset )
local.spawnName = "axis_spawn_" + local.spawnset
if ($(local.spawnName) != NULL)
$(local.spawnName) enablespawn
local.spawnName = "allies_spawn_" + local.spawnset
if ($(local.spawnName) != NULL)
$(local.spawnName) enablespawn
local.count = level playerspawncount mp enabled axis
println ( "INFO: enabled " + local.count + " axis spawnpoints" )
local.count = level playerspawncount mp enabled allies
println ( "INFO: enabled " + local.count + " allied spawnpoints" )
end
//--------------------------PART 2-------------------------------------
local.spawns = level playerspawncount mp enabled
for (local.i = local.spawns; local.i > 0; local.i--)
{
local.sp = level playerspawn local.i mp enabled axis
if (local.sp.origin[1] > 3266)
local.sp disablespawn
}
end
for (local.i = local.spawns; local.i > 0; local.i--)
{
local.sp = level playerspawn local.i mp enabled allies
if (local.sp.origin[1] < 3266)
local.sp disablespawn
}
endso I tried to semply add ax spawnpoints and al spawnpoints:
Code: Select all
///////////////////////////////////////////
/// Axis spawns ///
///////////////////////////////////////////
{
local.axisx1 = spawn info_player_axis
local.axisx1.origin = ( 4495.99 -247.81 391.78 )
local.axisx1.angle = 0
local.axisx2 = spawn info_player_axis
local.axisx2.origin = ( 5699.76 1006.68 408.69 )
local.axisx2.angle = 0
}
///////////////////////////////////////////
/// Allied spawns ///
///////////////////////////////////////////
{
local.alliedx1 = spawn info_player_allied
local.alliedx1.origin = ( 632.23 7154.51 555.71 )
local.alliedx1.angle = 0
local.alliedx2 = spawn info_player_allied
local.alliedx2.origin = ( 416.08 3397.52 441.27 )
local.alliedx2.angle = 0
}so...I tried to set this:
Code: Select all
level.spawnSetCount = 0 // no. of spawn point groups in this maphowever I've also tried some combination on these scripts as "disable all spawnpoints and add mine" and other combinations..
STILL WITHOUT GOOD RESULTS!!!
Someone can help me to do that?