Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / need help with this spectator script (PB mod needed)

Author
Message
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 29th Aug 2009 00:02 Edited at: 29th Aug 2009 00:13
Hi everyone,
I was making a spectator script (basicly a cam roams freely anywhere in the map), it helps shooting videos and discovering bugs in my level.. here's wut I got so far..



it works (almost fine) I just want the camera to move wherever it's looking not at constant directions, cause for example if I change camera direction by 180 degrees left becomes right and forward becomes backward..

Thank You...

Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 29th Aug 2009 20:51
bump

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Aug 2009 06:19
What you're wanting to do involves trigonometric functions, like sine and cosine. Currently, there are no Mods that have those functions.

Now, in Project Blue there is a shortcut function, so you lucked out.

Use the command "movecam" to move your camera directly forward, no matter what direction it is facing. Now if you're wanting to have the camera "strafe", you can increment or decrement the camera's Y angle by 90 degrees, move the camera forward, then rotate it back. It'll happen too fast for the player to see it doing that and will appear that it has strafed.


The one and only,


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 30th Aug 2009 12:01
tried it, unfortunatly it resets the cam look on movement..

Thank You

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Aug 2009 12:06
Can you post the new script that uses the "movecam" command?


The one and only,


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 30th Aug 2009 14:00
no strafe yet..



Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 31st Aug 2009 12:55
Interesting, I'll look into it sometime soon and let you know if I find something. The script appears as though it should work.


The one and only,


Login to post a reply

Server time is: 2024-11-25 06:30:47
Your offset time is: 2024-11-25 06:30:47