/dports/games/openjk/OpenJK-07675e2/codemp/game/ |
H A D | WalkerNPC.c | 109 pVeh->m_ucmd.forwardmove || pVeh->m_ucmd.upmove > 0 ) in ProcessMoveCommands() 111 if ( pVeh->m_ucmd.forwardmove > 0 && speedInc ) in ProcessMoveCommands() 115 else if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 146 if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 148 pVeh->m_ucmd.forwardmove = 0; in ProcessMoveCommands() 150 if ( pVeh->m_ucmd.upmove < 0 ) in ProcessMoveCommands() 152 pVeh->m_ucmd.upmove = 0; in ProcessMoveCommands() 155 pVeh->m_ucmd.rightmove = 0; in ProcessMoveCommands() 303 if ( pVeh->m_ucmd.rightmove < 0 ) in ProcessOrientCommands() 307 else if ( pVeh->m_ucmd.rightmove > 0 ) in ProcessOrientCommands() [all …]
|
H A D | AnimalNPC.c | 139 (pVeh->m_ucmd.buttons & BUTTON_ALT_ATTACK) && pVeh->m_pVehicleInfo->turboSpeed ) in ProcessMoveCommands() 170 pVeh->m_ucmd.forwardmove || pVeh->m_ucmd.upmove > 0 ) in ProcessMoveCommands() 172 if ( pVeh->m_ucmd.forwardmove > 0 && speedInc ) in ProcessMoveCommands() 176 else if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 207 if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 209 pVeh->m_ucmd.forwardmove = 0; in ProcessMoveCommands() 211 if ( pVeh->m_ucmd.upmove < 0 ) in ProcessMoveCommands() 213 pVeh->m_ucmd.upmove = 0; in ProcessMoveCommands() 514 qboolean Attacking = (HasWeapon && !!(pVeh->m_ucmd.buttons&BUTTON_ATTACK)); in AnimateRiders() 515 qboolean Right = (pVeh->m_ucmd.rightmove>0); in AnimateRiders() [all …]
|
H A D | FighterNPC.c | 363 if ( pVeh->m_ucmd.upmove > 0 ) in ProcessMoveCommands() 476 pVeh->m_ucmd.forwardmove = 0; in ProcessMoveCommands() 494 || pVeh->m_ucmd.upmove < 0 ) in ProcessMoveCommands() 611 pVeh->m_ucmd.forwardmove = 0; in ProcessMoveCommands() 613 if ( pVeh->m_ucmd.upmove < 0 ) in ProcessMoveCommands() 615 pVeh->m_ucmd.upmove = 0; in ProcessMoveCommands() 630 && pVeh->m_ucmd.rightmove ) in ProcessMoveCommands() 834 pVeh->m_ucmd.upmove = 0; in FighterDamageRoutine() 879 pVeh->m_ucmd.upmove = 0; in FighterDamageRoutine() 1617 pVeh->m_ucmd.upmove = 0; in ProcessOrientCommands() [all …]
|
H A D | SpeederNPC.c | 170 if (pVeh->m_ucmd.forwardmove>=0 ) in ProcessMoveCommands() 179 pVeh->m_ucmd.forwardmove<0 && in ProcessMoveCommands() 208 pVeh->m_ucmd.forwardmove || pVeh->m_ucmd.upmove > 0 ) in ProcessMoveCommands() 210 if ( pVeh->m_ucmd.forwardmove > 0 && speedInc ) in ProcessMoveCommands() 214 else if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 417 if ( pVeh->m_ucmd.forwardmove < 0 && !(pVeh->m_ulFlags & VEH_SLIDEBREAKING)) in AnimateRiders() 424 qboolean Attacking = (HasWeapon && !!(pVeh->m_ucmd.buttons&BUTTON_ATTACK)); in AnimateRiders() 427 qboolean Right = (pVeh->m_ucmd.rightmove>0); in AnimateRiders() 428 qboolean Left = (pVeh->m_ucmd.rightmove<0); in AnimateRiders() 514 else if (Left && pVeh->m_ucmd.buttons&BUTTON_USE) in AnimateRiders() [all …]
|
H A D | g_vehicles.c | 403 memset( &pVeh->m_ucmd, 0, sizeof( usercmd_t ) ); in Board() 711 memset( &pVeh->m_ucmd, 0, sizeof( usercmd_t ) ); in Eject() 1148 memset( &pVeh->m_ucmd, 0, sizeof( usercmd_t ) ); in Initialize() 1439 memcpy( &parent->client->pers.cmd, &pVeh->m_ucmd, sizeof( usercmd_t ) ); in Update() 1440 pVeh->m_ucmd.buttons &= ~(BUTTON_TALK);//|BUTTON_GESTURE); //don't want some of these buttons in Update() 1469 else if ( (pVeh->m_ucmd.buttons&BUTTON_USE_HOLDABLE) ) in Update() 1514 pVeh->m_ucmd.buttons = 0; in Update() 1515 pVeh->m_ucmd.forwardmove = 0; in Update() 1516 pVeh->m_ucmd.rightmove = 0; in Update() 1517 pVeh->m_ucmd.upmove = 0; in Update()
|
H A D | g_active.c | 1910 memcpy(&veh->m_pVehicle->m_ucmd, &ent->client->pers.cmd, sizeof(usercmd_t)); in ClientThink_real() 1911 if ( veh->m_pVehicle->m_ucmd.buttons & BUTTON_TALK ) in ClientThink_real() 1913 veh->m_pVehicle->m_ucmd.buttons = BUTTON_TALK; in ClientThink_real() 1914 veh->m_pVehicle->m_ucmd.forwardmove = 0; in ClientThink_real() 1915 veh->m_pVehicle->m_ucmd.rightmove = 0; in ClientThink_real() 1916 veh->m_pVehicle->m_ucmd.upmove = 0; in ClientThink_real() 3025 if ((level.time - ent->m_pVehicle->m_ucmd.serverTime) > 2000) in ClientThink_real() 3027 ent->m_pVehicle->m_ucmd.serverTime = level.time; in ClientThink_real() 3032 memcpy(&pmove.cmd, &ent->m_pVehicle->m_ucmd, sizeof(usercmd_t)); in ClientThink_real() 3512 …hink(ent->client->ps.m_iVehicleNum, &g_entities[ent->client->ps.m_iVehicleNum].m_pVehicle->m_ucmd); in ClientThink_real()
|
H A D | bg_vehicles.h | 547 usercmd_t m_ucmd; member
|
H A D | bg_pmove.c | 9799 pm->cmd.upmove = veh->m_pVehicle->m_ucmd.upmove = 127; in PM_VehForcedTurning() 9800 pm->cmd.forwardmove = veh->m_pVehicle->m_ucmd.forwardmove = 0; in PM_VehForcedTurning() 9801 pm->cmd.rightmove = veh->m_pVehicle->m_ucmd.rightmove = 0; in PM_VehForcedTurning() 9846 pm->cmd.upmove = veh->m_pVehicle->m_ucmd.upmove = 127; in PM_VehFaceHyperspacePoint() 9847 pm->cmd.forwardmove = veh->m_pVehicle->m_ucmd.forwardmove = 0; in PM_VehFaceHyperspacePoint() 9848 pm->cmd.rightmove = veh->m_pVehicle->m_ucmd.rightmove = 0; in PM_VehFaceHyperspacePoint() 9929 pm->cmd.upmove = veh->m_pVehicle->m_ucmd.upmove = 127; in PM_VehFaceHyperspacePoint() 9930 pm->cmd.forwardmove = veh->m_pVehicle->m_ucmd.forwardmove = 0; in PM_VehFaceHyperspacePoint() 9931 pm->cmd.rightmove = veh->m_pVehicle->m_ucmd.rightmove = 0; in PM_VehFaceHyperspacePoint() 10951 PM_VehicleViewAngles(self->playerState, veh, &veh->m_pVehicle->m_ucmd); in PmoveSingle() [all …]
|
H A D | NPC.c | 1854 memcpy(&self->m_pVehicle->m_ucmd, &self->client->pers.cmd, sizeof(usercmd_t)); in NPC_Think()
|
/dports/games/openjk/OpenJK-07675e2/code/game/ |
H A D | FighterNPC.cpp | 462 if ( pVeh->m_ucmd.upmove > 0 ) in ProcessMoveCommands() 597 pVeh->m_ucmd.forwardmove = 0; in ProcessMoveCommands() 615 || pVeh->m_ucmd.upmove < 0 ) in ProcessMoveCommands() 732 pVeh->m_ucmd.forwardmove = 0; in ProcessMoveCommands() 736 pVeh->m_ucmd.upmove = 0; in ProcessMoveCommands() 742 pVeh->m_ucmd.rightmove = 0; in ProcessMoveCommands() 758 && pVeh->m_ucmd.rightmove ) in ProcessMoveCommands() 962 pVeh->m_ucmd.upmove = 0; in FighterDamageRoutine() 1007 pVeh->m_ucmd.upmove = 0; in FighterDamageRoutine() 1500 pVeh->m_ucmd.upmove = 0; in ProcessOrientCommands() [all …]
|
H A D | WalkerNPC.cpp | 188 pVeh->m_ucmd.forwardmove || pVeh->m_ucmd.upmove > 0 ) in ProcessMoveCommands() 190 if ( pVeh->m_ucmd.forwardmove > 0 && speedInc ) in ProcessMoveCommands() 194 else if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 225 if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 227 pVeh->m_ucmd.forwardmove = 0; in ProcessMoveCommands() 229 if ( pVeh->m_ucmd.upmove < 0 ) in ProcessMoveCommands() 231 pVeh->m_ucmd.upmove = 0; in ProcessMoveCommands() 234 pVeh->m_ucmd.rightmove = 0; in ProcessMoveCommands() 352 if ( pVeh->m_ucmd.rightmove < 0 ) in ProcessOrientCommands() 356 else if ( pVeh->m_ucmd.rightmove > 0 ) in ProcessOrientCommands() [all …]
|
H A D | AnimalNPC.cpp | 238 (pVeh->m_ucmd.buttons & BUTTON_ALT_ATTACK) && pVeh->m_pVehicleInfo->turboSpeed ) in ProcessMoveCommands() 279 pVeh->m_ucmd.forwardmove || pVeh->m_ucmd.upmove > 0 ) in ProcessMoveCommands() 281 if ( pVeh->m_ucmd.forwardmove > 0 && speedInc ) in ProcessMoveCommands() 285 else if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 316 if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 318 pVeh->m_ucmd.forwardmove = 0; in ProcessMoveCommands() 320 if ( pVeh->m_ucmd.upmove < 0 ) in ProcessMoveCommands() 322 pVeh->m_ucmd.upmove = 0; in ProcessMoveCommands() 798 bool Attacking = (HasWeapon && !!(pVeh->m_ucmd.buttons&BUTTON_ATTACK)); in AnimateRiders() 799 bool Right = (pVeh->m_ucmd.rightmove>0); in AnimateRiders() [all …]
|
H A D | SpeederNPC.cpp | 204 if (pVeh->m_ucmd.rightmove && !pVeh->m_fStrafeTime) in Update() 211 else if (!pVeh->m_ucmd.rightmove && pVeh->m_fStrafeTime) in Update() 426 if (pVeh->m_ucmd.forwardmove>=0 in ProcessMoveCommands() 439 pVeh->m_ucmd.forwardmove<0 && in ProcessMoveCommands() 469 pVeh->m_ucmd.forwardmove || pVeh->m_ucmd.upmove > 0 ) in ProcessMoveCommands() 471 if ( pVeh->m_ucmd.forwardmove > 0 && speedInc ) in ProcessMoveCommands() 475 else if ( pVeh->m_ucmd.forwardmove < 0 ) in ProcessMoveCommands() 847 bool Right = (pVeh->m_ucmd.rightmove>0); in AnimateRiders() 848 bool Left = (pVeh->m_ucmd.rightmove<0); in AnimateRiders() 991 else if (Left && pVeh->m_ucmd.buttons&BUTTON_USE) in AnimateRiders() [all …]
|
H A D | g_vehicles.h | 625 usercmd_t m_ucmd; member 716 saved_game.write<>(m_ucmd); in sg_export() 763 saved_game.read<>(m_ucmd); in sg_import()
|
H A D | g_vehicles.cpp | 777 memset( &pVeh->m_ucmd, 0, sizeof( usercmd_t ) ); in Board() 1135 memset( &pVeh->m_ucmd, 0, sizeof( usercmd_t ) ); in Eject() 1613 memset( &pVeh->m_ucmd, 0, sizeof( usercmd_t ) ); in Initialize() 1977 memcpy( &parent->client->pers.cmd, &pVeh->m_ucmd, sizeof( usercmd_t ) ); in Update() 1978 pVeh->m_ucmd.buttons &= ~(BUTTON_TALK);//|BUTTON_GESTURE); //don't want some of these buttons in Update() 1981 memcpy( &pVeh->m_ucmd, pUmcd, sizeof( usercmd_t ) ); in Update() 2013 else if ( (pVeh->m_ucmd.buttons&BUTTON_USE_HOLDABLE) ) in Update() 2077 pVeh->m_ucmd.buttons = 0; in Update() 2078 pVeh->m_ucmd.forwardmove = 0; in Update() 2079 pVeh->m_ucmd.rightmove = 0; in Update() [all …]
|
H A D | g_active.cpp | 5286 if ((pPlayerVeh->m_ucmd.rightmove!=0) && in ClientThink_real() 5288 (pPlayerVeh->m_ucmd.buttons&BUTTON_USE) in ClientThink_real() 5293 cg.overrides.thirdPersonAngle = (pPlayerVeh->m_ucmd.rightmove>0)?(20):(-20); in ClientThink_real()
|
H A D | bg_pmove.cpp | 14697 pm->cmd.upmove = veh->m_pVehicle->m_ucmd.upmove = 127; in PM_VehForcedTurning() 14698 pm->cmd.forwardmove = veh->m_pVehicle->m_ucmd.forwardmove = 0; in PM_VehForcedTurning() 14699 pm->cmd.rightmove = veh->m_pVehicle->m_ucmd.rightmove = 0; in PM_VehForcedTurning()
|
/dports/games/openjk/OpenJK-07675e2/codemp/cgame/ |
H A D | cg_predict.c | 1296 trap->GetUserCmd( cmdNum, &veh->m_pVehicle->m_ucmd ); in CG_PredictPlayerState() 1298 if ( veh->m_pVehicle->m_ucmd.buttons & BUTTON_TALK ) in CG_PredictPlayerState() 1300 veh->m_pVehicle->m_ucmd.buttons = BUTTON_TALK; in CG_PredictPlayerState() 1301 veh->m_pVehicle->m_ucmd.forwardmove = 0; in CG_PredictPlayerState() 1302 veh->m_pVehicle->m_ucmd.rightmove = 0; in CG_PredictPlayerState() 1303 veh->m_pVehicle->m_ucmd.upmove = 0; in CG_PredictPlayerState() 1308 memcpy(&cg_vehPmove.cmd, &veh->m_pVehicle->m_ucmd, sizeof(usercmd_t)); in CG_PredictPlayerState()
|