mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-30 16:00:55 +00:00
Fix missing melee icon in JKO
and don't draw crosshair when melee active
This commit is contained in:
parent
468e7b23a1
commit
9efd9ed081
4 changed files with 7 additions and 0 deletions
|
@ -1894,6 +1894,7 @@ static void CG_DrawCrosshair3D(int type) // 0 - force, 1 - weapons
|
|||
}
|
||||
|
||||
if ( type == 1 && (cg.snap->ps.weapon == WP_NONE ||
|
||||
cg.snap->ps.weapon == WP_MELEE ||
|
||||
cg.snap->ps.weapon == WP_SABER ||
|
||||
cg.snap->ps.weapon == WP_STUN_BATON ||
|
||||
cg.snap->ps.weapon == WP_THERMAL ))
|
||||
|
|
|
@ -116,6 +116,12 @@ void CG_RegisterWeapon( int weaponNum ) {
|
|||
weaponInfo->weaponMidpoint[i] = mins[i] + 0.5 * ( maxs[i] - mins[i] );
|
||||
}
|
||||
|
||||
//Bit of a hack - default weapons.dat on JK2 is missing the melee icon!
|
||||
if (weaponNum == WP_MELEE)
|
||||
{
|
||||
strcpy((char *)weaponData[weaponNum].weaponIcon, "gfx/hud/w_icon_melee");
|
||||
}
|
||||
|
||||
// setup the shader we will use for the icon
|
||||
if (weaponData[weaponNum].weaponIcon[0])
|
||||
{
|
||||
|
|
BIN
z_vr_assets_jko/gfx/hud/w_icon_melee.tga
Normal file
BIN
z_vr_assets_jko/gfx/hud/w_icon_melee.tga
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
BIN
z_vr_assets_jko/gfx/hud/w_icon_melee_na.tga
Normal file
BIN
z_vr_assets_jko/gfx/hud/w_icon_melee_na.tga
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
Loading…
Reference in a new issue