Closed D1GQ closed 4 months ago
I can't actually tell which part is changed.
I can't actually tell which part is changed.
Vector3 velocity;
// Apply gravity to the character controller
void ApplyGravity() {
if (!CharacterController.isGrounded) {
velocity.y -= Gravity * Time.deltaTime;
}
else if (velocity.y < 0) {
velocity.y = 0f;
}
Vector3 motion = velocity * Time.deltaTime;
_ = CharacterController.Move(motion);
}
// Jumping action
void Jump() {
velocity.y = JumpForce;
}
}
There's also an issue where if you look up or down you clip through the map because of the Collision box decrease.
Hmm, maybe setting it to 0.01f will help?
Nope, A possible fix is to make it where when you first possess your Collision box is zero then it increases it after a second
Aha.
There doesn't seem to be a logical difference between your changed code and mine and I can't replicate the issue where jumps are not working.
Seems fine now.
If there are no issues, I'll close this tomorrow.
I think the possession mod is getting close to be perfect, the only issue I know of now is the issue when you possess another enemy there's a chance that you teleport from the previous enemies location.
I haven't gotten that issue yet either, but I'll look into it.
I haven't gotten that issue yet either.
It seems that it happens more when you switch to another enemy while you're possessing one
I tried that a few times between a giant and bee, and I am still not getting it.
I tried that a few times between a giant and bee, and I am still not getting it.
Is it not possible that Lethal Menu is causing this problem instead?
Okay, I am finally getting the problem too.
And I think I know what might be the problem, when I implemented a Teleport system for myself to teleport to the previous spot sometimes it wouldn't work until a couple tries, so it seems that the game is for some reason not letting the player location change for a sec.
Hey this is completely off topic but I'm curious do you think there is a way to override control company with possession? Like I remember being able to do it back then but it was very buggy because of the host despawned the enemy it would break everything, but now you just can't take control I'm curious if that is because of a change that we made or a change that was made in control company.
I am not sure about you, but I am still able to take control of enemies that are being controlled by Control Company. The enemy position is de-synced but I am able to attack players.
I am not sure about you, but I am still able to take control of enemies that are being controlled by Control Company. The enemy position is de-synced but I am able to attack players.
Mmm ok, If I get another opportunity I'll try again.
I’ll be closing it. The teleport bug is fixed in latest by @LTYGUY. It seems most of the issues came from using CharacterController :/ Maybe sticking with RigidbodyController would’ve been a better choice.
It seems there's a bug right now for possession where sometimes you just don't jump when you click spacebar, it has something to do how the velocity is handled. This seems to fix it.
Code: