mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-03-13 21:52:09 +00:00
Merge pull request #64 from petr666/feature/various-fixes
Various fixes
This commit is contained in:
commit
11f364f440
4 changed files with 11 additions and 5 deletions
|
@ -1024,13 +1024,11 @@ static void CG_RegisterGraphics( void ) {
|
|||
cgs.media.medalAssist = trap_R_RegisterShaderNoMip( "medal_assist" );
|
||||
cgs.media.medalCapture = trap_R_RegisterShaderNoMip( "medal_capture" );
|
||||
|
||||
|
||||
memset( cg_items, 0, sizeof( cg_items ) );
|
||||
memset( cg_weapons, 0, sizeof( cg_weapons ) );
|
||||
|
||||
// only register the items that the server says we need
|
||||
Q_strncpyz(items, CG_ConfigString(CS_ITEMS), sizeof(items));
|
||||
|
||||
for ( i = 1 ; i < bg_numItems ; i++ ) {
|
||||
if ( items[ i ] == '1' || cg_buildScript.integer ) {
|
||||
CG_LoadingItem( i );
|
||||
|
@ -1038,6 +1036,14 @@ static void CG_RegisterGraphics( void ) {
|
|||
}
|
||||
}
|
||||
|
||||
// register all weapons (as they are used on weapon wheel selector)
|
||||
for (int weaponId = 1; weaponId < WP_NUM_WEAPONS; ++weaponId) {
|
||||
if (weaponId == WP_GRAPPLING_HOOK) {
|
||||
continue;
|
||||
}
|
||||
CG_RegisterWeapon(weaponId);
|
||||
}
|
||||
|
||||
// wall marks
|
||||
cgs.media.bulletMarkShader = trap_R_RegisterShader( "gfx/damage/bullet_mrk" );
|
||||
cgs.media.burnMarkShader = trap_R_RegisterShader( "gfx/damage/burn_med_mrk" );
|
||||
|
|
|
@ -200,7 +200,7 @@ static void Controls3_MenuEvent( void* ptr, int notification ) {
|
|||
} else {
|
||||
trap_Cvar_Set("vr_button_map_RTHUMBBACK", "weapprev"); // previous weapon
|
||||
}
|
||||
trap_Cvar_Set("vr_button_map_PRIMARYGRIP", ""); // unmapped
|
||||
trap_Cvar_Set("vr_button_map_PRIMARYGRIP", "+alt"); // switch to alt layout
|
||||
trap_Cvar_Set("vr_button_map_PRIMARYTHUMBSTICK", ""); // unmapped
|
||||
trap_Cvar_Set("vr_button_map_RTHUMBFORWARD_ALT", ""); // unmapped
|
||||
trap_Cvar_Set("vr_button_map_RTHUMBRIGHT_ALT", ""); // unmapped
|
||||
|
|
|
@ -3215,7 +3215,7 @@ static void UI_Update(const char *name) {
|
|||
} else {
|
||||
trap_Cvar_Set("vr_button_map_RTHUMBBACK", "weapprev"); // previous weapon
|
||||
}
|
||||
trap_Cvar_Set("vr_button_map_PRIMARYGRIP", ""); // unmapped
|
||||
trap_Cvar_Set("vr_button_map_PRIMARYGRIP", "+alt"); // switch to alt layout
|
||||
trap_Cvar_Set("vr_button_map_PRIMARYTHUMBSTICK", ""); // unmapped
|
||||
trap_Cvar_Set("vr_button_map_RTHUMBFORWARD_ALT", ""); // unmapped
|
||||
trap_Cvar_Set("vr_button_map_RTHUMBRIGHT_ALT", ""); // unmapped
|
||||
|
|
|
@ -153,7 +153,7 @@ void VR_InitCvars( void )
|
|||
} else {
|
||||
Cvar_Get ("vr_button_map_RTHUMBBACK", "weapprev", CVAR_ARCHIVE); // previous weapon
|
||||
}
|
||||
Cvar_Get ("vr_button_map_PRIMARYGRIP", "", CVAR_ARCHIVE); // unmapped
|
||||
Cvar_Get ("vr_button_map_PRIMARYGRIP", "+alt", CVAR_ARCHIVE); // switch to alt layout
|
||||
Cvar_Get ("vr_button_map_PRIMARYTHUMBSTICK", "", CVAR_ARCHIVE); // unmapped
|
||||
Cvar_Get ("vr_button_map_RTHUMBFORWARD_ALT", "", CVAR_ARCHIVE); // unmapped
|
||||
Cvar_Get ("vr_button_map_RTHUMBRIGHT_ALT", "", CVAR_ARCHIVE); // unmapped
|
||||
|
|
Loading…
Reference in a new issue