Author Topic: psyc gun  (Read 4848 times)

0 Members and 1 Guest are viewing this topic.

Offline jnewcombe

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
psyc gun
« on: June 25, 2007, 02:17:02 PM »
with the new version of ulx operators and anything other user made classes (apart from players) can use there psyc gun to move players , how do i disable this so only admins plus can use this feature

thanks

Jon

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: psyc gun
« Reply #1 on: June 25, 2007, 03:47:11 PM »
It goes off slap access and immunity right now.
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: psyc gun
« Reply #2 on: June 25, 2007, 05:39:44 PM »
Megiddo, remember, not everyone is as techy as we are. :)

What is the easiest way Jon would make it admin only?
Would he have to go into a file and change ACCESS_SLAP in some file/function to something admins and above have only? (ACCESS_MAP?)
Or would it be better for him to edit groups.txt to deny operator (Wait, is there a "ulx blah" that can be denied for physgun. If not, should we make something to allow deny?)?

Think simple.

Though I'm techy enough to figure out multiple ways, I'm not 100% sure myself which would be easiest/best practice for a non-tech.
If I was sure, I'd give a simpler answer.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jnewcombe

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
Re: psyc gun
« Reply #3 on: June 26, 2007, 08:19:16 AM »
if there is a way to make it go off kick that would be awsome!

any suggestions

thanks again

Jon

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: psyc gun
« Reply #4 on: June 26, 2007, 10:44:32 AM »
Go into util.lua, find the hooked function by searching for "onphysgunpickup", right above it you should see a function. Somewhere in the function you'll see "ulx slap". Change that to whatever you want. :)
Experiencing God's grace one day at a time.

Offline jnewcombe

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
Re: psyc gun
« Reply #5 on: June 29, 2007, 04:09:53 PM »
is it this line

Code: [Select]
local function playerPickup( ply, ent )
if ent:GetClass() == "player" and ULib.isSandbox() and ULib.ucl.query([b] ply, "ulx slap" [/b]) and not ent.NoNoclip then
if ply:IsUserGroup( ULib.ACCESS_SUPERADMIN ) or not ent:IsUserGroup( ULib.ACCESS_IMMUNITY ) then -- If player is superadmin or touched isn't immune
ent:SetMoveType( MOVETYPE_NONE ) -- So they don't bounce
return true


thanks :)
« Last Edit: June 29, 2007, 04:14:32 PM by jnewcombe »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: psyc gun
« Reply #6 on: June 29, 2007, 05:21:09 PM »
yep
Experiencing God's grace one day at a time.

Offline monkeynutts

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: psyc gun
« Reply #7 on: July 06, 2007, 07:43:32 AM »
I am also having this same problem on my server. I have tried changing the ulx slap to kick and ban but neither is working. No matter what I put in there players are still able to use the psyc gun on each other and on admins. This is very annoying and I would really like to find out why this is doing that and how to fix it.

is it this line

Code: [Select]
local function playerPickup( ply, ent )
if ent:GetClass() == "player" and ULib.isSandbox() and ULib.ucl.query([b] ply, "ulx slap" [/b]) and not ent.NoNoclip then
if ply:IsUserGroup( ULib.ACCESS_SUPERADMIN ) or not ent:IsUserGroup( ULib.ACCESS_IMMUNITY ) then -- If player is superadmin or touched isn't immune
ent:SetMoveType( MOVETYPE_NONE ) -- So they don't bounce
return true


thanks :)

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: psyc gun
« Reply #8 on: July 06, 2007, 08:48:04 AM »
If everyone is able to use it on anyone, then you likely have some other mod conflicting.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline monkeynutts

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: psyc gun
« Reply #9 on: July 06, 2007, 04:10:59 PM »
Well from what I have seen this seems to be a common issue with many servers. My server was working fine with no confict until we updated to the 3.11 version of ULX.
We really like the functions of your addon, but if we cannot get any support in fixing this problem we are going to have to go with another admin addon other than ULX.  :-\. Im not trying to come off as a dick but how many people need to report this problem before someone actually takes this serious and really attempts to fix it? There are multiple threads about this problem on your forums but no solid attempt to resolve the issue. Thank you for your time and sorry if I offened anyone.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: psyc gun
« Reply #10 on: July 06, 2007, 09:12:53 PM »
Sorry if we seem to be coming off as harsh, but you have to realize that we end up with many complaints about problems with little or no additional information. If we do manage to get any information it is usually after asking multiple times, and then a large majority of these problems turn out to be caused by some other addon which the person has.

I'm not trying to say you don't have a problem, but when we, and others, are running it without problem then there must be some other variable involved which we don't know about, and thus can't do anything to fix.

Please go back and check for any errors in console, and list all other addons/scripts you have installed on your server. Without this information there is no way we will be able to help you.

Also, I would like to point out that you are infact not having the same problem as the OP. His/her problem was simply that they didn't want everyone with slap access to be able to use the phys gun on players.

I hope we can solve your problem, but in order to do so you need to help us help you.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: psyc gun
« Reply #11 on: July 06, 2007, 09:25:23 PM »
Spbogie is correct. You are the first one to report this problem, so it must be something on your end.
Experiencing God's grace one day at a time.