videoP / jaPRO

Community effort to maintain and improve Jedi Academy + Jedi Outcast released by Raven Software
GNU General Public License v2.0
12 stars 6 forks source link

admin bitvalues? #24

Closed 2WR3505 closed 4 years ago

2WR3505 commented 4 years ago

wavin a hand to the dev, what are the admin bitvalues for japro?

sithmartyr commented 4 years ago

wavin a hand to the dev, what are the admin bitvalues for japro?

You use the toggleAdmin and tweakAdmin commands in the console to change the bitvalues for admin permissions.

2WR3505 commented 4 years ago

ah, so you set custom bitvalues?

edit: that doesnt seem to work right, it only disables or enables amtele, and it doesnt really give any kind of value, tweakadmin doesnt do squat

sithmartyr commented 4 years ago

Toggling the admin commands that are enabled using toggleAdmin will change the bitvalue of the g_fullAdminLevel or g_juniorAdminLevel cvars. Once you toggle an admin command on or off, you will see that the value of those cvars will change.

Yeah, tweakAdmin wasn't a usable command, but there are other commands like it for tweaking force powers or Saber stuff, thus "tweakSaber" and "tweakForce" can be used. I just couldn't remember if one of those style of commands existed for admin or not.

2WR3505 commented 4 years ago

whatever i try, it only toggles amtele, so yea, doesnt work, lol

sithmartyr commented 4 years ago

whatever i try, it only toggles amtele, so yea, doesnt work, lol

It sounds like you may be using the command incorrectly. Below I've included a log of the input and output when I use the command:

]rcon toggleadmin full 0 [X] Amtele
1 [X] Amfreeze
2 [X] Amtelemark 3 [X] Amban 4 [X] Amkick 5 [X] NPC 6 [X] Noclip 7 [X] Grantadmin 8 [X] Ammap 9 [X] Ampsay 10 [X] Amforceteam 11 [X] Amlockteam 12 [X] Amvstr 13 [X] See IPs 14 [X] Amrename 15 [X] Amlistmaps 16 [ ] Amwhois 17 [ ] Amlookup 18 [ ] Use hide 19 [ ] See hiders 20 [ ] Callvote 21 [ ] Killvote 22 [ ] Read Amsay

You can then use rcon toggleadmin full \<Insert Number> to toggle an admin permission on/off for the specified admin level. After you get the admin permissions set to the way you want, if you would like the bitvalue of the cvar, you can type _rcon gfullAdminLevel or _rcon gjuniorAdminLevel to see the bitvalue of the cvar.