Jump to content

Home

I GOT IT! disabling certain FP's but one hang up


Valdarious

Recommended Posts

Is there a way to reset someones force powers when joining a server cause I think I figured out our problems with getting only certain powers in a game. I could use some input from some people on messing with things I guess. Go into the pk3 file and find a folder called ui\jk2mp and extract the file called menudef.h and change these setting like this

 

#define UI_FORCE_RANK_HEAL 0 <-- was 259 change it to 0 etc.

#define UI_FORCE_RANK_LEVITATION 260

#define UI_FORCE_RANK_SPEED 261

#define UI_FORCE_RANK_PUSH 262

#define UI_FORCE_RANK_PULL 263

#define UI_FORCE_RANK_TELEPATHY 0 <--

#define UI_FORCE_RANK_GRIP 0 <--

#define UI_FORCE_RANK_LIGHTNING 0 <--

#define UI_FORCE_RANK_RAGE 0 <--

#define UI_FORCE_RANK_PROTECT 0 <--

#define UI_FORCE_RANK_ABSORB 0 <--

#define UI_FORCE_RANK_TEAM_HEAL 0 <--

#define UI_FORCE_RANK_TEAM_FORCE 0 <--

#define UI_FORCE_RANK_DRAIN 0 <--

#define UI_FORCE_RANK_SEE 273

#define UI_FORCE_RANK_SABERATTACK 274

#define UI_FORCE_RANK_SABERDEFEND 275

#define UI_FORCE_RANK_SABERTHROW 276

 

Save the file and go back to the base directory and highlight the ui folder and make it into a winzip file with folder names and change the name to assets9.pk3 or any number but make it assets#.pk3. When you start the server you can have any rank you want but when the player goes to the choose forces config they will not see light/dark powers to choose from. The only problem that I am running into is if someone has light/dark powers turned on from a previous server and just hits esc at the choose your model screen then hits join they will still have any powers that they had from the previous game, unless you change the rank I guess not sure. You can just put 0's in front of any powers you dont want in the game in the description up above. Anyone want to help me out on this, could be a step in the right direction, this is tested on a pure server, I think thats why I would make the file called assets instead of something else but who knows. Or if you like I can send you the file and you can mess it.

Link to comment
Share on other sites

Those are just for the UI I don't think you can restrict force powers succesfully that way. Someone can always go to the console and configure it by hand leaving non-console users at a serious disadvantage.

Link to comment
Share on other sites

I realize this and I was hoping it was a step in the right direction. It at least shows us a way to only have access to certain force powers so the user knows that only certain ones are allowed. I tried messing with stuff like maxforcerank too and I got some really wierd results. If you set the maxforcerank to some wild numbers like 42 or something you will get around 40k points to asign and stuff. This coupled with a working g_forcedisable command could help alot.

Link to comment
Share on other sites

No I am thinking in the reverse!

The settings listed.. Are they pre-ordained levels or are they just signifying the max.

 

Example:

#define UI_FORCE_RANK_LEVITATION 260 = Is that a MAX Rank or will this put EVERYONE on that rank

 

If it sets Everyone to that level then see what hapens when you use those settings and THEN set maxforcerank to 0

I wonder which will take over?

Will all force power's be disabled OR will They just Force into the Ranks set in the .pak3?

That is what I meant?

Danm I wish I was home to try it!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...