Page 1 of 1

Global/strafe.scr UPDATE

Posted: Sat Feb 14, 2004 7:20 am
by bdbodger
Well I found another bug in my script . In the plane setup I accidentally pass the targetname array index to the node numbering thread instead of the set number . I am sorry about that . Here are the changes to the script you need to make to fix it .

node_think:

level waittill spawn

for(local.i=1;local.i <= $strafe_path.size;local.i++)
{
local.nodes = 1

local.node = $strafe_path[local.i]

local.start_node = local.node

while(local.node != NULL )
{

level.strafenode[$strafe_path[local.i].set][local.nodes] = local.node

level.strafenode[$strafe_path[local.i].set][local.nodes] thread node_thinker local.nodes

local.nodes++

if((level.debug)&&(local.node.target))
{
local.beam2 = spawn func_beam origin local.node.origin endpoint local.node.target.origin maxoffset 0
local.beam2 color ( 0 0 1 )
local.beam2 Activate
}

local.node = $(local.node.target)

if(local.node == local.start_node )
local.node = NULL
}

thread plane_setup $strafe_path[local.i].set

if(level.debug)
println "node think setup ending set: " $strafe_path[local.i].set

}
end

Or you can just download it again here

http://members.shaw.ca/b.boddy/global_strafe.pk3

Posted: Mon Feb 16, 2004 6:42 am
by small_sumo
Cool.