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
How to script Fainting?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: How to script Fainting?

Look what fricitonal games did.
What i would use is:

FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
Rotates the position of the camera on the player's body.
afX - angle of rotation of head, positive being counter-clockwise
afSpeedMul - speed (possibly acceleration) multiplier of the rotation (default 1, which is really slow)
afMaxSpeed - maximum speed of rotation



SetPlayerCrouching(bool abCrouch);

SetPlayerActive(bool abActive);

FadeImageTrailTo(float afAmount, float afSpeed);
Applies the image trail effect to the screen.
afAmount - intensity (default: 0)
afSpeed - time in seconds until full effect



FadeRadialBlurTo(float afSize, float afSpeed);
Applies radial blur effects to the screen.
afSize - intensity (default: 0)
afSpeed - time in seconds until full effect

Trying is the first step to success.
(This post was last modified: 11-02-2012, 11:35 AM by FlawlessHappiness.)
11-02-2012, 08:13 AM
Find


Messages In This Thread
How to script Fainting? - by taylor122002 - 11-02-2012, 03:56 AM
RE: How to script Fainting? - by FlawlessHappiness - 11-02-2012, 08:13 AM
RE: How to script Fainting? - by naseem142 - 11-02-2012, 08:51 AM



Users browsing this thread: 1 Guest(s)