TheSil / base_enhanced

sil's base_enhanced server mod
3 stars 4 forks source link

Changing class in siege causes body to stuck in "jesus star" pose until respawned #74

Closed TheSil closed 9 years ago

TheSil commented 9 years ago

Change teams AND siege class while being alive in game and you will see your character getting stucked with hands and legs straight, instead of just seeing regular dying.

TheSil commented 9 years ago

image

entdark commented 9 years ago

lol @ naming it "jesus" pos. Called "star" actually.

TheSil commented 9 years ago

:D should rename it to jesus star perhaps then?

Grab11 commented 9 years ago

It's more like vitruvian man. It happens after leaving body after dying.

TheSil commented 9 years ago

Anyway managed to fix this, appear to be in client mod though. Following lines of code cause it:

cg_entities[clientNum].currentState.legsAnim = 0;

and

cg_entities[clientNum].currentState.torsoAnim = 0;

in CG_NewClientInfo() in cg_players.c. Simply removing them seems to resolve the issue and so far i havent observed any side effects.

entdark commented 9 years ago

Plz, test more, I want to steal the proper fix.