Page 1 of 1

Fov, camera question

Posted: Sun May 30, 2004 5:07 pm
by Elgan
hey is it possible to make 1 player's camera spin.

something like

local.player fov time 1
local.player fov rotatez
local.player start/move

Posted: Sun May 30, 2004 5:11 pm
by Elgan
or maybe spawn a camera that spins that 1 player watches?

i just found a tutorial on camera tom's i assume :lol:

camera

Posted: Sun May 30, 2004 7:20 pm
by tltrude
I don't know how to make a camera work for just one player, sorry. I, also, don't think you can spin the player. But, you can spin what he is standing on or in--see my marry-go-round in the explodingdoor tutorial map.

Posted: Sun May 30, 2004 7:27 pm
by Elgan
ok thank you:(

nm (cries)

Posted: Mon May 31, 2004 12:00 am
by nuggets
hate a contradict ya Tom but

Code: Select all

spin:
	parm.other.spin = 36
	while ((parm.other.spin <= 36) && (parm.other.spin > 0))
		{
		parm.other.viewangles = (parm.other.viewangles[0] (parm.other.angles[1] + 10) parm.other.viewangles[2])
		parm.other.spin--
		waitframe
		}
	//iprintln_noloc "spin"
end
and you stop your crying!!! :D

Posted: Mon May 31, 2004 2:04 am
by Elgan
ok cool:D. my head hurts from all this..maybe its the no food and 2 days without sleep.


thanx nuggets!!!


that script makes the player go round on z yes but i reaalised i need it so it spins like an "o"...errm..i wish i was good at explaining :(

basicaly so when the plane does a barrel roll the players veiw goes with the roll.

syntax error

Posted: Mon May 31, 2004 4:15 am
by tltrude
Try this:

Code: Select all

spin: 
   parm.other.spin = 36 
   while ((parm.other.spin <= 36) && (parm.other.spin > 0)) 
      { 
      parm.other.viewangles = (parm.other.viewangles[0] (parm.other.viewangles[1] + 10) parm.other.viewangles[2]) 
      parm.other.spin-- 
      waitframe 
      } 
   //iprintln_noloc "spin" 
end

Posted: Mon May 31, 2004 4:30 pm
by Elgan
erm...both them bits of code are exactly the same:S

Posted: Mon May 31, 2004 5:57 pm
by jv_map
I couldn't find any changes either :(

Try this though:

parm.other.viewangles += (0 0 10)

The numbers are pitch, yaw, roll :)

Posted: Mon May 31, 2004 6:15 pm
by blue60007
The original:

Code: Select all

spin: 
   parm.other.spin = 36 
   while ((parm.other.spin <= 36) && (parm.other.spin > 0)) 
      { 
      parm.other.viewangles = (parm.other.viewangles[0] (parm.other.angles[1] + 10) parm.other.viewangles[2]) 
      parm.other.spin-- 
      waitframe 
      } 
   //iprintln_noloc "spin" 
end
Tltrude's:
spin:
parm.other.spin = 36
while ((parm.other.spin <= 36) && (parm.other.spin > 0))
{
parm.other.viewangles = (parm.other.viewangles[0] (parm.other.viewangles[1] + 10) parm.other.viewangles[2])
parm.other.spin--
waitframe
}
//iprintln_noloc "spin"
end

You forgot view on that. :wink:

Posted: Mon May 31, 2004 7:56 pm
by Elgan
ok i got it working:D:D:D

but its out of synq and the timing is out when u roll....the plane rolls and the camera is slower:(

we decided to just leave it with the plane rolling wihtout the camera moving, this also is less for the server:)

Posted: Mon May 31, 2004 11:33 pm
by nuggets
try
parm.other.viewangles = $plane.angles etc... and change the $plane to the same as your plane name

Posted: Mon May 31, 2004 11:53 pm
by Elgan
i tried it but no result:(