Ulysses Stuff > Suggestions
Anti-suicide plugin
atomicspark:
I can't remember where I saw this before. It might even be a gamemode setting...
Vakaris:
I got a part of this code from some german website (used a translator), the other part I made up by my self and added the notification messange. It worked perfectly, but later I think an update broke the code... Same as Uclip...
JamminR:
See ULX's lib.lua file. It has a function that prevents death.
Use it's function along with a message.
Vakaris:
--- Quote from: JamminR on September 25, 2009, 05:59:21 PM ---See ULX's lib.lua file. It has a function that prevents death.
Use it's function along with a message.
--- End quote ---
Looked at the file, it seems it's on what the wonders sslay feeds on for power... But I couldn't figure out how to properly merge it with my function (look above for refference). Also, jsut that we're clear, I'm looking for a script or something the could prevent suicide command, but would still allow the player to die from prop physics, PvP damage, suffocation in space, etc. and most imporatantly wouldn't be immune to (s)slay commands. It's getting late here... Ok basicly it's morning - 04:07, I'm going to get some sleep and continue on the matter after that, feel free to post sugestiongs, help, etc. I'll check when I wake up.
JamminR:
You're script should work.
Only reason I can think would be another mod that uses the same hook being done badly.
You mentioned in another post Gcombat. I've seen posts of Gcombat breaking certain functions of ULX, and atomicspark mentioned it being a mess.
Gcombat may not be the issue, but, search your other mods for the text "CanPlayerSuicide"
I'm betting one of them is returning something when it shouldn't be.
The function I was talking about in lib.lua are checkDeath and checkSuicide.
We use them both for during punishments where we don't want the person to kill themselves.
Jail, Maul, just to name a few. :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version