Author Topic: function gameConnection::onDeath  (Read 586 times)

Everything starts glitching up, the mouse leaves a trail, the chat gets messed up, the camera freezes up, but the city rp bottom print stays and the player dies.  The player's death does not show up in chat though, and the [Job] NAMEHERE setshapename appears over your body's head for 3 seconds after death

FIXED - *Clockturn I <3 you too*
« Last Edit: October 13, 2009, 03:13:42 AM by Tezuni »

Everything starts glitching up, the mouse leaves a trail, the chat gets messed up, the camera freezes up, but the city rp bottom print stays and the player dies.  The player's death does not show up in chat though, and the [Job] NAMEHERE setshapename appears over your body's head for 3 seconds after death

CODE

It did not start glitching up until I added this:

Code: [Select]
if(TezRPData.getData(%col.client.bl_id).valueDemerits < $TezRP::demerits::wantedLevel)
                        { if(TezRPData.getData(%col.client.bl_id).valueDemerits < $TezRP::demerits::wantedLevel)
                        {
                                commandToClient(%obj.client, 'centerPrint', "\c6Congrats, you helped the city! [\c3Killing a Fugitive\c6]", 1);
                                return;
                        }

Also, why does the text bar scroller keep shooting up after I type every letter, its annoying. :C
You're returning before calling the default onDeath function so (if I'm right) they're not getting a death camera or respawning so the client breaks.

Also, you're a friend for find-replacing "City" to "Tez" in old CityRP. You'd be a friend for doing it in a new version, but you're triple the friend for doing it with an old one.