Fov, camera question

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Fov, camera question

Post 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
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post 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:
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

camera

Post 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.
Tom Trude,

Image
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

ok thank you:(

nm (cries)
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post 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.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

syntax error

Post 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
Tom Trude,

Image
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

erm...both them bits of code are exactly the same:S
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :)
Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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:
Image
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post 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:)
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

try
parm.other.viewangles = $plane.angles etc... and change the $plane to the same as your plane name
hope this helps, prob not cos it's all foreign 2 me :-/
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

i tried it but no result:(
Post Reply