Author Topic: Player Reverts to Bot Avatar on Death  (Read 1761 times)

When a player is killed while moving, they die normally but, about 500ms later, they revert to the standard Bot avatar. Here's my code:
Code: [Select]
package PhysicsDeath
{
function armor::onDisabled(%data,%obj,%enabled)
{
%p = parent::onDisabled(%data,%obj,%enabled);
// applyDefaultCharacterPrefs(%obj);
// %obj.setDecalName("none");
// %obj.setNodeColor("ALL","0.5 0 0 1");
%obj.playthread(3,root);
%obj.playthread(2,root);
%obj.playthread(1,root);
%obj.activatePhysics();
return %p;
// %obj.emote(AlarmProjectile);
}
};activatePackage(Physicsdeath);
« Last Edit: April 06, 2013, 03:44:17 PM by tommybricksetti »

Are you reporting a bug with an add-on you made that you want to fix

Or

Are you requesting such a mod?

Are you reporting a bug with an add-on you made that you want to fix

Or

Are you requesting such a mod?
It's a bug, I want to fix. It's happened without this onDeath add-on I made, however.

Be sure the parent is being called correctly.

Be sure the parent is being called correctly.
I have no idea how parents work to be honest.

I have no idea how parents work to be honest.
Ok you did it right in the code you just posted. What does Player::activatePhysics do?

« Last Edit: April 06, 2013, 04:55:02 PM by tommybricksetti »

Problem still occurs. I have no clue why. It's delayed 400-600ms after death for some reason.


Ok you did it right in the code you just posted. What does Player::activatePhysics do?

I'm guessing it applies the "ski tumble" to players.
Still, it'd be useful to see the code for it, since there doesn't seem to be anything wrong with your armor::onDisabled method.

I'm guessing it applies the "ski tumble" to players.
Still, it'd be useful to see the code for it, since there doesn't seem to be anything wrong with your armor::onDisabled method.
Not tumble. Tumble is incredibly unreliable, so I used my own heavy physics vehicle.

It's a bug, I want to fix. It's happened without this onDeath add-on I made, however.
Is any other mod/minigame settings/... refreshing the players' appearance?
Try disabling this mod, all other mods or on a clean installation.
What happens if you use activatePhysics() while alive?