Scripts / Player "Capsule"?

Author
Message
GubbyBlips
3
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 18th Nov 2020 21:32
Discovered this anomalous function; anyone know about the use of it @ Global?
ControlDynamicCharacterController(iObj, -- controls the physics capsule of the player
fAngleY
fAngleX
fSpeed
fJump
fDucking
fPushAngle
fPushForce
fThrustUpwards )

In my tests, only one of the parameters caused anything to happen. The rest of them
did no change at all. So is it a future work?
I tested both first and third person. Same.
Only changing fSpeed increased made the player jump up and down like a trampoline
the higher the value, higher jumping.
PM
AmenMoses
GameGuru Master
5
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 18th Nov 2020 22:04
It's used in gameplayercontrol.lua maybe get some hints by seeing how it is used there?
Been there, done that, got all the T-Shirts!
PM
GubbyBlips
3
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 20th Nov 2020 01:07
Interesting stuff- might provide someone with help.
But there's still nothing much useful for Player vertical control 'Y'.
The jetpack thrust will make the player go up, but it's very finicky--
it follows a bell curve value. Even worst between water level and out.

So a person still has to strong- arm it and customize everything
related to that in script. Oh well-- that's not so hard-- it get's hard
when the engine fights back (gravity) on what you want to do.

Well, solid state values are the best for mimicking the intent anyhow.
PM

Login to post a reply

Server time is: 2022-01-28 06:01:35
Your offset time is: 2022-01-28 06:01:35