Author Topic: Question about Godmode.  (Read 1479 times)

0 Members and 1 Guest are viewing this topic.

Offline eagle9er9er

  • Jr. Member
  • **
  • Posts: 50
  • Karma: 0
Question about Godmode.
« on: June 30, 2013, 09:28:52 PM »
Okay, I need help being pointed in the right direction, if this is possible.

I would like people on my server to be able to give themselves godmode, but at the expense that they cannot deal damage while in godmode. Is there anything like this that exists? If so, where can I find it.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Question about Godmode.
« Reply #1 on: July 01, 2013, 10:38:15 AM »
This would be a great project to get your feet wet with GM-Lua. It's a fairly straightforward mod.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Question about Godmode.
« Reply #2 on: July 01, 2013, 01:54:05 PM »
In other news, no, nothing currently exists.
Logic for this would be as follows (again, this is logic, NOT GM-lua or ULib or even Lua)

On player damage
if damager is godmode (or, is ulx godmode) then return
end
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming