mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-17 01:21:47 +00:00
better haptic for pickups
This commit is contained in:
parent
ddd73940df
commit
32e587c3b2
1 changed files with 3 additions and 3 deletions
|
@ -763,7 +763,7 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) {
|
||||||
if ( item->giType == IT_POWERUP || item->giType == IT_TEAM) {
|
if ( item->giType == IT_POWERUP || item->giType == IT_TEAM) {
|
||||||
trap_S_StartSound (NULL, es->number, CHAN_AUTO, cgs.media.n_healthSound );
|
trap_S_StartSound (NULL, es->number, CHAN_AUTO, cgs.media.n_healthSound );
|
||||||
if ( clientNum == cg.predictedPlayerState.clientNum ) {
|
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) {
|
} else if (item->giType == IT_PERSISTANT_POWERUP) {
|
||||||
#ifdef MISSIONPACK
|
#ifdef MISSIONPACK
|
||||||
|
@ -783,12 +783,12 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if ( clientNum == cg.predictedPlayerState.clientNum ) {
|
if ( clientNum == cg.predictedPlayerState.clientNum ) {
|
||||||
trap_HapticEvent("pickup_weapon", 0, 0, 100, 0, 0);
|
trap_HapticEvent("pickup_weapon", 0, 0, 30, 0, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
trap_S_StartSound (NULL, es->number, CHAN_AUTO, trap_S_RegisterSound( item->pickup_sound, qfalse ) );
|
trap_S_StartSound (NULL, es->number, CHAN_AUTO, trap_S_RegisterSound( item->pickup_sound, qfalse ) );
|
||||||
if ( clientNum == cg.predictedPlayerState.clientNum ) {
|
if ( clientNum == cg.predictedPlayerState.clientNum ) {
|
||||||
trap_HapticEvent("pickup_shield", 0, 0, 30, 0, 0);
|
trap_HapticEvent("RTCWQuest:pickup_item", 0, 0, 20, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue