Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Camera Movement !?
stonecutter Offline
Member

Posts: 140
Threads: 17
Joined: Feb 2011
Reputation: 4
#1
Camera Movement !?

Does anybody have an idea how to script some freefly camera like you can see in the poisonous trailer ?

Spoiler below!




Would be nice if i get some hints or an example code !


Thx very much




We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
03-24-2012, 04:31 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Camera Movement !?

It is made by using script areas as points to look at, then using:

MovePlayerHeadPos();
StartPlayerLookAt();
StopPlayerLookAt();

Here's the functions list to get the proper parameters:
http://wiki.frictionalgames.com/hpl2/amn..._functions
03-24-2012, 04:39 PM
Find
stonecutter Offline
Member

Posts: 140
Threads: 17
Joined: Feb 2011
Reputation: 4
#3
RE: Camera Movement !?

(03-24-2012, 04:39 PM)Statyk Wrote: MovePlayerHeadPos(); << Thats i was searching for ... thank you i will try it out Wink


We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
03-24-2012, 04:46 PM
Find
stonecutter Offline
Member

Posts: 140
Threads: 17
Joined: Feb 2011
Reputation: 4
#4
RE: Camera Movement !?

Well i solved it and the camera movement works fine Smile ! but i have a problem the screen is zooming in and out during the camera movement , becase the player is standing in darkness !
Is there a command for disabling the screen effect or do i have to use to put some light around the playerstart !?

found nothing in the wiki.

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
(This post was last modified: 03-24-2012, 06:54 PM by stonecutter.)
03-24-2012, 06:54 PM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#5
RE: Camera Movement !?

You can't do that.

Signature to awesome to be displayed.
(This post was last modified: 03-24-2012, 10:26 PM by Stepper321.)
03-24-2012, 07:19 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: Camera Movement !?

You can use SetSanityDrainDisabled to disable sanity drain from darkness.

Tutorials: From Noob to Pro
03-24-2012, 07:23 PM
Website Find
stonecutter Offline
Member

Posts: 140
Threads: 17
Joined: Feb 2011
Reputation: 4
#7
RE: Camera Movement !?

Ok thx very much ... i have one last problem ...

After the Camera reached his point i fade out and teleport the player to another point ... and then he is teleported
i set
"MovePlayerHeadPos(0.0f, 0.0f, 0.0f, 100.0f, 0.0f);"
but then i got some graphic problems ... is there another way to set it back to normal position ?

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
03-24-2012, 08:30 PM
Find
Datguy5 Offline
Senior Member

Posts: 629
Threads: 25
Joined: Dec 2011
Reputation: 12
#8
RE: Camera Movement !?

(03-24-2012, 07:19 PM)Stepper321 Wrote: You can't do that.
Actually you can.

03-24-2012, 08:31 PM
Find
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#9
RE: Camera Movement !?

(03-24-2012, 08:30 PM)stonecutter Wrote: Ok thx very much ... i have one last problem ...

After the Camera reached his point i fade out and teleport the player to another point ... and then he is teleported
i set
"MovePlayerHeadPos(0.0f, 0.0f, 0.0f, 100.0f, 0.0f);"
but then i got some graphic problems ... is there another way to set it back to normal position ?
.
I had the same problem, but it worked great when I changed from 100 to 10, no idea why tho.
MovePlayerHeadPos(0.0f, 0.0f, 0.0f, 100.0f, 0.0f);


03-25-2012, 06:47 PM
Website Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#10
RE: Camera Movement !?

OFF TOPIC: That trailer was amazing.

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
03-25-2012, 07:10 PM
Find




Users browsing this thread: 1 Guest(s)