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
Player Collapse
Froge Offline
Posting Freak

Posts: 2,955
Threads: 176
Joined: Jul 2012
Reputation: 125
#1
Player Collapse

On average, where should I script the player to look at if I want to make it seem as if he's collapsed?

[Image: p229xcq]
12-24-2013, 06:07 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Player Collapse

From exhaustion; either falling back or falling to the ground. Respectively, the camera would face upward or downward. It really depends on which way the character falls. If however, he or she falls to the side, the character would face forward with her head on the side. Collapsing on the side is notably more dangerous and can cause head injury, either to the skull, brain, chin or cheekbone.

Waking up from any collapse may also result in heavy dizziness and fatigue Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
12-24-2013, 07:47 AM
Find
Froge Offline
Posting Freak

Posts: 2,955
Threads: 176
Joined: Jul 2012
Reputation: 125
#3
RE: Player Collapse

(12-24-2013, 07:47 AM)Romulator Wrote: If however, he or she falls to the side, the character would face forward with her head on the side.
This is the one I want. Would I force the character to look at an area script in front of them and as low as their feet (i.e. at ground level)? I want to simulate sort of the very beginning of A:TDD in the rainy hall.

[Image: p229xcq]
(This post was last modified: 12-24-2013, 08:07 AM by Froge.)
12-24-2013, 08:06 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Player Collapse

Functions that you need:
Spoiler below!

PHP Code: (Select All)
StartPlayerLookAt("EntityToLookAt"0.67f1.32f"");
StopPlayerLookAt(); 
Function to make the player to look at something.

PHP Code: (Select All)
MovePlayerHeadPos(float afXfloat afYfloat afZfloat afSpeedfloat afSlowDownDist); 
Function to make the player to move their head vertically.


Not a complete script. Just the functions you need.

"Veni, vidi, vici."
"I came, I saw, I conquered."
12-24-2013, 09:17 AM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#5
RE: Player Collapse

I usually have the player focus either straight along the ground, or if they're slightly on their back I'll have them focus on an object on a low table or something.

All else fails, just have them focus on a ScriptArea, and you can move it around until you find something that works.

12-29-2013, 01:05 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Player Collapse

Creating an area would be the best idea, in my opinion. Just so you know exactly where the player looks.

I'd crouch the player, to have him at ground level.
Then look at the area, but tilt the head of the player about 90 degrees, so that it feels like he's lying down.

Trying is the first step to success.
12-29-2013, 01:11 AM
Find




Users browsing this thread: 2 Guest(s)