better haptic for pickups

This commit is contained in:
Simon 2022-02-23 00:00:37 +00:00
parent ddd73940df
commit 32e587c3b2

View file

@ -763,7 +763,7 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) {
if ( item->giType == IT_POWERUP || item->giType == IT_TEAM) {
trap_S_StartSound (NULL, es->number, CHAN_AUTO, cgs.media.n_healthSound );
if ( clientNum == cg.predictedPlayerState.clientNum ) {
trap_HapticEvent("pickup_weapon", 0, 0, 100, 0, 0);
trap_HapticEvent("pickup_weapon", 0, 0, 40, 0, 0);
}
} else if (item->giType == IT_PERSISTANT_POWERUP) {
#ifdef MISSIONPACK
@ -783,12 +783,12 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) {
}
#endif
if ( clientNum == cg.predictedPlayerState.clientNum ) {
trap_HapticEvent("pickup_weapon", 0, 0, 100, 0, 0);
trap_HapticEvent("pickup_weapon", 0, 0, 30, 0, 0);
}
} else {
trap_S_StartSound (NULL, es->number, CHAN_AUTO, trap_S_RegisterSound( item->pickup_sound, qfalse ) );
if ( clientNum == cg.predictedPlayerState.clientNum ) {
trap_HapticEvent("pickup_shield", 0, 0, 30, 0, 0);
trap_HapticEvent("RTCWQuest:pickup_item", 0, 0, 20, 0, 0);
}
}