Attempting server side paratrooper mod
Posted: Mon Aug 30, 2004 4:18 pm
Here are the relevant protions of my script so far. After the code I will describe what is happening and what I would like to happen.
At the start of the round all is good. The allies tele to the c47. The plane is moving along with the player. However cannot see inside the plane. The view is of the propellers on the outside and bits of the nose and tail, all outside items. What I would like is for the view to be that of inside the c47.
Next the eject_me thread the player hovers in mid air until the wait statement is done and then when gravity is set back to 1 the player falls and craters. Why isnt the player falling when gravity is set to .5 ?
Any help appreciated,
Code: Select all
end
allied_spawn_area:
local.allies_area1 = spawn trigger_multiple origin ( 800.00 -3644.00 -480.00 )
local.allies_area1 setsize ( -1632.00 -1652.00 -0.00 ) ( 1632.00 1652.00 384.00 )
local.allies_area1.targetname = allies_spawn_trigger1
end
eject_me:
local.player = parm.other
if(local.player isTouching $c47_trigger && isAlive local.player && local.player.dmteam != "spectator")
{
local.player unglue $allied_cargo
local.player gravity .3
wait 6
local.player gravity 1
local.player solid
local.player physics_on
}
end
load_the_plane:
local.payload = spawn script_origin
local.payload.origin = $cargo_plane.origin
local.payload.targetname = allied_cargo
local.payload bind $cargo_plane
local.box = spawn trigger_multiple origin $cargo_plane.origin
local.box setsize ( -100 -100 -100 ) ( 100 100 100 )
local.box.targetname = c47_trigger
thread movitout
local.player = parm.other
if(local.player isTouching $allies_spawn_trigger1 && local.player.dmteam == "allies" && local.player.dmteam != "spectator" && isAlive local.player)
{
local.player notsolid
local.player physics_off
local.player tele $allied_cargo
local.player glue $allied_cargo
}
end
movitout:
$cargo_plane followpath $bomberpath
$cargo_plane waitmove
endAt the start of the round all is good. The allies tele to the c47. The plane is moving along with the player. However cannot see inside the plane. The view is of the propellers on the outside and bits of the nose and tail, all outside items. What I would like is for the view to be that of inside the c47.
Next the eject_me thread the player hovers in mid air until the wait statement is done and then when gravity is set back to 1 the player falls and craters. Why isnt the player falling when gravity is set to .5 ?
Any help appreciated,