PDA

View Full Version : Death From Env damage in 05-09 code on cvs.biosprite.net


Derision
05-10-2004, 01:20 AM
If a player with a pet dies from environmental damage using the 05-09 code from cvs.biosprite.net, zone crashes. (Confirmed by casting a pet, #flymode 1, go to a great height and #flymode 0).

This seems to be caused by the following new code in client_process.cpp, case OP_EnvDamage:

if(GetHP() <= 0)
Death(0,32000);

This appears to have been put in to fix the bug where you would lie on the floor bleeding forever. I just commented it out for now as I prefer that to my server crashing :?

Posted here rather than the dev forum as I don't have a real fix and I am not sure if Dev's want bug reports on the code on biosprite.

mikenune
05-10-2004, 03:39 AM
You could just implement a Voodoo fix like Sony did. . .

Isn't that what "Pain and Suffering" are there for? When you are unconcious and dying, you are always killed by "Pain and Suffering."

Just include a small code block that says something like the following:

If your health is less than (purple bar) then
Spawn "Pain and Suffering" at your loc

While your health is less than (purple bar) AND you are still alive
Make "Pain and Suffering" attack you
End while

Despawn "Pain and Suffering"
End if
Wouldn't that do it? Of course, without actually looking at the code (and I can't because I'm still at work :(), I can't tell you how to actually implement it though.

NarutoLegacy
05-11-2004, 11:10 AM
Should make it with the Spectre Model, (85), that would be hot :-)

Charmy
05-11-2004, 12:42 PM
Lol, i would like to see that, perhaps call him a messenger of death. and btw is that really how SoE does it? spawns an invisable mob that attacks you? didnt know that... hmm