Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core/Vmap: Collision after a mind control #23247

Open
Killyana opened this issue May 5, 2019 · 7 comments
Open

Core/Vmap: Collision after a mind control #23247

Killyana opened this issue May 5, 2019 · 7 comments

Comments

@Killyana
Copy link
Member

Killyana commented May 5, 2019

Description: When your char get mind controlled you can get weird collision issues.
Like you cannot leave a house because you cannot go throw the door (no gobs)

Steps to reproduce the problem:

  1. .go c id 20483
  2. Aggro and wait for the mind control
  3. .gm on once MC, wait for the MC aura to fad
  4. Try to go throw the door

This looks not happening in master

Branch(es): 3.3.5

TC rev. hash/commit: rev. e253b69

@jackpoz
Copy link
Member

jackpoz commented May 6, 2019

Any error logged in the console ?

@jackpoz
Copy link
Member

jackpoz commented May 6, 2019

Could you try before 8f9654d ?

@Ovahlord
Copy link
Contributor

Ovahlord commented May 6, 2019

This is a collision height issue. When the character grows in size with that aura and the collision height will be increased via opcode to reflect that size change but apparently nothing is setting the collision height back to normal once the mindcontrol is removed.

@Killyana
Copy link
Member Author

Killyana commented May 6, 2019

This issue happen in 2 years old core, it's not new.
I tried .mod scale 0.1 when the mind control ends, But I still cannot go throw the door.

@Shauren
Copy link
Member

Shauren commented May 6, 2019

You need to mount/dismount to trigger SMSG_MOVE_SET_COLLISION_HGT

@Killyana
Copy link
Member Author

Killyana commented May 6, 2019

If you use .aura 36145 the scale of the char will be changed without the MC effect and you can go throw the door with this scale.
And yes mount/dismount fix the issues but you cannot use the a mount inside the building

@Shauren
Copy link
Member

Shauren commented May 7, 2019

This leads me to think we should be sending SMSG_MOVE_SET_COLLISION_HGT for scale changes for players too (this theory is supported by the fact that on master branch that packet has a field "Reason" where one of the values is MOUNT and the other is just SCALE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants