Ulysses Stuff > Releases

Fakename - Go Undercover!

<< < (4/6) > >>

Aaron113:
With help from Zoeo pointing out a couple of things in an example, I just posted a download for a file that will fix TTT name changes.  Just see first post, it is self explanatory.

I also pushed a small change to fakename.  I guess I was removing networked variables the wrong way.  It seems like I can never get it just right or it keeps changing.  No idea.

Zoeo:
I found a way to change the entity:GetUserGroup(), but by doing so it changes how the ULib and ULX see your rank meaning you cannot use any commands.

--- Code: ---function meta:GetUserGroup()
local realgroup = self:GetNetworkedString( "UserGroup", "user" )
local fakegroup = self:GetNWString( "FakeGroup", "user" )
if not self:IsFakenamed() then
return realgroup
else
return fakegroup
end
end
--- End code ---

As I said though, when the ULX and ULib look at this it thinks that it is your actual rank and not a fake one, so any powers you have are unusable while hidden.  I tried to overwrite a ULib function in order to look at it as your real group instead of as a fakegroup, but I can't seem to get it to work.

NOTE: I should note that the rank MUST exist with this method, attempting to use a rank that is not on the server will cause errors and the ULiband ULX will break/lock you out until you change map/reset server and set your rank back.

As for the issue with the networked varibles, the NWVars were updated in the latest big update so I knew something was going to be up with them.  Setting it as nil instead of false also works.

Aaron113:

--- Quote from: Zoeo on June 09, 2015, 01:18:03 PM ---I found a way to change the entity:GetUserGroup(), but by doing so it changes how the ULib and ULX see your rank meaning you cannot use any commands.

--- Code: ---function meta:GetUserGroup()
local realgroup = self:GetNetworkedString( "UserGroup", "user" )
local fakegroup = self:GetNWString( "FakeGroup", "user" )
if not self:IsFakenamed() then
return realgroup
else
return fakegroup
end
end
--- End code ---

As I said though, when the ULX and ULib look at this it thinks that it is your actual rank and not a fake one, so any powers you have are unusable while hidden.  I tried to overwrite a ULib function in order to look at it as your real group instead of as a fakegroup, but I can't seem to get it to work.

NOTE: I should note that the rank MUST exist with this method, attempting to use a rank that is not on the server will cause errors and the ULiband ULX will break/lock you out until you change map/reset server and set your rank back.
--- End quote ---
Issues I all ran into.  This is why I am leaving it to server owners to incorporate it into their servers.

captainz:
Doesn't work with Darkrp though!  :( :(

Aaron113:

--- Quote from: captainz on June 10, 2015, 07:57:54 PM ---Doesn't work with Darkrp though!  :( :(

--- End quote ---
I never tested it, I would have to check it out later.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version