SA-MP Forums Archive
[SOLVED] Death animation delay - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [SOLVED] Death animation delay (/showthread.php?tid=414337)



[SOLVED] Death animation delay - MP2 - 09.02.2013

When a player dies, they should 'flop forward' as they always have, but they stand there for about a second (and can run around) THEN flop over. Any ideas what's causing this?

- Works fine on a blank mode.
- Hooked ApplyAnimation and ClearAnimation - neither are EVER called.
- Commented out all of OnPlayerDeath; didn't change a thing.
- Head movements are reset (facing forward) when I type /die (suicide) - this is what led me to believe animations were the cause, but no.

Kind of annoying :/

EDIT: Was caused by a 'fix' in fixes.inc ¬_¬


Re: [SOLVED] Death animation delay - Dan.. - 15.02.2013

What fix was causing this?


Re: [SOLVED] Death animation delay - MP2 - 15.02.2013

There's only one OnPlayerDeath fix in fixes.inc.

* FIX: OnPlayerDeath
* PROBLEM: Clients get stuck when they die with an animation applied.
* SOLUTION: Clear their animations.


Re: [SOLVED] Death animation delay - Dan.. - 16.02.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
There's only one OnPlayerDeath fix in fixes.inc.

* FIX: OnPlayerDeath
* PROBLEM: Clients get stuck when they die with an animation applied.
* SOLUTION: Clear their animations.
Yeah.. I've seen that right after I posted.


Re: [SOLVED] Death animation delay - DLR - 16.02.2013

I'll bet it's fixes.inc that's causing my game to crash when I mod a car at a transfenders too.