ULX

Author Topic: votekick question  (Read 2525 times)

0 Members and 1 Guest are viewing this topic.

Offline Vizzy

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
votekick question
« on: November 04, 2012, 03:47:43 PM »
So i own a server and I use ULX and I love it but i do have one thing i perceive to be a problem.

If an admin calls a votekick if brings up a box where you vote yes with 1 and no with 2.

I'm curious if its possible to change these keys to say pgup for yes and pgdn for no?

Also is it possible to make the popup slightly more transparent.

 Id like to give certain usergroups the votekick command but atm it interrupts the game because some people use the 1 and 2 keys to switch weapons, thus it can be abused slightly.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: votekick question
« Reply #1 on: November 04, 2012, 04:53:25 PM »
You can't change it to use page up and page down (at least not reliably) -- gmod limitation.

You can make it more transparent by changing the values for transparency in cl_lib.lua I believe.
Experiencing God's grace one day at a time.

Offline Vizzy

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: votekick question
« Reply #2 on: November 04, 2012, 05:10:57 PM »
could it be changed to 9 or 0

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: votekick question
« Reply #3 on: November 04, 2012, 05:58:29 PM »
Yes, it could be changed to different numbers.
Experiencing God's grace one day at a time.

Offline Vizzy

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: votekick question
« Reply #4 on: November 04, 2012, 06:18:06 PM »
can you point me in the file direction to change that good sir

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: votekick question
« Reply #5 on: November 05, 2012, 12:14:09 AM »
Unless I'm mistaken, I believe it's in addons\ulx\lua\ulx\cl_lib.lua, line 93:
Code: [Select]
draw.RoundedBox( 8, 10, ScrH()*0.4 - 10, w + 20, totalh, Color( 111, 124, 138, 200 ) )Lower the 200 on that Color() and should be more transparent.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Vizzy

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: votekick question
« Reply #6 on: November 05, 2012, 09:30:40 PM »
Unless I'm mistaken, I believe it's in addons\ulx\lua\ulx\cl_lib.lua, line 93:
Code: [Select]
draw.RoundedBox( 8, 10, ScrH()*0.4 - 10, w + 20, totalh, Color( 111, 124, 138, 200 ) )Lower the 200 on that Color() and should be more transparent.

thanks but i more meant where can one change the numbers you vote yes or no with