Skip to content

Commit

Permalink
Disable dimension cvar if MVAPI is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
TriForceX committed May 26, 2021
1 parent a661d40 commit caa3a5d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ The version control structure on this project is `<mayor>.<minor>.<patch>` where

---

## 0.14.5
- Changed forcePlugin cvar to pluginRequired
- Added recommended client options pop-up
- Added slider integer input to be used on menus
- Added option to show player names above their head
- Added JKA chat history option to menus
- Improved crosshair names hidden on player labels
- Added missing check for manually disabled map items
- Disable dimension cvar if MVAPI is not available

## 0.14.4
- Added custom map cycle from file only
- Delay bots on custom game type config load
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Game modification for **Jedi Knight II: Jedi Outcast Multiplayer**. The main goa

<div align="center">

[![version](https://img.shields.io/badge/Current%20Version-0.14.4-brightgreen.svg)](https://github.com/TriForceX/JediKnightPlus/releases)
[![version](https://img.shields.io/badge/Current%20Version-0.14.5-brightgreen.svg)](https://github.com/TriForceX/JediKnightPlus/releases)
[![Wiki](https://img.shields.io/badge/Setup%20%26%20Guides-Wiki-blueviolet.svg)](https://github.com/TriForceX/JediKnightPlus/wiki)
[![Discord](https://img.shields.io/badge/Discord%20Chat-Join-7289DA.svg?logo=discord&longCache=true&style=flat)](https://discord.gznetwork.com/jkmod)
[![stars](https://img.shields.io/github/stars/TriForceX/JediKnightPlus.svg?label=Project%20Stars)](https://github.com/TriForceX/JediKnightPlus/stargazers)
Expand Down Expand Up @@ -138,6 +138,7 @@ The next list is all *features* from the original **Jedi Knight Plus** private m
- [x] Display bacta indicator on belt (3D model)
- [ ] Display current weapon in back (3D model)
- [x] Display race timer on race dimension
- [x] Display player names above their head
- [x] Enable custom item indicator on hud
- [ ] Enable push/pull force effect color to match with the color of lightsaber
- [ ] Enable the color for the second blade with dual blade lightsabers
Expand Down
7 changes: 7 additions & 0 deletions jkplus/game/jk_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ void JKMod_G_RegisterCvars(void)
}
}

// Disable dimensions if mvapi not available
if (!mvapi && jkcvar_altDimension.integer != 0)
{
trap_Cvar_Set("jk_altDimension", "0");
G_Printf("Warning: Dimensions has been disabled (MVAPI not available).\n");
}

// Launch original register cvars function
BaseJK2_G_RegisterCvars();
}
Expand Down
2 changes: 1 addition & 1 deletion jkplus/game/jk_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ By Tr!Force. Work copyrighted (C) with holder attribution 2005 - 2020
// Version
#define JK_MAJOR "0"
#define JK_MINOR "14"
#define JK_PATCH "4"
#define JK_PATCH "5"

// Public
#define JK_VERSION JK_SHORTNAME " v" JK_MAJOR "." JK_MINOR "." JK_PATCH
Expand Down

0 comments on commit caa3a5d

Please sign in to comment.