Jedi Academy Mod


Version1.3 SE
Author Michael 'cHoSeN oNe' Nohai
Emailchosenone@nyc.com
Type

Jedi Knight II
Server Modification



Index

Overview
1.3 - Special Edition
Installation
Installation - making the mod truly server-side
Modifications
Rcon, Admin, and Knight commands
Emotes, Client, & Admin commands
Damage CVars
Message CVars
Other CVars
Known Issues
Special Thanks
Other Cool Mods
Disclaimer



Overview

This mod is the official mod for the Jedi Academy. A server-side only modification designed to keep the peace and order on the servers. This is the final chapter of this great series. With that in mind, I set out and improved this mod a great deal that makes it stand out from its preceding versions. It's loaded with Admin Commands, Client Commands, Emotes, Options, and cVars; Extremely modified to meet any clans expectations. This is truly the only mod you will ever need to get that doesn't alter the normal gameplay of Jedi Knight II: Jedi Outcast® Please visit us at http://www.thejediacademy.net or on IRC at #jedi-academy, irc.quakenet.org


1.3 - Special Edition

  • mnpcaccess does not give client access to cheats.
  • You can now use clients names for assigning mnpcaccess/mnpcnoaccess.
  • Fixed an emote exploit due to g_mDebugCheats set to 1 and cheats enabled. (debugKnockMeDown)
  • Fixed emote exploit when in spectator.
  • Disabled the use of pushing/pulling dropped items. (this fixes the weird spawnpoint bug)
  • Empower only gives team force and team heal power as an extra when playing team games only
  • Empowered clients now has stronger team force and heal when playing in team games.
  • g_mAdminGun - Enables/Disables AdminGun system. (includes script)
  • Fixed using emotes when dead.
  • Fixed using terminator and unterminator to become alive after death.
  • Fixed Teleporting the dead.
  • g_mAllowTeleFlag - default is enabled, if set to 0, clients cannot teleport during CTF and CTY gameplay.
  • New BanIP.dat file stores banned ip's. Full use of 1024 saved ips activated! ( written by Lee Oattes )
  • Clients cannot use emotes during movements, specials, backattacks, and other saber attacks.
  • Tweaked the whois command a little again to make it more stable.
  • Server messages print better for clarity.
  • New Voting checks, 1) Failed Vote Delay, 2) Need 2 clients to call a vote 3) No voting within 1 min of map change.
  • g_mAllowVoteMap, g_mAllowVoteGameType, g_mAllowVoteKick - new cVars to control certain voting rights.
  • Clients can no longer change their name during a vote to escape its purpose.
  • g_mGiveAdmin - if set to 1, you can grant an admin access level to anyone on the server.
  • madminaccess, mdenyadminaccess - commands for granting/denying admin access to clients.
  • New admin command mprotect/munprotect - protects client on server from attacks untill client attacks others.
  • Silence/Unsilence has new mode parameter.
  • Sleeping and Punished clients now are invulnerable to attacks.
  • Explode now gives you a selection of which appendage you wish to detach.
  • Enable/Disable use of black color names.
  • Client's nick can now be 50 characters rather than 32.
  • mreward command removed.
  • New logout function - to logout as an admin or knight.
  • Timeout to spectator finally working correctly with g_inactivity timer. ( written by Lee Oattes )
  • Ignore - ignore certain clients from chatting so you dont have to listen to them.
  • Punished and Sleeping clients can no longer use the \kill command.
  • New cVar g_mNameChange - Name changing time allowance, default is 1 minute.
  • Same name checking, auto renames when a client with same name is found.
  • New g_mAllowBotLimit, g_mMaxBots, and g_mMinHumans to control amount of bots and players on the server at any given time.
  • Saga Mode compatible, including all bug fixes made by authors in Lucasforums.
  • Included Filter for all QTracker™ servers using JA Mod. (Double click JAMod.qtf file to install [automatic in windows installer version])
  • Optimized Source code to increase speed and stability.
  • All Features included from previous releases.


Installation

Linux:
Create a directory like this:
/home/.../jk2/academy
where '/home/.../jk2/' is the path where you installed Jedi Knight II. Now you can start the server with the '+set fs_game academy' argument.

Example:
./jk2ded +set fs_game academy +exec server.cfg +exec academy.cfg

Windows:
Create a directory like this:
X:\...\Star Wars JK II Jedi Outcast\GameData\academy
where 'X:\...\Star Wars JK II Jedi Outcast\' is the path where you installed Jedi Knight II. Now you can start the server with the '+set fs_game academy' argument.

Example:
jk2mp.exe +set fs_game academy +exec server.cfg +exec academy.cfg

Windows Installer:
Double Click the Jedi Academy Mod.exe and the install should be straight forward. Shortcut will be installed for easy launch of application.

IMPORTANT:
For the Ban code, you will need to authorize FULL Admin access to the academy folder.
Windows: Make sure you have an administrator account.
Linux: command = man chmod, then follow on screen instructions.



Installation - making the mod truly server-side

If you install the mod the way as described with a pk3 file, the client will still have to download it when he connects. To prevent this, since Jedi Academy Mod is serverside only, You need to put all files in academy folder. The directory should now appear like ...../jk2/gamedata/academy under Windows or \ ...../jk2/academy under Linux. Under this dir there will be a vm dir with one .qvm file in it as well as the academy.cfg file. Now when a client connects he should not have to download the mod before he can enter the game.

Modifications

  • Various Trainer and Knight commands
  • Logging of player IP when player connects to the server. Logging happens in the following format:
    mlog_ClientConnect: <player client id> '<player name>' -> '<player ip>'
  • Logging of Trainer and Knight commands. Every command will be logged in the following format:
    mlog_command <playername>
  • Removed the 2 player at a time duel limit.
  • Sabers don't automatically ignite at the start of a duel.
  • "No bacta rule" is now working for duels.
  • Voting system is now limited for Trainer use only.
  • When player wins a duel he now gets up to 25 shield points as well as the full 100% health.
  • Disabling 1 or more forcepowers, unless ALL, does not disable use of powerups. (enlightenment and boon)
  • Typing !motd or !rules when saying something shows the motd to the player who said it.
  • Typing !version or !author when saying something shows the version number and author.
  • Typing !home or !web when saying something shows the JA home page link.
  • Setting the g_allowDuelSuicide to 1, will enable the clients to use \kill during private duels.
  • Setting damage for all the moves.
  • Various emotes.
  • Fixed Red Stance kick bug, are now able to kick those that use Red.
  • Invisible Saber Bug fix.
  • Spectator following/saber throw bug fixed.
  • Installer designed and created by Peter Koziol & Michael J. Nohai


Rcon, Admin, and Knight commands

NOTE:

[..] are optional

<..> are required

playerid => Can be a client id, full player name or partial player name. For example if there's a player named 'Padawan' and you want to kick him you can use this: mkick pad; mkick pada; mkick wan; etc. (Just watch out if there are more players with the same sequence in their name. At this point only the first encountered player is taken for the command. Also note that the keyword 'all' has special meaning. Most commands take the 'all' keyword to execute the command on all players on the server.

reason => This sends a message to both the server and the client consoles when a player is kicked or kick-banned. For example you can type: "\amkick pada please follow the rules next time." This will send the message "please follow the rules next time" to the server. Also message will be sent to the person's console. (They can scroll up in their console when they are disconnected)

Rcon command Trainer command Knight command Description
minfo aminfo aminfo Show all the available commands. The aminfo version also works for normal clients, but only Trainers and Knights get to see the admin info.
mhelp amhelp amhelp Quick Help for commands available in mod.
mwhois amwhois jkwhois Shows you which client is logged in as a Jedi Trainer and/or Jedi Knight.
  amlogin <password> jklogin <password> Trainers and Knights use this to login as an admin.
  logout logout Trainers and Knights use this to logout as an admin.
mstatus [playerid] amstatus [playerid] jkstatus [playerid] Altered version of status. This version sends less info to get passed the bug in the regular status where not all lines are send to the console. If a playerid is given the selected player will get a full screen display of the status. This is primarily for binding admin commands:
bind m rcon mstatus <Your player name here>
mkick <playerid><reason> amkick <playerid><reason> jkkick <playerid><reason> Same as kick but enhanced to also take a clientid or a partial player name and a reason from the admin for being kicked.
kickgun (AdminGun command)
mslap <playerid> amslap <playerid>   Slaps the selected player. Knocks player in a random direction and knocks him down for several seconds.
slapgun (AdminGun command)
mempower <playerid> amempower <playerid>   Empowers the selected player. The selected player gets duel saber and all force powers. The player also enters 'Jedi Master Mode' which allows him to do double damage. Empowered players also can't be pushed/pulled. This mode is primarily for admins having to deal with misbehaving players.
empowergun (AdminGun command)
munempower <playerid> amunempower <playerid>   Undo the effects of mempower.
unempowergun (AdminGun command)
mterminator <playerid> amterminator <playerid>   Threaten those empowered Jedi and become a dangerous individual with this command.
terminatorgun (AdminGun command)
munterminator <playerid> amunterminator <playerid>   Undo the effects of mterminator.
unterminatorgun (AdminGun command)
msilence <playerid><mode> amsilence <playerid><mode> jksilence <playerid><mode> Silence players so they can't talk. Mode passed could be 'global' for all chat disabled and 'private' for just public chat disabled.
munsilence <playerid><mode> amunsilence <playerid><mode> jkunsilence <playerid><mode> Unsilence players so they can talk again. Mode passed could be 'global' or 'gm' for all chat disabled and 'private' or 'pm' for just public chat disabled.
msleep <playerid> amsleep <playerid> jksleep <playerid> If there's someone on the server behaving badly this can be used to put them 'to sleep'. When asleep the player lies on the ground and can't move, jump, attack, etc. Player can still talk however. This can work wonders on those players that keep coming back after you keep kicking them.
sleepgun (AdminGun command)
mwake <playerid> amwake <playerid> jkwake <playerid> Wake the player if he's asleep (undo the effects of msleep).
wakegun (AdminGun command)
mrename <playerid> <new name> amrename <playerid> <new name>   Renames a player. If a player comes into the server with an offensive name this can be used to rename the player to something more appropriate. Note that at this time the player can still rename himself after this command.
mshowmotd <playerid> amshowmotd <playerid> jkshowmotd <playerid> By default the motd is shown whenever a player enters the game. This can be used to remind someone of the motd/rules by showing it to them again.
showmotdgun (AdminGun command)
mbunny <playerid> ambunny <playerid>   Turns player into a 'bunny'. In this mode the players saber is removed and replaced by something less deadly, the force powers are also removed. The player also starts jumping around randomly.
bunnygun (AdminGun command)
munbunny <playerid> amunbunny <playerid>   Undo the effects of mbunny.
unbunnygun (AdminGun command)
mexplode <playerid><appendage> amexplode <playerid><appendage>   Blows of someone's body part. appendage = (head, waist, larm, rarm, hand, lleg, or rleg)
mpsay <playerid> ampsay <playerid> jkpsay <playerid> Send a message to a specific player.
mtimescale <timescale> amtimescale <timescale>   Sets the timescale for the whole server. 1.0 is normal speed 2.0 is twice as fast. 0.5 is half speed (This might cause some lag on slow connections).
mkickban <playerid><reason> amkickban <playerid><reason>   Bans and kicks the player at the same time with a reason why they were kicked. No need to enter an ip.
[NOTE1: This command doesn't ban ranges so if the player who gets banned has a dynamic ip he can probably get back by reconnecting to his ISP. However with this you can ban them faster then they can connect >:) ]
[NOTE2: Be careful with the keyword 'all' since typing 'mkickban all' will also work and everyone connected will get banned!]
[NOTE3: All banned ips now stored in a BanIP.dat file located in the mod folder. To UnBan someone, you can use notepad and just delete the IP address.]
kickbangun (AdminGun command)
mtele <playerid><x><y><z><yaw> amtele <playerid><x><y><z><yaw>   This can teleport any client to any desired location.
[NOTE: The clients destination is read with using the amorigin command. This will get you the X, Y, and Z coordinates on the map. The YAW is the angle the user is facing, any number from 0 to 360 degrees will work just fine.]
[CAUTION: This command can cause serious lag to the server and/or other clients if used abusively.]
morigin <playerid> amorigin <playerid>   This gets client's X, Y, and Z coordinates on the map and prints them to the console.
origingun (AdminGun command)
mpunish <playerid> ampunish <playerid>   Client becomes 'punished' by freezing their movement, canceling their ability to chat, it takes all weapons away (except for saber), no force abilities, and user is put in a choking animation.
punishgun (AdminGun command)
munpunish <playerid> amunpunish <playerid>   Client becomes 'normal' again. All weapons, force, weapons, movement return to normal.
unpunishgun (AdminGun command)
mprotect <playerid> amprotect <playerid> jkprotect <playerid> Gives the client a certain protection/invulnerability. If client attacks in any way, they lose the power. Must unprotect before using protect again.
protectgun (AdminGun command)
munprotect <playerid> amunprotect <playerid> jkunprotect <playerid> Unprotects the client.
unprotectgun (AdminGun command)
mforceteam <playerid><team> amforceteam <playerid><team>   Transfers a client to a specified team in CTF gameplay. (Red, Blue, Spectator)
mdenyvote <playerid> amdenyvote <playerid>   Disables use of voting to a specific client.
denyvotegun (AdminGun command)
mallowvote <playerid> amallowvote <playerid>   Allows client to use the voting feature again.
allowvotegun (AdminGun command)
mlockteam <team> amlockteam <team>   Locks a specific team in CTF mode so no one can join. (Red, Blue, Spectator)
munlockteam <team> amunlockteam <team>   Unlocks a specific team in CTF mode so people are allowed to join. (Red, Blue, Spectator)
mrandteams amrandteams   Randomizes Teams in CTF Gameplay
mnpcaccess <playerid> amnpcaccess   Gives the client ability to spawn NPC's
allownpcgun (AdminGun command)
mnpcnoaccess <playerid> amnpcnoaccess   Denies the client access to spawn NPC's
denynpcgun (AdminGun command)
madminaccess <playerid><level>     Gives the client admin access level
Type am or admin for level 1; Type jk or knight for level 2.
mdenyadminaccess <playerid><level>     Denies the client admin access
Type am or admin for level 1; Type jk or knight for level 2.
mgametype <gametype> <map> amgametype <gametype> <map>   Allows Trainer to change Map and Gameplay.
[NOTE: The Gametypes are as follows:
0 = "Free For All"
1 = "Holocron FFA"
2 = "Jedi Master"
3 = "Duel"
5 = "Team FFA"
7 = "Capture the Flag"
8 = "Capture the Ysalamiri"]
  g2animent<type><alignment><weapon>
<model><sound><health><playerid>
g2animent<type><alignment><weapon>
<model><sound><health><playerid>
Spawn's an NPC of your choice.
[NOTE: All clients will have access to the command, granted the admin gave them the ability (mnpcaccess) to create an NPC.]
More Help
  g2platoon<type><alignment><weapon>
<model><sound>
g2platoon<type><alignment><weapon>
<model><sound>
Spawn's a Group of NPC's of your choice.
[NOTE: All clients will have access to the command, granted the admin gave them the ability (mnpcaccess) to create an NPC.
More Help

Included is a ja_admin.cfg script which allows the admin user to access the admin gun commands with ease. Place this file in your base folder [automatic install for windows installer version] and type \exec ja_admin.cfg in game console when in game.



Emotes, Client, & Admin Commands

Emotes can be used by all clients. Client Commands can be used by all clients. Admin Commands only for logged in admins.
Rcon command CVar to turn on/off feature Description
amsay <message>   Sends a message to all logged in Trainers and Knights.
amkiss g_mAllowKiss Kisses another player if you are close enough.
amhug g_mAllowHug Hugs another player if you are close enough.
amsit g_mAllowSit Sits down or stands up. You can turn on the CVar g_mOnlySitOnGround to only allow players to sit down on the ground.
amsit2 g_mAllowSit2 Another Sit command. You can turn on the CVar g_mOnlySitOnGround to only allow players to sit down on the ground.
amnod g_mAllowNodShake Nods your head.
amshake g_mAllowNodShake Shakes your head.
amtaunt g_mAllowTaunt Does the SP saber spin taunt.
amspin g_mAllowSpin Does a special spin move.
amspin2 g_mAllowSpin2 Does another special spin move.
amwave g_mAllowWave Waves your hand.
amthumbsup g_mAllowThumbs Stick up your thumb.
amthumbsdown g_mAllowThumbs Stick you thumb down.
ampunch g_mAllowPunch Make a punching move. Does not currently hurt the player.
amcrossarms g_mAllowCrossArms Crosses your arms. Use the g_mOnlySitOnGround cvar to only allow players to execute this move on the ground.
amlaugh g_mAllowLaugh Make a laughing movement.
amwave2 g_mAllowWave2 Make another wave movement.
amdontknow g_mAllowDontKnow Make a shrugging movement.
amcomeon g_mAllowComeOn Waves your arm in a 'come on' movement.
amtaunt2 g_mAllowTaunt2 Does another taunt movement.
amkneel g_mAllowKneel Makes you Kneel. Use the g_mOnlySitOnGround cvar to only allow players to execute this move on the ground.
amhandhips g_mAllowHandHips Makes you put your hands on your hips.
ampoint g_mAllowPoint Does a pointing gesture.
amscratch g_mAllowScratch Makes you scratch your head.
ambeg g_mAllowBeg Person gets on hands and knees. Use the g_mOnlySitOnGround cvar to only allow players to execute this move on the ground.
amcocky g_mAllowCocky Makes a pointing gesture at yourself.
amflip g_mAllowFlip Flips your light saber.
amtossback g_mAllowTossBack Throws your weapon behind you.
amtossover g_mAllowTossOver Throws your weapon off to the side.
amtossup g_mAllowTossUp Throws your weapon up in the air.
amwait g_mAllowWait Makes person put hands behind their back. Use the g_mOnlySitOnGround cvar to only allow players to execute this move on the ground.
amsurrender g_mAllowSurrender Puts your arms up in the air. Use the g_mOnlySitOnGround cvar to only allow players to execute this move on the ground.
mtele g_mAllowAdminTele Allows Admins to use the Teleport Command
mkick g_mAllowAdminKick Allows Admins to use the Kick Command
mkickban g_mAllowAdminKickBan Allows Admins to use the KickBan Command
morigin g_mAllowAdminOrigin Allows Admins to use the Origin Command
mgametype g_mAllowAdminGameType Allows Admins to use the GameType Command
mlockteam
munlockteam
g_mAllowAdminLockTeam Allows Admins to use the Lock and Unlock Team Commands
mrandteams g_mAllowAdminRandTeam Allows Admins to use the Random Team Command
mforceteam g_mAllowAdminForceTeam Allows Admins to use the Teleport Command
mwhois g_mAllowAdminWhois Allows Admins to use the Whois Command
mstatus g_mAllowAdminStatus Allows Admins to use the Status Command
mslap g_mAllowAdminSlap Allows Admins to use the Slap Command
mempower
munempower
g_mAllowAdminEmpower Allows Admins to use the Empower and UnEmpower Commands
mterminator
munterminator
g_mAllowAdminTerminator Allows Admins to use the Terminator and UnTerminator Commands
mprotect
munprotect
g_mAllowAdminProtect Allows Admins to use the Protect and UnProtect Commands
msilence
munsilence
g_mAllowAdminSilence Allows Admins to use the Silence and UnSilence Commands
mbunny
munbunny
g_mAllowAdminBunny Allows Admins to use the Bunny and UnBunny Commands
mpunish
munpunish
g_mAllowAdminPunish Allows Admins to use the Punish and UnPunish Commands
mallowvote
mdenyvote
g_mAllowAdminVote Allows Admins to use the Vote and DenyVote Commands
msleep
mwake
g_mAllowAdminSleep Allows Admins to use the Sleep and Wake Commands
mrename g_mAllowAdminRename Allows Admins to use the Rename Command
mpsay g_mAllowAdminPSay Allows Admins to use the PSay Command
mshowmotd g_mAllowAdminShowMOTD Allows Admins to use the ShowMOTD Command
mtimescale g_mAllowAdminTimeScale Allows Admins to use the TimeScale Command
mexplode g_mAllowAdminExplode Allows Admins to use the Explode Command
mpsay g_mAllowAdminPSay Allows Admins to use the PSay Command
mhelp g_mAllowAdminHelp Allows Admins to use the Help Command
amlogin g_mAllowAdminLogin Allows Secondary Admins to use the Admin Commands
jklogin g_mAllowKnightLogin Allows Knights to use the Admin Commands




Damage CVars

Commands that can be used to control the damage certain moves do. Note that certain moves have a min and a max damage. The min damage is in the beginning and ending of the move the max damage is usually the middle of the move. Values are interpolated over the whole range of the move. As a rule of thumb the number of hp that will go off is about equal to half of the damage. Standard values are the normal JKII values.
CVar Description
g_mSaberDMGIdle Damage a saber does when idle.
g_mKickDMGModifier Modifier for kick damage. Making this 1 leaves everything the same. Making this 2 does about double kick damage. Making this 0.5 does about half kick damage.
g_mSaberDMGThrow Damage a thrown saber does.
g_mSaberDMGThrowReturn Damage a thrown saber does on it's way back.
g_mSaberDMGRedNormalMin Min damage for normal red slashes.
g_mSaberDMGRedNormalMax Max damage for normal red slashes.
g_mSaberDMGRedDFAMin Min damage for the red Death From Above move.
g_mSaberDMGRedDFAMax Max damage for the red Death From above move.
g_mSaberDMGRedBackMin Min damage for the red backslash move.
g_mSaberDMGRedBackMax Max damage for the red backslash move.
g_mSaberDMGYellowNormal Normal damage for the yellow slash.
g_mSaberDMGYellowOverheadMin Min damage of the yellow downward slash.
g_mSaberDMGYellowOverheadMax Max damage of the yellow downward slash.
g_mSaberDMGYellowBackMin Min damage for the yellow backslash move.
g_mSaberDMGYellowBackMax Max damage for the yellow backslash move.
g_mSaberDMGBlueNormal Normal damage for the blue slash.
g_mSaberDMGBlueLungeMin Min damage for the blue lunge move.
g_mSaberDMGBlueLungeMax Max damage for the blue lunge move.
g_mSaberDMGBlueBackMin Min damage for the blue backstab move.
g_mSaberDMGBlueBackMax Max damage for the blue backstab move.




Message CVars

These CVars are custom messages that can be set for certain commands. This is what players see when a command is executed. Note that some commands allow the use of %s to be replaced with the affected player's name. Also note that in most CVars a \n can be used to insert an enter.
Everyone
[Get's shown when using a command with the all keyword]
Broadcast
[Get's broadcast to everyone but the target of a command]
Target
[Get's broadcast to the target of a command]
g_mMessageUnEmpowerEveryone g_mMessageUnEmpowerBroadcast g_mMessageUnEmpowerTarget
g_mMessageEmpowerEveryone g_mMessageEmpowerBroadcast g_mMessageEmpowerTarget
g_mMessageUnTerminatorEveryone g_mMessageUnTerminatorBroadcast g_mMessageUnTerminatorTarget
g_mMessageTerminatorEveryone g_mMessageTerminatorBroadcast g_mMessageTerminatorTarget
g_mMessageUnProtectEveryone g_mMessageUnProtectBroadcast g_mMessageUnProtectTarget
g_mMessageProtectEveryone g_mMessageProtectBroadcast g_mMessageProtectTarget
g_mMessageUnSilenceEveryone g_mMessageUnSilenceBroadcast g_mMessageUnSilenceTarget
g_mMessageSilenceEveryone g_mMessageSilenceBroadcast g_mMessageSilenceTarget
g_mMessageWakeEveryone g_mMessageWakeBroadcast g_mMessageWakeTarget
g_mMessageSleepEveryone g_mMessageSleepBroadcast g_mMessageSleepTarget
g_mMessageSlapEveryone g_mMessageSlapBroadcast g_mMessageSlapTarget
g_mMessageUnBunnyEveryone g_mMessageUnBunnyBroadcast g_mMessageUnBunnyTarget
g_mMessageBunnyEveryone g_mMessageBunnyBroadcast g_mMessageBunnyTarget
g_mMessageUnPunishEveryone g_mMessageUnPunishBroadcast g_mMessageUnPunishTarget
g_mMessagePunishEveryone g_mMessagePunishBroadcast g_mMessagePunishTarget
g_mMessageTeleEveryone g_mMessageTeleBroadcast g_mMessageTeleTarget
g_mMessageRewardEveryone g_mMessageRewardBroadcast g_mMessageRewardTarget
g_mMessageExplodeTarget g_mMessageExplodeBroadcast g_mMessageExplodeEveryone
g_mMessageForceTeamEveryone g_mMessageForceTeamBroadcast g_mMessageForceTeamTarget
g_mMessageVoteAllowEveryone g_mMessageVoteAllowBroadcast g_mMessageVoteAllowTarget
g_mMessageVoteDenyEveryone g_mMessageVoteDenyBroadcast g_mMessageVoteDenyTarget




Other CVars

CVar Description
g_mAdminPassword The password for the Jedi Academy Trainers.
g_mKnightPassword The password for the Jedi Academy Knights.
g_mPushItems If this is set to 1, Clients are able to Push/Pull all items.
g_mDebugCheats If this is set to 1, Clients are able to access hidden features in JK2.
g_mGiveAdmin If this is set to 1, Rcon can give clients a level of admin access.
g_mBlockThrow If this is set to 1, Clients are able to lose there thrown saber if blocked by opponent.
g_mDuelStats If this is set to 1, Duelers are able to see stats after private duels.
g_mAllowBlack If this is set to 1, Clients can use the color black for names.
g_mAllowTeleFlag Default is 1, If this is set to 0, Clients cannot use Teleport during CTF and CTY gameplay.
g_mAllowVoteKick If this is set to 1, Clients can use the vote for kicking clients.
g_mAllowVoteGameType If this is set to 1, Clients can use the vote for changing gametypes.
g_mAllowVoteMap If this is set to 1, Clients can use the vote for map changes.
g_mFailedVoteDelay Default is 1 minute, The delay time between a failed vote and new vote can be made.
g_mNameChange Default is 1 minute, Clients can only change their name once at this cVar's given time.
g_mAllowBotLimit If this is set to 1, Server Admin can set the g_mMaxBots and g_mMinHumans on the server.
g_mMaxBots Set to any number of max bots you want on your server. When g_mMinHumans is reached or excelled, they will be kicked automatically.
g_mMinHumans The number of Humans on the server before a bot is kicked.
g_mAdminGun If this is set to 1, All Admins can use the crosshair to aim and execute admin commands on the target.
g_mWelcomeMessage Shows custom welcome message in the console.
g_mHelpInfo This info aids clients on the server.
g_mLoggedInAdmin This displays custom message to client when they log in as an admin.
g_mNotLoggedInAdmin This displays custom message to client when they fail to log in as an admin and attempt to use a command.
g_mLoggedInKnight This displays custom message to client when they log in as an knight.
g_mNotLoggedInKnight This displays custom message to client when they fail to log in as an knight and attempt to use a command.
g_mMOTDContents The contents of the message of the day.
g_mMOTDShowTime Default is 3 seconds, The time to show the message of the day in seconds.
g_mBunnyJumpPowerXY Sideward power of bunny jump.
g_mBunnyJumpPowerZ Upwards power of bunny jump.
g_mBunnyJumpChance Chance that someone who is a bunny will jump.
g_mSlapKnockDownTime Default is 3 seconds, Time someone who is slapped will lay on the ground in seconds.
g_mSlapPowerXY Sideward power of slap.
g_mSlapPowerZ Upwards power of slap.
g_mEmpowerShake If this is set to 1 then there will be an 'earthquake' whenever someone uses the mempower or mterminator command.
g_mDoubleSabersForAll values
0: No double sabers except for empowered users.
1: Double sabers for all users.
2: Switch to single saber from off. Switch to double saber from single saber. Switch to off from double saber.
g_mDoubleSaberEmpowered If this CVar is 1 then empowered client gets double bladed saber.
g_mPlayerDuelShield If this CVar is -1 then nothing changes. If it is between 0 and 200 on a duel start the players stats will be saved and the hp will become 100 and the shield will become g_mPlayerDuelShield units. After the duel the stats of the remaining player is restored. This should make duels a bit more fair.

Please see the enclosed academy.cfg file for an example.

Help for NPC commands

Command Type Alignment Weapon Model Sound Health Owner
g2animent
0 = StormTrooper
1 = Rodian
2 = Jan
3 = Custom
1 = Bad
2 = Good
8 = Static NPC, Attacks ONLY when attacked
9 = NPC attacks ALL but Owner
0 = None
1 = Stun Baton
2 = LightSaber
3 = Bryar Pistol
4 = Blaster
5 = Disruptor
6 = Bowcaster
7 = Repeater
8 = Demp2
9 = Flechette
10 = Rocket Launcher
11 = Thermal Detonator
12 = Trip Mine
13 = Det Pack
Model path can be found in pk0.pk3 for use.
(example: /models
/players/rodian/model.glm)
Sound path can be found in pk0.pk3 for use.
(example: /sound/chars/rodian/misc)
0 - 999
Playername or ID#
g2platoon
0 = StormTrooper
1 = Rodian
2 = Jan
3 = Custom
1 = Bad
2 = Good
8 = Static NPC, Attacks ONLY when attacked
9 = NPC attacks ALL but Owner
0 = None
1 = Stun Baton
2 = LightSaber
3 = Bryar Pistol
4 = Blaster
5 = Disruptor
6 = Bowcaster
7 = Repeater
8 = Demp2
9 = Flechette
10 = Rocket Launcher
11 = Thermal Detonator
12 = Trip Mine
13 = Det Pack
Model path can be found in pk0.pk3 for use.
(example: /models
/players/rodian/model.glm)
Sound path can be found in pk0.pk3 for use.
(example: /sound/chars/rodian/misc)
None
None




Known Issues

  • When changing some message CVars you can use '%s' to add the player name to the message. When changing the message in the console however, the '%' becomes a '.' so the name won't be displayed. A workaround for this is to only change the values in the config and rerun it.
  • The am/jk commands need a '/' or '\' (without quotes) in front of them when executing. Else the command will be shown as a talk command to all players.
  • When sitting, crossing arms, kneeling, begging, surrender, or waiting on someone's head; Or on moving platforms a player will remain in the air and not fall down. You can use g_mOnlySitOnGround to only allow players to sit on the ground thus alleviating the problem.
  • When sitting, crossing arms, kneeling, begging, surrender, or waiting - the player will become invulnerable to attack, this is due to the nature of how these animations have been implemented and can not be changed unless client side code is changed.
  • When running a Non-Dedicated Server (Listen Server), and using the \map_restart command the server crashes - Workaround: Place the VM folder inside dummy.pk3 and reload the mod. Clients will then need to download the mod.
  • If you tend to have trouble with the Mod, be sure to clean out all previous files the mod creates. -jk2mpconfig.cfg and games.log: These files are not compatible with previous version of this mod.


Special Thanks

My thanks go out to the following people:
  • RavenSoft™ for making a truly great game and sharing the source.
  • Thanks to Brian Huxley and the Jedi Academy for their great support.
  • Lee Oattes and Marker0077. You have been a great help guys!
  • The JK2 players for making this mod so popular.


Other Cool Mods



Disclaimer

Use this mod on your own risk. I take no responsibility what so ever for anything that might happen when using it. The mod has been primarily tested in all modes and gameplays. The mod also has been tested on both Linux and Windows servers. You do not have permission to decompile or modify this mod in any form or you will be immediatly reported to Raven and brought to justice. This mod may not be distributed without including an unaltered copy of this readme.