lundi 30 mars 2015

Certain Players Getting Stuck After Spawning

Hi there, everyone.



So my team's project is going well. In my previous post, I was looking for assistance in getting a custom spawning system working, where players that die on one team automatically respawn in the same exact location, but on another team. We've got this working successfully now; however, the only problem is that it's created a new specific issue that I was hoping someone might be able to help me find a solution for.



So with our new dynamic spawning system, whenever a player dies, it grabs their current location in world space and then respawns them as a member of the other team right where they died. The problem that's occurring now is when a player dies while crouched under an object with collision or inside some low height brush geometry, such as inside a vent. When this happens, the player respawns in that same location, but does so in the default standing position, so the player gets stuck inside the collision/geometry and is unable to free themselves.



Browsing through the code, I feel like I should be able to solve this issue by forcing all players to spawn in a crouched state for a brief second (which would prevent them from getting stuck if they are underneath something that they would otherwise get stuck in), but I'm having trouble figuring out exactly how to implement such a fix. Does anyone have any thoughts on how to force a player to spawn automatically crouched or perhaps have any other ideas on how to best go about solving this particular issue? Any ideas or advice would be greatly appreciated, and thanks in advance for your help.

Certain Players Getting Stuck After Spawning

0 commentaires:

Enregistrer un commentaire

Popular Posts

Categories

Unordered List

Text Widget

Blog Archive

Followers

Fourni par Blogger.