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
Limping Player
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#2
RE: Limping Player

I don't think there's a function which will give you the player's velocity vector, but, you can probably simulate limping without using AddPlayerBodyForce() - you could use these (together with timers) instead:
PHP Code: (Select All)
// use this to modify the height of the "eyes" - some trial and error will be required
// (simulates head bobbing caused by dragging a leg)
void MovePlayerHeadPos(float afXfloat afYfloat afZfloat afSpeedfloat afSlowDownDist);

//use these to make the player slow (1.0f = 100%, 0.5f = 50%, 2.0f = 200%, etc.):
void SetPlayerMoveSpeedMul(float afMul);
void SetPlayerRunSpeedMul(float afMul); 
(This post was last modified: 01-15-2013, 05:22 PM by TheGreatCthulhu.)
01-15-2013, 05:19 PM
Find


Messages In This Thread
Limping Player - by AKZEL - 01-15-2013, 04:59 PM
RE: Limping Player - by TheGreatCthulhu - 01-15-2013, 05:19 PM
RE: Limping Player - by FlawlessHappiness - 01-15-2013, 05:27 PM
RE: Limping Player - by Kreekakon - 01-15-2013, 05:28 PM
RE: Limping Player - by TheGreatCthulhu - 01-15-2013, 08:31 PM
RE: Limping Player - by AKZEL - 01-16-2013, 12:38 AM



Users browsing this thread: 1 Guest(s)