mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 16:21:50 +01:00
Merge remote-tracking branch 'origin/miami' into VC/ControllerMenu
* origin/miami: fix clouds Use our synonyms for attack anims again Detect joystick menu for XInput reorganize shaders; use modulate flag; update librw fix generic.txd crash Use original animation names from VCS # Conflicts: # src/core/MenuScreensCustom.cpp
This commit is contained in:
commit
b6af7393e8
@ -20,216 +20,216 @@ CAnimBlendAssocGroup *CAnimManager::ms_aAnimAssocGroups;
|
|||||||
CLinkList<CAnimBlendHierarchy*> CAnimManager::ms_animCache;
|
CLinkList<CAnimBlendHierarchy*> CAnimManager::ms_animCache;
|
||||||
|
|
||||||
AnimAssocDesc aStdAnimDescs[] = {
|
AnimAssocDesc aStdAnimDescs[] = {
|
||||||
{ ANIM_WALK, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_WALK },
|
{ ANIM_STD_WALK, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_WALK },
|
||||||
{ ANIM_RUN, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_WALK },
|
{ ANIM_STD_RUN, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_WALK },
|
||||||
{ ANIM_SPRINT, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_WALK },
|
{ ANIM_STD_RUNFAST, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_WALK },
|
||||||
{ ANIM_IDLE_STANCE, ASSOC_REPEAT },
|
{ ANIM_STD_IDLE, ASSOC_REPEAT },
|
||||||
{ ANIM_WALK_START, ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_STARTWALK, ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_RUN_STOP, ASSOC_DELETEFADEDOUT | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_RUNSTOP1, ASSOC_DELETEFADEDOUT | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_RUN_STOP_R, ASSOC_DELETEFADEDOUT | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_RUNSTOP2, ASSOC_DELETEFADEDOUT | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_IDLE_CAM, ASSOC_REPEAT | ASSOC_PARTIAL },
|
{ ANIM_STD_IDLE_CAM, ASSOC_REPEAT | ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_HBHB, ASSOC_REPEAT | ASSOC_PARTIAL },
|
{ ANIM_STD_IDLE_HBHB, ASSOC_REPEAT | ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_TIRED, ASSOC_REPEAT },
|
{ ANIM_STD_IDLE_TIRED, ASSOC_REPEAT },
|
||||||
{ ANIM_IDLE_ARMED, ASSOC_REPEAT | ASSOC_PARTIAL },
|
{ ANIM_STD_IDLE_BIGGUN, ASSOC_REPEAT | ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_CHAT, ASSOC_REPEAT | ASSOC_PARTIAL },
|
{ ANIM_STD_CHAT, ASSOC_REPEAT | ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_TAXI, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_HAILTAXI, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_KO_SHOT_FRONT1, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
{ ANIM_STD_KO_FRONT, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SHOT_FRONT2, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
{ ANIM_STD_KO_LEFT, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SHOT_FRONT3, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
{ ANIM_STD_KO_BACK, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SHOT_FRONT4, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
{ ANIM_STD_KO_RIGHT, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SHOT_FACE, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
{ ANIM_STD_KO_SHOT_FACE, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SHOT_STOM, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_KO_SHOT_STOMACH, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_KO_SHOT_ARML, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
{ ANIM_STD_KO_SHOT_ARM_L, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SHOT_ARMR, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
{ ANIM_STD_KO_SHOT_ARM_R, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SHOT_LEGL, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_KO_SHOT_LEG_L, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_KO_SHOT_LEGR, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_KO_SHOT_LEG_R, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_KD_LEFT, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
{ ANIM_STD_SPINFORWARD_LEFT, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
||||||
{ ANIM_KD_RIGHT, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
{ ANIM_STD_SPINFORWARD_RIGHT, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SKID_FRONT, ASSOC_PARTIAL },
|
{ ANIM_STD_HIGHIMPACT_FRONT, ASSOC_PARTIAL },
|
||||||
{ ANIM_KO_SPIN_R, ASSOC_PARTIAL },
|
{ ANIM_STD_HIGHIMPACT_LEFT, ASSOC_PARTIAL },
|
||||||
{ ANIM_KO_SKID_BACK, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
{ ANIM_STD_HIGHIMPACT_BACK, ASSOC_PARTIAL | ASSOC_FRONTAL },
|
||||||
{ ANIM_KO_SPIN_L, ASSOC_PARTIAL },
|
{ ANIM_STD_HIGHIMPACT_RIGHT, ASSOC_PARTIAL },
|
||||||
{ ANIM_SHOT_FRONT_PARTIAL, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
{ ANIM_STD_HITBYGUN_FRONT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
||||||
{ ANIM_SHOT_LEFT_PARTIAL, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
{ ANIM_STD_HITBYGUN_LEFT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
||||||
{ ANIM_SHOT_BACK_PARTIAL, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
{ ANIM_STD_HITBYGUN_BACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
||||||
{ ANIM_SHOT_RIGHT_PARTIAL, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
{ ANIM_STD_HITBYGUN_RIGHT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
||||||
{ ANIM_HIT_FRONT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HIT_FRONT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_HIT_LEFT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_HIT_LEFT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_HIT_BACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HIT_BACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_HIT_RIGHT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_HIT_RIGHT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FLOOR_HIT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_HIT_FLOOR, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_HIT_BODYBLOW, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HIT_BODYBLOW, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_HIT_CHEST, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HIT_CHEST, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_HIT_HEAD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HIT_HEAD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_HIT_WALK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HIT_WALK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_HIT_WALL, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HIT_WALL, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_FLOOR_HIT_F, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_FRONTAL },
|
{ ANIM_STD_HIT_FLOOR_FRONT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_FRONTAL },
|
||||||
{ ANIM_HIT_BEHIND, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_HIT_BEHIND, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_IDLE, ASSOC_REPEAT },
|
{ ANIM_STD_FIGHT_IDLE, ASSOC_REPEAT },
|
||||||
{ ANIM_FIGHT2_IDLE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_2IDLE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_SH_F, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_FIGHT_SHUFFLE_F, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_FIGHT_BODYBLOW, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_BODYBLOW, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_HEAD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_HEAD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_KICK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_KICK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_KNEE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_KNEE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_LHOOK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_LHOOK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_PUNCH, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_PUNCH, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_ROUNDHOUSE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_FIGHT_ROUNDHOUSE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_FIGHT_LONGKICK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_FIGHT_LONGKICK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_FIGHT_PPUNCH, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_NOWALK },
|
{ ANIM_STD_PARTIAL_PUNCH, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_NOWALK },
|
||||||
{ ANIM_FIGHT_JAB, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_JAB, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_ELBOW_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_ELBOW_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_ELBOW_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_ELBOW_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_BKICK_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_BKICK_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_BKICK_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_FIGHT_BKICK_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BOMBER, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_DETONATE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_PUNCH_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_PUNCH, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_PPUNCH2, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_PARTIALPUNCH, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_KICK_FLOOR, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_KICKGROUND, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_WEAPON_THROWU, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_THROW_UNDER, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_FIGHT_SH_BACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_FIGHT_SHUFFLE_B, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_CAR_JACKED_RHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_JACKEDCAR_RHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_LJACKED_RHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_JACKEDCAR_LO_RHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_JACKED_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_JACKEDCAR_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_LJACKED_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_JACKEDCAR_LO_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_QJACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_QUICKJACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_QJACKED, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_QUICKJACKED, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_ALIGN_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_ALIGN_DOOR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_ALIGNHI_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_ALIGNHI_DOOR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_OPEN_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_OPEN_DOOR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_DOORLOCKED_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CARDOOR_LOCKED_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_PULLOUT_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_PULL_OUT_PED_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_PULLOUT_LOW_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_PULL_OUT_PED_LO_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_GETIN_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_GET_IN_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_GETIN_LOW_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_GET_IN_LO_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CLOSEDOOR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_CLOSE_DOOR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CLOSEDOOR_LOW_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_CLOSE_DOOR_LO_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_ROLLDOOR, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_ROLLDOOR_LOW, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LO_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_JUMPIN_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_JUMP_IN_LO_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_GETOUT_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_GETOUT_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_GETOUT_LOW_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_GETOUT_LO_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CLOSE_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_CLOSE_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_ALIGN_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_ALIGN_DOOR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_ALIGNHI_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_ALIGNHI_DOOR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_OPEN_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_OPEN_DOOR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_DOORLOCKED_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CARDOOR_LOCKED_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_PULLOUT_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_PULL_OUT_PED_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_PULLOUT_LOW_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_PULL_OUT_PED_LO_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_GETIN_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_GET_IN_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_GETIN_LOW_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_GET_IN_LO_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CLOSEDOOR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_CLOSE_DOOR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CLOSEDOOR_LOW_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_CLOSE_DOOR_LO_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_SHUFFLE_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_SHUFFLE_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_LSHUFFLE_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_SHUFFLE_LO_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_SIT, ASSOC_DELETEFADEDOUT},
|
{ ANIM_STD_CAR_SIT, ASSOC_DELETEFADEDOUT},
|
||||||
{ ANIM_CAR_LSIT, ASSOC_DELETEFADEDOUT},
|
{ ANIM_STD_CAR_SIT_LO, ASSOC_DELETEFADEDOUT},
|
||||||
{ ANIM_CAR_SITP, ASSOC_DELETEFADEDOUT},
|
{ ANIM_STD_CAR_SIT_P, ASSOC_DELETEFADEDOUT},
|
||||||
{ ANIM_CAR_SITPLO, ASSOC_DELETEFADEDOUT},
|
{ ANIM_STD_CAR_SIT_P_LO, ASSOC_DELETEFADEDOUT},
|
||||||
{ ANIM_DRIVE_L, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_DRIVE_LEFT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVE_R, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_DRIVE_RIGHT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVE_LOW_L, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_DRIVE_LEFT_LO, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVE_LOW_R, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_DRIVE_RIGHT_LO, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVEBY_L, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_DRIVEBY_LEFT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVEBY_R, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_DRIVEBY_RIGHT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVEBY_LOW_L, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_DRIVEBY_LEFT_LO, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVEBY_LOW_R, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_DRIVEBY_RIGHT_LO, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_CAR_LB, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_CAR_LOOKBEHIND, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVE_BOAT, ASSOC_DELETEFADEDOUT | ASSOC_DRIVING },
|
{ ANIM_STD_BOAT_DRIVE, ASSOC_DELETEFADEDOUT | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVE_BOAT_L, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_BOAT_DRIVE_LEFT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_DRIVE_BOAT_R, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_BOAT_DRIVE_RIGHT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BOAT_LB, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_STD_BOAT_LOOKBEHIND, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_PICKUP_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_BIKE_PICKUP_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_PICKUP_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_BIKE_PICKUP_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_PULLUP_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_BIKE_PULLUP_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_PULLUP_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_BIKE_PULLUP_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_ELBOW_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_BIKE_ELBOW_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_ELBOW_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_BIKE_ELBOW_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_FALL_OFF, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_BIKE_FALLOFF, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_BIKE_FALL_R, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_BIKE_FALLBACK, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_CAR_GETOUT_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_GETOUT_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_GETOUT_LOW_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_GETOUT_LO_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CLOSE_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_CLOSE_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_HOOKERTALK, ASSOC_REPEAT | ASSOC_PARTIAL },
|
{ ANIM_STD_CAR_HOOKERTALK, ASSOC_REPEAT | ASSOC_PARTIAL },
|
||||||
{ ANIM_TRAIN_GETIN, ASSOC_PARTIAL },
|
{ ANIM_STD_TRAIN_GETIN, ASSOC_PARTIAL },
|
||||||
{ ANIM_TRAIN_GETOUT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_TRAIN_GETOUT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CRAWLOUT_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CRAWLOUT_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CRAWLOUT_RHS2, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_CRAWLOUT_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_ROLLOUT_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
{ ANIM_STD_ROLLOUT_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
||||||
{ ANIM_CAR_ROLLOUT_RHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
{ ANIM_STD_ROLLOUT_RHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
||||||
{ ANIM_GETUP1, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_GET_UP, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_GETUP2, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_GET_UP_LEFT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_GETUP3, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_GET_UP_RIGHT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_GETUP_FRONT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_GET_UP_FRONT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_JUMP_LAUNCH, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_JUMP_LAUNCH, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_JUMP_GLIDE, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_JUMP_GLIDE, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_JUMP_LAND, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_JUMP_LAND, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_FALL_FALL, ASSOC_REPEAT | ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_FALL, ASSOC_REPEAT | ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_FALL_GLIDE, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_FALL_GLIDE, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_FALL_LAND, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_FALL_LAND, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_FALL_COLLAPSE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_FALL_COLLAPSE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_FALL_BACK, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_FALL_ONBACK, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_FALL_FRONT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_FRONTAL },
|
{ ANIM_STD_FALL_ONFRONT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_FRONTAL },
|
||||||
{ ANIM_EV_STEP, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_EVADE_STEP, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_EV_DIVE, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
{ ANIM_STD_EVADE_DIVE, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_FRONTAL },
|
||||||
{ ANIM_XPRESS_SCRATCH, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_IDLE },
|
{ ANIM_STD_XPRESS_SCRATCH, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_IDLE },
|
||||||
{ ANIM_ROAD_CROSS, ASSOC_REPEAT | ASSOC_PARTIAL },
|
{ ANIM_STD_ROADCROSS, ASSOC_REPEAT | ASSOC_PARTIAL },
|
||||||
{ ANIM_TURN_180, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_TURN180, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_ARREST_GUN, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_ARREST, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_DROWN, ASSOC_PARTIAL },
|
{ ANIM_STD_DROWN, ASSOC_PARTIAL },
|
||||||
{ ANIM_DUCK_DOWN, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_DUCK_DOWN, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_DUCK_LOW, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_DUCK_LOW, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_WEAPON_CROUCH, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_DUCK_WEAPON, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_RBLOCK_CSHOOT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_RBLOCK_SHOOT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_HANDSUP, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HANDSUP, ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_HANDSCOWER, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_STD_HANDSCOWER, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_FUCKU, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
{ ANIM_STD_PARTIAL_FUCKU, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_NOWALK },
|
||||||
{ ANIM_PHONE_IN, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_PHONE_IN, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_PHONE_OUT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_PHONE_OUT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_PHONE_TALK, ASSOC_REPEAT | ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_PHONE_TALK, ASSOC_REPEAT | ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
{ ANIM_SEAT_DOWN, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_SEAT_DOWN, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_SEAT_UP, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_SEAT_UP, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_SEAT_IDLE, ASSOC_REPEAT | ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_SEAT_IDLE, ASSOC_REPEAT | ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_SEAT_DOWN2, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_SEAT_RVRS, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_ATM, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_ATM, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_ABSEIL, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
{ ANIM_STD_ABSEIL, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aVanAnimDescs[] = {
|
AnimAssocDesc aVanAnimDescs[] = {
|
||||||
{ ANIM_VAN_OPEN_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_VAN_OPEN_DOOR_REAR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_VAN_GETIN_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_VAN_GET_IN_REAR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_VAN_CLOSE_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_VAN_CLOSE_DOOR_REAR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_VAN_GETOUT_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_VAN_GET_OUT_REAR_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_VAN_OPEN, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_VAN_OPEN_DOOR_REAR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_VAN_GETIN, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_VAN_GET_IN_REAR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_VAN_CLOSE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_VAN_CLOSE_DOOR_REAR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_VAN_GETOUT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_VAN_GET_OUT_REAR_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aCoachAnimDescs[] = {
|
AnimAssocDesc aCoachAnimDescs[] = {
|
||||||
{ ANIM_COACH_OPEN_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_COACH_OPEN_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_COACH_OPEN_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_COACH_OPEN_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_COACH_IN_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_COACH_GET_IN_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_COACH_IN_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_COACH_GET_IN_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_COACH_OUT_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STD_COACH_GET_OUT_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aBikeAnimDescs[] = {
|
AnimAssocDesc aBikeAnimDescs[] = {
|
||||||
{ ANIM_BIKE_RIDE, ASSOC_DELETEFADEDOUT},
|
{ ANIM_BIKE_RIDE, ASSOC_DELETEFADEDOUT},
|
||||||
{ ANIM_BIKE_STILL, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_BIKE_READY, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_LEFT, ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_BIKE_LEFT, ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_RIGHT, ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_BIKE_RIGHT, ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_BACK, ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_BIKE_LEANB, ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_FWD, ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_BIKE_LEANF, ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_PUSHES, ASSOC_REPEAT | ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_BIKE_WALKBACK, ASSOC_REPEAT | ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_JUMPON_R, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_BIKE_JUMPON_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_JUMPON_L, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_BIKE_JUMPON_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_KICK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_BIKE_KICK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_HIT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_BIKE_HIT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_GETOFF_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
|
||||||
{ ANIM_BIKE_GETOFF_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_BIKE_GETOFF_LHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
|
{ ANIM_BIKE_GETOFF_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_BIKE_GETOFF_BACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
{ ANIM_BIKE_GETOFF_BACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION },
|
||||||
{ ANIM_BIKE_DRIVEBY_RHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
|
||||||
{ ANIM_BIKE_DRIVEBY_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_BIKE_DRIVEBY_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_DRIVEBY_FT, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
{ ANIM_BIKE_DRIVEBY_RHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
{ ANIM_BIKE_PASSENGER, ASSOC_DELETEFADEDOUT | ASSOC_DRIVING },
|
{ ANIM_BIKE_DRIVEBY_FORWARD, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_DRIVING },
|
||||||
|
{ ANIM_BIKE_RIDE_P, ASSOC_DELETEFADEDOUT | ASSOC_DRIVING },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aMeleeAnimDescs[] = {
|
AnimAssocDesc aMeleeAnimDescs[] = {
|
||||||
{ ANIM_MELEE_ATTACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_MELEE_ATTACK, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
@ -250,22 +250,22 @@ AnimAssocDesc aWeaponAnimDescs[] = {
|
|||||||
{ ANIM_WEAPON_CROUCHFIRE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_WEAPON_CROUCHFIRE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_WEAPON_RELOAD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_WEAPON_RELOAD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_WEAPON_CROUCHRELOAD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_WEAPON_CROUCHRELOAD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_WEAPON_SPECIAL, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_WEAPON_FIRE_3RD, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aMedicAnimDescs[] = {
|
AnimAssocDesc aMedicAnimDescs[] = {
|
||||||
{ ANIM_CPR, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_MEDIC_CPR, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aSunbatheAnimDescs[] = {
|
AnimAssocDesc aSunbatheAnimDescs[] = {
|
||||||
{ ANIM_SUNBATHE, ASSOC_REPEAT | ASSOC_PARTIAL },
|
{ ANIM_SUNBATHE_IDLE, ASSOC_REPEAT | ASSOC_PARTIAL },
|
||||||
{ ANIM_SUNBATHE_DOWN, ASSOC_REPEAT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
{ ANIM_SUNBATHE_DOWN, ASSOC_REPEAT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
||||||
{ ANIM_SUNBATHE_UP, ASSOC_REPEAT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
{ ANIM_SUNBATHE_UP, ASSOC_REPEAT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
||||||
{ ANIM_SUNBATHE_ESCAPE, ASSOC_REPEAT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
{ ANIM_SUNBATHE_ESCAPE, ASSOC_REPEAT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aPlayerIdleAnimDescs[] = {
|
AnimAssocDesc aPlayerIdleAnimDescs[] = {
|
||||||
{ ANIM_IDLE_STRETCH, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_PLAYER_IDLE1, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_TIME, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_PLAYER_IDLE2, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_SHOULDER, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_PLAYER_IDLE3, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_STRETCH_LEG, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_PLAYER_IDLE4, ASSOC_DELETEFADEDOUT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aRiotAnimDescs[] = {
|
AnimAssocDesc aRiotAnimDescs[] = {
|
||||||
{ ANIM_RIOT_ANGRY, ASSOC_REPEAT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_RIOT_ANGRY, ASSOC_REPEAT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
@ -274,7 +274,7 @@ AnimAssocDesc aRiotAnimDescs[] = {
|
|||||||
{ ANIM_RIOT_PUNCHES, ASSOC_REPEAT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_RIOT_PUNCHES, ASSOC_REPEAT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_RIOT_SHOUT, ASSOC_REPEAT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_RIOT_SHOUT, ASSOC_REPEAT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_RIOT_CHALLENGE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_RIOT_CHALLENGE, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_RIOT_FUKU, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_RIOT_FUCKYOU, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
};
|
};
|
||||||
AnimAssocDesc aStripAnimDescs[] = {
|
AnimAssocDesc aStripAnimDescs[] = {
|
||||||
{ ANIM_STRIP_A, ASSOC_REPEAT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_STRIP_A, ASSOC_REPEAT | ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
@ -287,11 +287,11 @@ AnimAssocDesc aStripAnimDescs[] = {
|
|||||||
};
|
};
|
||||||
#ifdef PC_PLAYER_CONTROLS
|
#ifdef PC_PLAYER_CONTROLS
|
||||||
AnimAssocDesc aStdAnimDescsSide[] = {
|
AnimAssocDesc aStdAnimDescsSide[] = {
|
||||||
{ ANIM_WALK, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION | ASSOC_WALK },
|
{ ANIM_STD_WALK, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION | ASSOC_WALK },
|
||||||
{ ANIM_RUN, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION | ASSOC_WALK },
|
{ ANIM_STD_RUN, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION | ASSOC_WALK },
|
||||||
{ ANIM_SPRINT, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION | ASSOC_WALK },
|
{ ANIM_STD_RUNFAST, ASSOC_REPEAT | ASSOC_MOVEMENT | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION | ASSOC_WALK },
|
||||||
{ ANIM_IDLE_STANCE, ASSOC_REPEAT },
|
{ ANIM_STD_IDLE, ASSOC_REPEAT },
|
||||||
{ ANIM_WALK_START, ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
{ ANIM_STD_STARTWALK, ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
char const* aStdAnimations[] = {
|
char const* aStdAnimations[] = {
|
||||||
|
@ -2,256 +2,272 @@
|
|||||||
|
|
||||||
enum AnimationId
|
enum AnimationId
|
||||||
{
|
{
|
||||||
ANIM_WALK,
|
ANIM_STD_WALK,
|
||||||
ANIM_RUN,
|
ANIM_STD_RUN,
|
||||||
ANIM_SPRINT,
|
ANIM_STD_RUNFAST,
|
||||||
ANIM_IDLE_STANCE,
|
ANIM_STD_IDLE,
|
||||||
ANIM_WALK_START,
|
ANIM_STD_STARTWALK,
|
||||||
ANIM_RUN_STOP,
|
ANIM_STD_RUNSTOP1,
|
||||||
ANIM_RUN_STOP_R,
|
ANIM_STD_RUNSTOP2,
|
||||||
ANIM_IDLE_CAM,
|
ANIM_STD_IDLE_CAM,
|
||||||
ANIM_IDLE_HBHB,
|
ANIM_STD_IDLE_HBHB,
|
||||||
ANIM_IDLE_TIRED,
|
ANIM_STD_IDLE_TIRED,
|
||||||
ANIM_IDLE_ARMED,
|
ANIM_STD_IDLE_BIGGUN,
|
||||||
ANIM_IDLE_CHAT,
|
ANIM_STD_CHAT,
|
||||||
ANIM_IDLE_TAXI,
|
ANIM_STD_HAILTAXI,
|
||||||
ANIM_KO_SHOT_FRONT1,
|
ANIM_STD_KO_FRONT,
|
||||||
ANIM_KO_SHOT_FRONT2,
|
ANIM_STD_KO_LEFT,
|
||||||
ANIM_KO_SHOT_FRONT3,
|
ANIM_STD_KO_BACK,
|
||||||
ANIM_KO_SHOT_FRONT4,
|
ANIM_STD_KO_RIGHT,
|
||||||
ANIM_KO_SHOT_FACE,
|
ANIM_STD_KO_SHOT_FACE,
|
||||||
ANIM_KO_SHOT_STOM,
|
ANIM_STD_KO_SHOT_STOMACH,
|
||||||
ANIM_KO_SHOT_ARML,
|
ANIM_STD_KO_SHOT_ARM_L,
|
||||||
ANIM_KO_SHOT_ARMR,
|
ANIM_STD_KO_SHOT_ARM_R,
|
||||||
ANIM_KO_SHOT_LEGL,
|
ANIM_STD_KO_SHOT_LEG_L,
|
||||||
ANIM_KO_SHOT_LEGR,
|
ANIM_STD_KO_SHOT_LEG_R,
|
||||||
ANIM_KD_LEFT,
|
ANIM_STD_SPINFORWARD_LEFT,
|
||||||
ANIM_KD_RIGHT,
|
ANIM_STD_SPINFORWARD_RIGHT,
|
||||||
ANIM_KO_SKID_FRONT,
|
ANIM_STD_HIGHIMPACT_FRONT,
|
||||||
ANIM_KO_SPIN_R, // named left in VC
|
ANIM_STD_HIGHIMPACT_LEFT,
|
||||||
ANIM_KO_SKID_BACK,
|
ANIM_STD_HIGHIMPACT_BACK,
|
||||||
ANIM_KO_SPIN_L, // named right in VC
|
ANIM_STD_HIGHIMPACT_RIGHT,
|
||||||
ANIM_SHOT_FRONT_PARTIAL,
|
ANIM_STD_HITBYGUN_FRONT,
|
||||||
ANIM_SHOT_LEFT_PARTIAL,
|
ANIM_STD_HITBYGUN_LEFT,
|
||||||
ANIM_SHOT_BACK_PARTIAL,
|
ANIM_STD_HITBYGUN_BACK,
|
||||||
ANIM_SHOT_RIGHT_PARTIAL,
|
ANIM_STD_HITBYGUN_RIGHT,
|
||||||
ANIM_HIT_FRONT,
|
ANIM_STD_HIT_FRONT,
|
||||||
ANIM_HIT_LEFT,
|
ANIM_STD_HIT_LEFT,
|
||||||
ANIM_HIT_BACK,
|
ANIM_STD_HIT_BACK,
|
||||||
ANIM_HIT_RIGHT,
|
ANIM_STD_HIT_RIGHT,
|
||||||
ANIM_FLOOR_HIT,
|
ANIM_STD_HIT_FLOOR,
|
||||||
ANIM_HIT_BODYBLOW,
|
|
||||||
ANIM_HIT_CHEST,
|
|
||||||
ANIM_HIT_HEAD,
|
|
||||||
ANIM_HIT_WALK,
|
|
||||||
ANIM_HIT_WALL,
|
|
||||||
ANIM_FLOOR_HIT_F,
|
|
||||||
ANIM_HIT_BEHIND,
|
|
||||||
ANIM_FIGHT_IDLE,
|
|
||||||
ANIM_FIGHT2_IDLE,
|
|
||||||
ANIM_FIGHT_SH_F,
|
|
||||||
ANIM_FIGHT_BODYBLOW,
|
|
||||||
ANIM_FIGHT_HEAD,
|
|
||||||
ANIM_FIGHT_KICK,
|
|
||||||
ANIM_FIGHT_KNEE,
|
|
||||||
ANIM_FIGHT_LHOOK,
|
|
||||||
ANIM_FIGHT_PUNCH,
|
|
||||||
ANIM_FIGHT_ROUNDHOUSE,
|
|
||||||
ANIM_FIGHT_LONGKICK,
|
|
||||||
ANIM_FIGHT_PPUNCH,
|
|
||||||
|
|
||||||
ANIM_FIGHT_JAB,
|
/* names made up */
|
||||||
ANIM_FIGHT_ELBOW_L,
|
ANIM_STD_HIT_BODYBLOW,
|
||||||
ANIM_FIGHT_ELBOW_R,
|
ANIM_STD_HIT_CHEST,
|
||||||
ANIM_FIGHT_BKICK_L,
|
ANIM_STD_HIT_HEAD,
|
||||||
ANIM_FIGHT_BKICK_R,
|
ANIM_STD_HIT_WALK,
|
||||||
|
/**/
|
||||||
|
|
||||||
ANIM_BOMBER,
|
ANIM_STD_HIT_WALL,
|
||||||
ANIM_PUNCH_R,
|
ANIM_STD_HIT_FLOOR_FRONT,
|
||||||
ANIM_FIGHT_PPUNCH2,
|
ANIM_STD_HIT_BEHIND,
|
||||||
ANIM_KICK_FLOOR,
|
ANIM_STD_FIGHT_IDLE,
|
||||||
|
ANIM_STD_FIGHT_2IDLE,
|
||||||
|
ANIM_STD_FIGHT_SHUFFLE_F,
|
||||||
|
|
||||||
ANIM_WEAPON_THROWU,
|
/* names made up */
|
||||||
ANIM_FIGHT_SH_BACK,
|
ANIM_STD_FIGHT_BODYBLOW,
|
||||||
|
ANIM_STD_FIGHT_HEAD,
|
||||||
|
ANIM_STD_FIGHT_KICK,
|
||||||
|
ANIM_STD_FIGHT_KNEE,
|
||||||
|
ANIM_STD_FIGHT_LHOOK,
|
||||||
|
ANIM_STD_FIGHT_PUNCH,
|
||||||
|
ANIM_STD_FIGHT_ROUNDHOUSE,
|
||||||
|
ANIM_STD_FIGHT_LONGKICK,
|
||||||
|
/**/
|
||||||
|
|
||||||
ANIM_CAR_JACKED_RHS,
|
ANIM_STD_PARTIAL_PUNCH,
|
||||||
ANIM_CAR_LJACKED_RHS,
|
|
||||||
ANIM_CAR_JACKED_LHS,
|
|
||||||
ANIM_CAR_LJACKED_LHS,
|
|
||||||
ANIM_CAR_QJACK,
|
|
||||||
ANIM_CAR_QJACKED,
|
|
||||||
ANIM_CAR_ALIGN_LHS,
|
|
||||||
ANIM_CAR_ALIGNHI_LHS,
|
|
||||||
ANIM_CAR_OPEN_LHS,
|
|
||||||
ANIM_CAR_DOORLOCKED_LHS,
|
|
||||||
ANIM_CAR_PULLOUT_LHS,
|
|
||||||
ANIM_CAR_PULLOUT_LOW_LHS,
|
|
||||||
ANIM_CAR_GETIN_LHS,
|
|
||||||
ANIM_CAR_GETIN_LOW_LHS,
|
|
||||||
ANIM_CAR_CLOSEDOOR_LHS,
|
|
||||||
ANIM_CAR_CLOSEDOOR_LOW_LHS,
|
|
||||||
ANIM_CAR_ROLLDOOR,
|
|
||||||
ANIM_CAR_ROLLDOOR_LOW,
|
|
||||||
ANIM_CAR_JUMPIN_LHS,
|
|
||||||
ANIM_CAR_GETOUT_LHS,
|
|
||||||
ANIM_CAR_GETOUT_LOW_LHS,
|
|
||||||
ANIM_CAR_CLOSE_LHS,
|
|
||||||
ANIM_CAR_ALIGN_RHS,
|
|
||||||
ANIM_CAR_ALIGNHI_RHS,
|
|
||||||
ANIM_CAR_OPEN_RHS,
|
|
||||||
ANIM_CAR_DOORLOCKED_RHS,
|
|
||||||
ANIM_CAR_PULLOUT_RHS,
|
|
||||||
ANIM_CAR_PULLOUT_LOW_RHS,
|
|
||||||
ANIM_CAR_GETIN_RHS,
|
|
||||||
ANIM_CAR_GETIN_LOW_RHS,
|
|
||||||
ANIM_CAR_CLOSEDOOR_RHS,
|
|
||||||
ANIM_CAR_CLOSEDOOR_LOW_RHS,
|
|
||||||
ANIM_CAR_SHUFFLE_RHS,
|
|
||||||
ANIM_CAR_LSHUFFLE_RHS,
|
|
||||||
ANIM_CAR_SIT,
|
|
||||||
ANIM_CAR_LSIT,
|
|
||||||
ANIM_CAR_SITP,
|
|
||||||
ANIM_CAR_SITPLO,
|
|
||||||
ANIM_DRIVE_L,
|
|
||||||
ANIM_DRIVE_R,
|
|
||||||
ANIM_DRIVE_LOW_L,
|
|
||||||
ANIM_DRIVE_LOW_R,
|
|
||||||
ANIM_DRIVEBY_L,
|
|
||||||
ANIM_DRIVEBY_R,
|
|
||||||
ANIM_DRIVEBY_LOW_L,
|
|
||||||
ANIM_DRIVEBY_LOW_R,
|
|
||||||
ANIM_CAR_LB,
|
|
||||||
ANIM_DRIVE_BOAT,
|
|
||||||
ANIM_DRIVE_BOAT_L,
|
|
||||||
ANIM_DRIVE_BOAT_R,
|
|
||||||
ANIM_BOAT_LB,
|
|
||||||
|
|
||||||
ANIM_BIKE_PICKUP_R,
|
/* names made up */
|
||||||
ANIM_BIKE_PICKUP_L,
|
ANIM_STD_FIGHT_JAB,
|
||||||
ANIM_BIKE_PULLUP_R,
|
ANIM_STD_FIGHT_ELBOW_L,
|
||||||
ANIM_BIKE_PULLUP_L,
|
ANIM_STD_FIGHT_ELBOW_R,
|
||||||
ANIM_BIKE_ELBOW_R,
|
ANIM_STD_FIGHT_BKICK_L,
|
||||||
ANIM_BIKE_ELBOW_L,
|
ANIM_STD_FIGHT_BKICK_R,
|
||||||
ANIM_BIKE_FALL_OFF,
|
/**/
|
||||||
ANIM_BIKE_FALL_R,
|
|
||||||
|
|
||||||
ANIM_CAR_GETOUT_RHS,
|
ANIM_STD_DETONATE,
|
||||||
ANIM_CAR_GETOUT_LOW_RHS,
|
ANIM_STD_PUNCH,
|
||||||
ANIM_CAR_CLOSE_RHS,
|
ANIM_STD_PARTIALPUNCH,
|
||||||
ANIM_CAR_HOOKERTALK,
|
ANIM_STD_KICKGROUND,
|
||||||
|
|
||||||
ANIM_TRAIN_GETIN,
|
ANIM_STD_THROW_UNDER,
|
||||||
ANIM_TRAIN_GETOUT,
|
ANIM_STD_FIGHT_SHUFFLE_B,
|
||||||
|
|
||||||
ANIM_CAR_CRAWLOUT_RHS,
|
ANIM_STD_JACKEDCAR_RHS,
|
||||||
ANIM_CAR_CRAWLOUT_RHS2,
|
ANIM_STD_JACKEDCAR_LO_RHS,
|
||||||
ANIM_CAR_ROLLOUT_LHS,
|
ANIM_STD_JACKEDCAR_LHS,
|
||||||
ANIM_CAR_ROLLOUT_RHS,
|
ANIM_STD_JACKEDCAR_LO_LHS,
|
||||||
|
ANIM_STD_QUICKJACK,
|
||||||
|
ANIM_STD_QUICKJACKED,
|
||||||
|
ANIM_STD_CAR_ALIGN_DOOR_LHS,
|
||||||
|
ANIM_STD_CAR_ALIGNHI_DOOR_LHS,
|
||||||
|
ANIM_STD_CAR_OPEN_DOOR_LHS,
|
||||||
|
ANIM_STD_CARDOOR_LOCKED_LHS,
|
||||||
|
ANIM_STD_CAR_PULL_OUT_PED_LHS,
|
||||||
|
ANIM_STD_CAR_PULL_OUT_PED_LO_LHS,
|
||||||
|
ANIM_STD_CAR_GET_IN_LHS,
|
||||||
|
ANIM_STD_CAR_GET_IN_LO_LHS,
|
||||||
|
ANIM_STD_CAR_CLOSE_DOOR_LHS,
|
||||||
|
ANIM_STD_CAR_CLOSE_DOOR_LO_LHS,
|
||||||
|
ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LHS,
|
||||||
|
ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LO_LHS,
|
||||||
|
ANIM_STD_CAR_JUMP_IN_LO_LHS,
|
||||||
|
ANIM_STD_GETOUT_LHS,
|
||||||
|
ANIM_STD_GETOUT_LO_LHS,
|
||||||
|
ANIM_STD_CAR_CLOSE_LHS,
|
||||||
|
ANIM_STD_CAR_ALIGN_DOOR_RHS,
|
||||||
|
ANIM_STD_CAR_ALIGNHI_DOOR_RHS,
|
||||||
|
ANIM_STD_CAR_OPEN_DOOR_RHS,
|
||||||
|
ANIM_STD_CARDOOR_LOCKED_RHS,
|
||||||
|
ANIM_STD_CAR_PULL_OUT_PED_RHS,
|
||||||
|
ANIM_STD_CAR_PULL_OUT_PED_LO_RHS,
|
||||||
|
ANIM_STD_CAR_GET_IN_RHS,
|
||||||
|
ANIM_STD_CAR_GET_IN_LO_RHS,
|
||||||
|
ANIM_STD_CAR_CLOSE_DOOR_RHS,
|
||||||
|
ANIM_STD_CAR_CLOSE_DOOR_LO_RHS,
|
||||||
|
ANIM_STD_CAR_SHUFFLE_RHS,
|
||||||
|
ANIM_STD_CAR_SHUFFLE_LO_RHS,
|
||||||
|
ANIM_STD_CAR_SIT,
|
||||||
|
ANIM_STD_CAR_SIT_LO,
|
||||||
|
ANIM_STD_CAR_SIT_P,
|
||||||
|
ANIM_STD_CAR_SIT_P_LO,
|
||||||
|
ANIM_STD_CAR_DRIVE_LEFT,
|
||||||
|
ANIM_STD_CAR_DRIVE_RIGHT,
|
||||||
|
ANIM_STD_CAR_DRIVE_LEFT_LO,
|
||||||
|
ANIM_STD_CAR_DRIVE_RIGHT_LO,
|
||||||
|
ANIM_STD_CAR_DRIVEBY_LEFT,
|
||||||
|
ANIM_STD_CAR_DRIVEBY_RIGHT,
|
||||||
|
ANIM_STD_CAR_DRIVEBY_LEFT_LO,
|
||||||
|
ANIM_STD_CAR_DRIVEBY_RIGHT_LO,
|
||||||
|
ANIM_STD_CAR_LOOKBEHIND,
|
||||||
|
ANIM_STD_BOAT_DRIVE,
|
||||||
|
ANIM_STD_BOAT_DRIVE_LEFT,
|
||||||
|
ANIM_STD_BOAT_DRIVE_RIGHT,
|
||||||
|
ANIM_STD_BOAT_LOOKBEHIND,
|
||||||
|
|
||||||
ANIM_GETUP1,
|
ANIM_STD_BIKE_PICKUP_LHS,
|
||||||
ANIM_GETUP2,
|
ANIM_STD_BIKE_PICKUP_RHS,
|
||||||
ANIM_GETUP3,
|
ANIM_STD_BIKE_PULLUP_LHS,
|
||||||
ANIM_GETUP_FRONT,
|
ANIM_STD_BIKE_PULLUP_RHS,
|
||||||
ANIM_JUMP_LAUNCH,
|
ANIM_STD_BIKE_ELBOW_LHS,
|
||||||
ANIM_JUMP_GLIDE,
|
ANIM_STD_BIKE_ELBOW_RHS,
|
||||||
ANIM_JUMP_LAND,
|
ANIM_STD_BIKE_FALLOFF,
|
||||||
ANIM_FALL_FALL,
|
ANIM_STD_BIKE_FALLBACK,
|
||||||
ANIM_FALL_GLIDE,
|
|
||||||
ANIM_FALL_LAND,
|
|
||||||
ANIM_FALL_COLLAPSE,
|
|
||||||
ANIM_FALL_BACK,
|
|
||||||
ANIM_FALL_FRONT,
|
|
||||||
|
|
||||||
ANIM_EV_STEP,
|
ANIM_STD_GETOUT_RHS,
|
||||||
ANIM_EV_DIVE,
|
ANIM_STD_GETOUT_LO_RHS,
|
||||||
ANIM_XPRESS_SCRATCH,
|
ANIM_STD_CAR_CLOSE_RHS,
|
||||||
ANIM_ROAD_CROSS,
|
ANIM_STD_CAR_HOOKERTALK,
|
||||||
ANIM_TURN_180,
|
|
||||||
ANIM_ARREST_GUN,
|
|
||||||
ANIM_DROWN,
|
|
||||||
ANIM_DUCK_DOWN,
|
|
||||||
ANIM_DUCK_LOW,
|
|
||||||
|
|
||||||
ANIM_WEAPON_CROUCH,
|
ANIM_STD_TRAIN_GETIN,
|
||||||
|
ANIM_STD_TRAIN_GETOUT,
|
||||||
|
|
||||||
ANIM_RBLOCK_CSHOOT,
|
ANIM_STD_CRAWLOUT_LHS,
|
||||||
ANIM_HANDSUP,
|
ANIM_STD_CRAWLOUT_RHS,
|
||||||
ANIM_HANDSCOWER,
|
ANIM_STD_ROLLOUT_LHS,
|
||||||
ANIM_FUCKU,
|
ANIM_STD_ROLLOUT_RHS,
|
||||||
ANIM_PHONE_IN,
|
|
||||||
ANIM_PHONE_OUT,
|
|
||||||
ANIM_PHONE_TALK,
|
|
||||||
|
|
||||||
ANIM_SEAT_DOWN,
|
ANIM_STD_GET_UP,
|
||||||
ANIM_SEAT_UP,
|
ANIM_STD_GET_UP_LEFT,
|
||||||
ANIM_SEAT_IDLE,
|
ANIM_STD_GET_UP_RIGHT,
|
||||||
ANIM_SEAT_DOWN2,
|
ANIM_STD_GET_UP_FRONT,
|
||||||
ANIM_ATM,
|
ANIM_STD_JUMP_LAUNCH,
|
||||||
ANIM_ABSEIL,
|
ANIM_STD_JUMP_GLIDE,
|
||||||
|
ANIM_STD_JUMP_LAND,
|
||||||
|
ANIM_STD_FALL,
|
||||||
|
ANIM_STD_FALL_GLIDE,
|
||||||
|
ANIM_STD_FALL_LAND,
|
||||||
|
ANIM_STD_FALL_COLLAPSE,
|
||||||
|
ANIM_STD_FALL_ONBACK,
|
||||||
|
ANIM_STD_FALL_ONFRONT,
|
||||||
|
|
||||||
NUM_STD_ANIMS,
|
ANIM_STD_EVADE_STEP,
|
||||||
|
ANIM_STD_EVADE_DIVE,
|
||||||
|
ANIM_STD_XPRESS_SCRATCH,
|
||||||
|
ANIM_STD_ROADCROSS,
|
||||||
|
ANIM_STD_TURN180,
|
||||||
|
ANIM_STD_ARREST,
|
||||||
|
ANIM_STD_DROWN,
|
||||||
|
ANIM_STD_DUCK_DOWN,
|
||||||
|
ANIM_STD_DUCK_LOW,
|
||||||
|
|
||||||
ANIM_VAN_OPEN_L,
|
ANIM_STD_DUCK_WEAPON,
|
||||||
ANIM_VAN_GETIN_L,
|
|
||||||
ANIM_VAN_CLOSE_L,
|
|
||||||
ANIM_VAN_GETOUT_L,
|
|
||||||
ANIM_VAN_OPEN,
|
|
||||||
ANIM_VAN_GETIN,
|
|
||||||
ANIM_VAN_CLOSE,
|
|
||||||
ANIM_VAN_GETOUT,
|
|
||||||
|
|
||||||
ANIM_COACH_OPEN_L,
|
ANIM_STD_RBLOCK_SHOOT,
|
||||||
ANIM_COACH_OPEN_R,
|
ANIM_STD_HANDSUP,
|
||||||
ANIM_COACH_IN_L,
|
ANIM_STD_HANDSCOWER,
|
||||||
ANIM_COACH_IN_R,
|
ANIM_STD_PARTIAL_FUCKU,
|
||||||
ANIM_COACH_OUT_L,
|
ANIM_STD_PHONE_IN,
|
||||||
|
ANIM_STD_PHONE_OUT,
|
||||||
|
ANIM_STD_PHONE_TALK,
|
||||||
|
|
||||||
|
ANIM_STD_SEAT_DOWN,
|
||||||
|
ANIM_STD_SEAT_UP,
|
||||||
|
ANIM_STD_SEAT_IDLE,
|
||||||
|
ANIM_STD_SEAT_RVRS,
|
||||||
|
ANIM_STD_ATM,
|
||||||
|
ANIM_STD_ABSEIL,
|
||||||
|
|
||||||
|
ANIM_STD_NUM,
|
||||||
|
|
||||||
|
ANIM_STD_VAN_OPEN_DOOR_REAR_LHS,
|
||||||
|
ANIM_STD_VAN_GET_IN_REAR_LHS,
|
||||||
|
ANIM_STD_VAN_CLOSE_DOOR_REAR_LHS,
|
||||||
|
ANIM_STD_VAN_GET_OUT_REAR_LHS,
|
||||||
|
ANIM_STD_VAN_OPEN_DOOR_REAR_RHS,
|
||||||
|
ANIM_STD_VAN_GET_IN_REAR_RHS,
|
||||||
|
ANIM_STD_VAN_CLOSE_DOOR_REAR_RHS,
|
||||||
|
ANIM_STD_VAN_GET_OUT_REAR_RHS,
|
||||||
|
|
||||||
|
ANIM_STD_COACH_OPEN_LHS,
|
||||||
|
ANIM_STD_COACH_OPEN_RHS,
|
||||||
|
ANIM_STD_COACH_GET_IN_LHS,
|
||||||
|
ANIM_STD_COACH_GET_IN_RHS,
|
||||||
|
ANIM_STD_COACH_GET_OUT_LHS,
|
||||||
|
|
||||||
ANIM_BIKE_RIDE,
|
ANIM_BIKE_RIDE,
|
||||||
ANIM_BIKE_STILL,
|
ANIM_BIKE_READY,
|
||||||
ANIM_BIKE_LEFT,
|
ANIM_BIKE_LEFT,
|
||||||
ANIM_BIKE_RIGHT,
|
ANIM_BIKE_RIGHT,
|
||||||
ANIM_BIKE_BACK,
|
ANIM_BIKE_LEANB,
|
||||||
ANIM_BIKE_FWD,
|
ANIM_BIKE_LEANF,
|
||||||
ANIM_BIKE_PUSHES,
|
ANIM_BIKE_WALKBACK,
|
||||||
ANIM_BIKE_JUMPON_R,
|
ANIM_BIKE_JUMPON_LHS,
|
||||||
ANIM_BIKE_JUMPON_L,
|
ANIM_BIKE_JUMPON_RHS,
|
||||||
ANIM_BIKE_KICK,
|
ANIM_BIKE_KICK,
|
||||||
ANIM_BIKE_HIT,
|
ANIM_BIKE_HIT,
|
||||||
ANIM_BIKE_GETOFF_RHS,
|
|
||||||
ANIM_BIKE_GETOFF_LHS,
|
ANIM_BIKE_GETOFF_LHS,
|
||||||
|
ANIM_BIKE_GETOFF_RHS,
|
||||||
ANIM_BIKE_GETOFF_BACK,
|
ANIM_BIKE_GETOFF_BACK,
|
||||||
ANIM_BIKE_DRIVEBY_RHS,
|
|
||||||
ANIM_BIKE_DRIVEBY_LHS,
|
ANIM_BIKE_DRIVEBY_LHS,
|
||||||
ANIM_BIKE_DRIVEBY_FT,
|
ANIM_BIKE_DRIVEBY_RHS,
|
||||||
ANIM_BIKE_PASSENGER,
|
ANIM_BIKE_DRIVEBY_FORWARD,
|
||||||
|
ANIM_BIKE_RIDE_P,
|
||||||
|
|
||||||
ANIM_WEAPON_FIRE,
|
ANIM_ATTACK_1,
|
||||||
|
ANIM_ATTACK_2,
|
||||||
|
ANIM_ATTACK_EXTRA1,
|
||||||
|
ANIM_ATTACK_EXTRA2,
|
||||||
|
ANIM_ATTACK_3,
|
||||||
|
|
||||||
|
// our synonyms... because originals are hard to understand
|
||||||
|
ANIM_WEAPON_FIRE = ANIM_ATTACK_1,
|
||||||
ANIM_WEAPON_CROUCHFIRE,
|
ANIM_WEAPON_CROUCHFIRE,
|
||||||
|
ANIM_WEAPON_FIRE_2ND = ANIM_WEAPON_CROUCHFIRE,
|
||||||
ANIM_WEAPON_RELOAD,
|
ANIM_WEAPON_RELOAD,
|
||||||
ANIM_WEAPON_CROUCHRELOAD,
|
ANIM_WEAPON_CROUCHRELOAD,
|
||||||
ANIM_WEAPON_SPECIAL,
|
ANIM_WEAPON_FIRE_3RD,
|
||||||
ANIM_MELEE_ATTACK = ANIM_WEAPON_FIRE,
|
ANIM_THROWABLE_THROW = ANIM_ATTACK_1,
|
||||||
|
ANIM_THROWABLE_THROWU,
|
||||||
|
ANIM_THROWABLE_START_THROW,
|
||||||
|
ANIM_MELEE_ATTACK = ANIM_ATTACK_1,
|
||||||
ANIM_MELEE_ATTACK_2ND,
|
ANIM_MELEE_ATTACK_2ND,
|
||||||
ANIM_MELEE_ATTACK_START,
|
ANIM_MELEE_ATTACK_START,
|
||||||
ANIM_MELEE_IDLE_FIGHTMODE,
|
ANIM_MELEE_IDLE_FIGHTMODE,
|
||||||
ANIM_MELEE_ATTACK_FINISH,
|
ANIM_MELEE_ATTACK_FINISH,
|
||||||
ANIM_THROWABLE_THROW = ANIM_WEAPON_FIRE,
|
|
||||||
ANIM_THROWABLE_THROWU,
|
|
||||||
ANIM_THROWABLE_START_THROW,
|
|
||||||
ANIM_WEAPON_FIRE_2ND = ANIM_WEAPON_CROUCHFIRE,
|
|
||||||
ANIM_WEAPON_FIRE_3RD = ANIM_WEAPON_SPECIAL,
|
|
||||||
|
|
||||||
ANIM_SUNBATHE,
|
ANIM_SUNBATHE_IDLE,
|
||||||
ANIM_SUNBATHE_DOWN,
|
ANIM_SUNBATHE_DOWN,
|
||||||
ANIM_SUNBATHE_UP,
|
ANIM_SUNBATHE_UP,
|
||||||
ANIM_SUNBATHE_ESCAPE,
|
ANIM_SUNBATHE_ESCAPE,
|
||||||
|
|
||||||
ANIM_CPR,
|
ANIM_MEDIC_CPR,
|
||||||
|
|
||||||
ANIM_IDLE_STRETCH,
|
ANIM_PLAYER_IDLE1,
|
||||||
ANIM_IDLE_TIME,
|
ANIM_PLAYER_IDLE2,
|
||||||
ANIM_IDLE_SHOULDER,
|
ANIM_PLAYER_IDLE3,
|
||||||
ANIM_IDLE_STRETCH_LEG,
|
ANIM_PLAYER_IDLE4,
|
||||||
|
|
||||||
ANIM_RIOT_ANGRY,
|
ANIM_RIOT_ANGRY,
|
||||||
ANIM_RIOT_ANGRY_B,
|
ANIM_RIOT_ANGRY_B,
|
||||||
@ -259,7 +275,7 @@ enum AnimationId
|
|||||||
ANIM_RIOT_PUNCHES,
|
ANIM_RIOT_PUNCHES,
|
||||||
ANIM_RIOT_SHOUT,
|
ANIM_RIOT_SHOUT,
|
||||||
ANIM_RIOT_CHALLENGE,
|
ANIM_RIOT_CHALLENGE,
|
||||||
ANIM_RIOT_FUKU,
|
ANIM_RIOT_FUCKYOU,
|
||||||
|
|
||||||
ANIM_STRIP_A,
|
ANIM_STRIP_A,
|
||||||
ANIM_STRIP_B,
|
ANIM_STRIP_B,
|
||||||
@ -268,6 +284,4 @@ enum AnimationId
|
|||||||
ANIM_STRIP_E,
|
ANIM_STRIP_E,
|
||||||
ANIM_STRIP_F,
|
ANIM_STRIP_F,
|
||||||
ANIM_STRIP_G,
|
ANIM_STRIP_G,
|
||||||
|
|
||||||
NUM_ANIMS
|
|
||||||
};
|
};
|
@ -48,9 +48,9 @@ CPhoneInfo::Update(void)
|
|||||||
TheCamera.SetWideScreenOff();
|
TheCamera.SetWideScreenOff();
|
||||||
pPhoneDisplayingMessages = nil;
|
pPhoneDisplayingMessages = nil;
|
||||||
bDisplayingPhoneMessage = false;
|
bDisplayingPhoneMessage = false;
|
||||||
CAnimBlendAssociation *talkAssoc = RpAnimBlendClumpGetAssociation(player->GetClump(), ANIM_PHONE_TALK);
|
CAnimBlendAssociation *talkAssoc = RpAnimBlendClumpGetAssociation(player->GetClump(), ANIM_STD_PHONE_TALK);
|
||||||
if (talkAssoc && talkAssoc->blendAmount > 0.5f) {
|
if (talkAssoc && talkAssoc->blendAmount > 0.5f) {
|
||||||
CAnimBlendAssociation *endAssoc = CAnimManager::BlendAnimation(player->GetClump(), ASSOCGRP_STD, ANIM_PHONE_OUT, 8.0f);
|
CAnimBlendAssociation *endAssoc = CAnimManager::BlendAnimation(player->GetClump(), ASSOCGRP_STD, ANIM_STD_PHONE_OUT, 8.0f);
|
||||||
endAssoc->flags &= ~ASSOC_DELETEFADEDOUT;
|
endAssoc->flags &= ~ASSOC_DELETEFADEDOUT;
|
||||||
endAssoc->SetFinishCallback(PhonePutDownCB, player);
|
endAssoc->SetFinishCallback(PhonePutDownCB, player);
|
||||||
} else {
|
} else {
|
||||||
@ -107,7 +107,7 @@ CPhoneInfo::Update(void)
|
|||||||
CPad::GetPad(0)->SetDisablePlayerControls(PLAYERCONTROL_PHONE);
|
CPad::GetPad(0)->SetDisablePlayerControls(PLAYERCONTROL_PHONE);
|
||||||
TheCamera.SetWideScreenOn();
|
TheCamera.SetWideScreenOn();
|
||||||
playerInfo->MakePlayerSafe(true);
|
playerInfo->MakePlayerSafe(true);
|
||||||
CAnimBlendAssociation *phonePickAssoc = CAnimManager::BlendAnimation(player->GetClump(), ASSOCGRP_STD, ANIM_PHONE_IN, 4.0f);
|
CAnimBlendAssociation *phonePickAssoc = CAnimManager::BlendAnimation(player->GetClump(), ASSOCGRP_STD, ANIM_STD_PHONE_IN, 4.0f);
|
||||||
phonePickAssoc->SetFinishCallback(PhonePickUpCB, &m_aPhones[phoneId]);
|
phonePickAssoc->SetFinishCallback(PhonePickUpCB, &m_aPhones[phoneId]);
|
||||||
bPickingUpPhone = true;
|
bPickingUpPhone = true;
|
||||||
pCallBackPed = player;
|
pCallBackPed = player;
|
||||||
@ -363,10 +363,10 @@ PhonePickUpCB(CAnimBlendAssociation *assoc, void *arg)
|
|||||||
|
|
||||||
CPed *ped = CPhoneInfo::pCallBackPed;
|
CPed *ped = CPhoneInfo::pCallBackPed;
|
||||||
ped->m_nMoveState = PEDMOVE_STILL;
|
ped->m_nMoveState = PEDMOVE_STILL;
|
||||||
CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_IDLE_STANCE, 8.0f);
|
CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_STD_IDLE, 8.0f);
|
||||||
|
|
||||||
if (assoc->blendAmount > 0.5f && ped)
|
if (assoc->blendAmount > 0.5f && ped)
|
||||||
CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_PHONE_TALK, 8.0f);
|
CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_STD_PHONE_TALK, 8.0f);
|
||||||
|
|
||||||
CPhoneInfo::pCallBackPed = nil;
|
CPhoneInfo::pCallBackPed = nil;
|
||||||
}
|
}
|
||||||
|
@ -521,7 +521,7 @@ void CReplay::StoreDetailedPedAnimation(CPed *ped, CStoredDetailedAnimationState
|
|||||||
state->aFunctionCallbackID[i] = 0;
|
state->aFunctionCallbackID[i] = 0;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
state->aAnimId[i] = NUM_STD_ANIMS;
|
state->aAnimId[i] = ANIM_STD_NUM;
|
||||||
state->aCurTime[i] = 0;
|
state->aCurTime[i] = 0;
|
||||||
state->aSpeed[i] = 85;
|
state->aSpeed[i] = 85;
|
||||||
state->aFunctionCallbackID[i] = 0;
|
state->aFunctionCallbackID[i] = 0;
|
||||||
@ -548,7 +548,7 @@ void CReplay::StoreDetailedPedAnimation(CPed *ped, CStoredDetailedAnimationState
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
state->aAnimId2[i] = NUM_STD_ANIMS;
|
state->aAnimId2[i] = ANIM_STD_NUM;
|
||||||
state->aCurTime2[i] = 0;
|
state->aCurTime2[i] = 0;
|
||||||
state->aSpeed2[i] = 85;
|
state->aSpeed2[i] = 85;
|
||||||
state->aFunctionCallbackID2[i] = 0;
|
state->aFunctionCallbackID2[i] = 0;
|
||||||
@ -611,13 +611,13 @@ bool HasAnimGroupLoaded(uint8 group)
|
|||||||
void CReplay::RetrievePedAnimation(CPed *ped, CStoredAnimationState *state)
|
void CReplay::RetrievePedAnimation(CPed *ped, CStoredAnimationState *state)
|
||||||
{
|
{
|
||||||
CAnimBlendAssociation* anim1;
|
CAnimBlendAssociation* anim1;
|
||||||
if (state->animId <= 3)
|
if (state->animId <= ANIM_STD_IDLE)
|
||||||
anim1 = CAnimManager::BlendAnimation(
|
anim1 = CAnimManager::BlendAnimation(
|
||||||
(RpClump*)ped->m_rwObject, ped->m_animGroup, (AnimationId)state->animId, 100.0f);
|
(RpClump*)ped->m_rwObject, ped->m_animGroup, (AnimationId)state->animId, 100.0f);
|
||||||
else if (HasAnimGroupLoaded(state->groupId))
|
else if (HasAnimGroupLoaded(state->groupId))
|
||||||
anim1 = CAnimManager::BlendAnimation((RpClump*)ped->m_rwObject, (AssocGroupId)state->groupId, (AnimationId)state->animId, 100.0f);
|
anim1 = CAnimManager::BlendAnimation((RpClump*)ped->m_rwObject, (AssocGroupId)state->groupId, (AnimationId)state->animId, 100.0f);
|
||||||
else
|
else
|
||||||
anim1 = CAnimManager::BlendAnimation((RpClump*)ped->m_rwObject, ASSOCGRP_STD, ANIM_WALK, 100.0f);
|
anim1 = CAnimManager::BlendAnimation((RpClump*)ped->m_rwObject, ASSOCGRP_STD, ANIM_STD_WALK, 100.0f);
|
||||||
|
|
||||||
anim1->SetCurrentTime(state->time * 4.0f / 255.0f);
|
anim1->SetCurrentTime(state->time * 4.0f / 255.0f);
|
||||||
anim1->speed = state->speed * 3.0f / 255.0f;
|
anim1->speed = state->speed * 3.0f / 255.0f;
|
||||||
@ -629,7 +629,7 @@ void CReplay::RetrievePedAnimation(CPed *ped, CStoredAnimationState *state)
|
|||||||
float blend = state->blendAmount * 2.0f / 255.0f;
|
float blend = state->blendAmount * 2.0f / 255.0f;
|
||||||
CAnimBlendAssociation* anim2 = CAnimManager::BlendAnimation(
|
CAnimBlendAssociation* anim2 = CAnimManager::BlendAnimation(
|
||||||
(RpClump*)ped->m_rwObject,
|
(RpClump*)ped->m_rwObject,
|
||||||
(state->secAnimId > 3) ? (AssocGroupId)state->secGroupId : ped->m_animGroup,
|
(state->secAnimId > ANIM_STD_IDLE) ? (AssocGroupId)state->secGroupId : ped->m_animGroup,
|
||||||
(AnimationId)state->secAnimId, 100.0f);
|
(AnimationId)state->secAnimId, 100.0f);
|
||||||
anim2->SetCurrentTime(time);
|
anim2->SetCurrentTime(time);
|
||||||
anim2->speed = speed;
|
anim2->speed = speed;
|
||||||
@ -641,7 +641,7 @@ void CReplay::RetrievePedAnimation(CPed *ped, CStoredAnimationState *state)
|
|||||||
float time = state->partAnimTime * 4.0f / 255.0f;
|
float time = state->partAnimTime * 4.0f / 255.0f;
|
||||||
float speed = state->partAnimSpeed * 3.0f / 255.0f;
|
float speed = state->partAnimSpeed * 3.0f / 255.0f;
|
||||||
float blend = state->partBlendAmount * 2.0f / 255.0f;
|
float blend = state->partBlendAmount * 2.0f / 255.0f;
|
||||||
if (blend > 0.0f && state->partAnimId != ANIM_IDLE_STANCE && HasAnimGroupLoaded(state->partGroupId)){
|
if (blend > 0.0f && state->partAnimId != ANIM_STD_IDLE && HasAnimGroupLoaded(state->partGroupId)){
|
||||||
CAnimBlendAssociation* anim3 = CAnimManager::BlendAnimation(
|
CAnimBlendAssociation* anim3 = CAnimManager::BlendAnimation(
|
||||||
(RpClump*)ped->m_rwObject, (AssocGroupId)state->partGroupId, (AnimationId)state->partAnimId, 1000.0f);
|
(RpClump*)ped->m_rwObject, (AssocGroupId)state->partGroupId, (AnimationId)state->partAnimId, 1000.0f);
|
||||||
anim3->SetCurrentTime(time);
|
anim3->SetCurrentTime(time);
|
||||||
@ -659,10 +659,10 @@ void CReplay::RetrieveDetailedPedAnimation(CPed *ped, CStoredDetailedAnimationSt
|
|||||||
for (int i = 0; ((assoc = RpAnimBlendClumpGetMainPartialAssociation_N(ped->GetClump(), i))); i++)
|
for (int i = 0; ((assoc = RpAnimBlendClumpGetMainPartialAssociation_N(ped->GetClump(), i))); i++)
|
||||||
assoc->SetBlend(0.0f, -1.0f);
|
assoc->SetBlend(0.0f, -1.0f);
|
||||||
for (int i = 0; i < NUM_MAIN_ANIMS_IN_REPLAY; i++) {
|
for (int i = 0; i < NUM_MAIN_ANIMS_IN_REPLAY; i++) {
|
||||||
if (state->aAnimId[i] == NUM_STD_ANIMS)
|
if (state->aAnimId[i] == ANIM_STD_NUM)
|
||||||
continue;
|
continue;
|
||||||
CAnimBlendAssociation* anim = CAnimManager::AddAnimation(ped->GetClump(),
|
CAnimBlendAssociation* anim = CAnimManager::AddAnimation(ped->GetClump(),
|
||||||
state->aAnimId[i] > 3 ? (AssocGroupId)state->aGroupId[i] : ped->m_animGroup,
|
state->aAnimId[i] > ANIM_STD_IDLE ? (AssocGroupId)state->aGroupId[i] : ped->m_animGroup,
|
||||||
(AnimationId)state->aAnimId[i]);
|
(AnimationId)state->aAnimId[i]);
|
||||||
anim->SetCurrentTime(state->aCurTime[i] * 4.0f / 255.0f);
|
anim->SetCurrentTime(state->aCurTime[i] * 4.0f / 255.0f);
|
||||||
anim->speed = state->aSpeed[i] * 3.0f / 255.0f;
|
anim->speed = state->aSpeed[i] * 3.0f / 255.0f;
|
||||||
@ -677,10 +677,10 @@ void CReplay::RetrieveDetailedPedAnimation(CPed *ped, CStoredDetailedAnimationSt
|
|||||||
anim->SetDeleteCallback(FindCBFunction(callback & 0x7F), ped);
|
anim->SetDeleteCallback(FindCBFunction(callback & 0x7F), ped);
|
||||||
}
|
}
|
||||||
for (int i = 0; i < NUM_PARTIAL_ANIMS_IN_REPLAY; i++) {
|
for (int i = 0; i < NUM_PARTIAL_ANIMS_IN_REPLAY; i++) {
|
||||||
if (state->aAnimId2[i] == NUM_STD_ANIMS)
|
if (state->aAnimId2[i] == ANIM_STD_NUM)
|
||||||
continue;
|
continue;
|
||||||
CAnimBlendAssociation* anim = CAnimManager::AddAnimation(ped->GetClump(),
|
CAnimBlendAssociation* anim = CAnimManager::AddAnimation(ped->GetClump(),
|
||||||
state->aAnimId2[i] > 3 ? (AssocGroupId)state->aGroupId2[i] : ped->m_animGroup,
|
state->aAnimId2[i] > ANIM_STD_IDLE ? (AssocGroupId)state->aGroupId2[i] : ped->m_animGroup,
|
||||||
(AnimationId)state->aAnimId2[i]);
|
(AnimationId)state->aAnimId2[i]);
|
||||||
anim->SetCurrentTime(state->aCurTime2[i] * 4.0f / 255.0f);
|
anim->SetCurrentTime(state->aCurTime2[i] * 4.0f / 255.0f);
|
||||||
anim->speed = state->aSpeed2[i] * 3.0f / 255.0f;
|
anim->speed = state->aSpeed2[i] * 3.0f / 255.0f;
|
||||||
|
@ -4756,7 +4756,7 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
|
|||||||
pPlayer->m_pPed->m_pVehicleAnim->blendDelta = -1000.0f;
|
pPlayer->m_pPed->m_pVehicleAnim->blendDelta = -1000.0f;
|
||||||
pPlayer->m_pPed->m_pVehicleAnim = nil;
|
pPlayer->m_pPed->m_pVehicleAnim = nil;
|
||||||
pPlayer->m_pPed->SetMoveState(PEDMOVE_NONE);
|
pPlayer->m_pPed->SetMoveState(PEDMOVE_NONE);
|
||||||
CAnimManager::BlendAnimation(pPlayer->m_pPed->GetClump(), pPlayer->m_pPed->m_animGroup, ANIM_IDLE_STANCE, 1000.0f);
|
CAnimManager::BlendAnimation(pPlayer->m_pPed->GetClump(), pPlayer->m_pPed->m_animGroup, ANIM_STD_IDLE, 1000.0f);
|
||||||
pPlayer->m_pPed->RestartNonPartialAnims();
|
pPlayer->m_pPed->RestartNonPartialAnims();
|
||||||
AudioManager.PlayerJustLeftCar();
|
AudioManager.PlayerJustLeftCar();
|
||||||
pos.z += pPlayer->m_pPed->GetDistanceFromCentreOfMassToBaseOfModel();
|
pos.z += pPlayer->m_pPed->GetDistanceFromCentreOfMassToBaseOfModel();
|
||||||
|
@ -822,7 +822,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pPed->m_pMyVehicle->m_nGettingOutFlags &= ~flags;
|
pPed->m_pMyVehicle->m_nGettingOutFlags &= ~flags;
|
||||||
pPed->m_pMyVehicle->ProcessOpenDoor(pPed->m_vehDoor, NUM_STD_ANIMS, 0.0f);
|
pPed->m_pMyVehicle->ProcessOpenDoor(pPed->m_vehDoor, ANIM_STD_NUM, 0.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -839,7 +839,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
|
|||||||
pPed->m_pVehicleAnim = nil;
|
pPed->m_pVehicleAnim = nil;
|
||||||
pPed->RestartNonPartialAnims();
|
pPed->RestartNonPartialAnims();
|
||||||
pPed->SetMoveState(PEDMOVE_NONE);
|
pPed->SetMoveState(PEDMOVE_NONE);
|
||||||
CAnimManager::BlendAnimation(pPed->GetClump(), pPed->m_animGroup, ANIM_IDLE_STANCE, 1000.0f);
|
CAnimManager::BlendAnimation(pPed->GetClump(), pPed->m_animGroup, ANIM_STD_IDLE, 1000.0f);
|
||||||
pos.z += pPed->GetDistanceFromCentreOfMassToBaseOfModel();
|
pos.z += pPed->GetDistanceFromCentreOfMassToBaseOfModel();
|
||||||
pPed->Teleport(pos);
|
pPed->Teleport(pos);
|
||||||
CTheScripts::ClearSpaceForMissionEntity(pos, pPed);
|
CTheScripts::ClearSpaceForMissionEntity(pos, pPed);
|
||||||
|
@ -2627,10 +2627,10 @@ bool CTheScripts::IsPlayerStopped(CPlayerInfo* pPlayer)
|
|||||||
CPed* pPed = pPlayer->m_pPed;
|
CPed* pPed = pPlayer->m_pPed;
|
||||||
if (pPed->InVehicle())
|
if (pPed->InVehicle())
|
||||||
return IsVehicleStopped(pPed->m_pMyVehicle);
|
return IsVehicleStopped(pPed->m_pMyVehicle);
|
||||||
if (RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_RUN_STOP) ||
|
if (RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_STD_RUNSTOP1) ||
|
||||||
RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_RUN_STOP_R) ||
|
RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_STD_RUNSTOP2) ||
|
||||||
RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_JUMP_LAUNCH) ||
|
RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_STD_JUMP_LAUNCH) ||
|
||||||
RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_JUMP_GLIDE))
|
RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_STD_JUMP_GLIDE))
|
||||||
return false;
|
return false;
|
||||||
return (pPed->m_nMoveState == PEDMOVE_NONE || pPed->m_nMoveState == PEDMOVE_STILL) &&
|
return (pPed->m_nMoveState == PEDMOVE_NONE || pPed->m_nMoveState == PEDMOVE_STILL) &&
|
||||||
!pPed->bIsInTheAir && !pPed->bIsLanding && pPed->bIsStanding && pPed->m_vecAnimMoveDelta.x == 0.0f && pPed->m_vecAnimMoveDelta.y == 0.0f;
|
!pPed->bIsInTheAir && !pPed->bIsLanding && pPed->bIsStanding && pPed->m_vecAnimMoveDelta.x == 0.0f && pPed->m_vecAnimMoveDelta.y == 0.0f;
|
||||||
|
@ -55,7 +55,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
|
|||||||
((CPlayerPed*)pPed)->m_fMoveSpeed = 0.0f;
|
((CPlayerPed*)pPed)->m_fMoveSpeed = 0.0f;
|
||||||
else
|
else
|
||||||
pPed->m_nStoredMoveState = PEDMOVE_STILL;
|
pPed->m_nStoredMoveState = PEDMOVE_STILL;
|
||||||
CAnimManager::AddAnimation(pPed->GetClump(), pPed->m_animGroup, ANIM_IDLE_STANCE);
|
CAnimManager::AddAnimation(pPed->GetClump(), pPed->m_animGroup, ANIM_STD_IDLE);
|
||||||
pPed->bIsPedDieAnimPlaying = false;
|
pPed->bIsPedDieAnimPlaying = false;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@ -346,7 +346,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
|
|||||||
CollectParameters(&m_nIp, 1);
|
CollectParameters(&m_nIp, 1);
|
||||||
CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]);
|
CPed* pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]);
|
||||||
script_assert(pPed);
|
script_assert(pPed);
|
||||||
UpdateCompareFlag(RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_DUCK_DOWN) != nil);
|
UpdateCompareFlag(RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_STD_DUCK_DOWN) != nil);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_CREATE_DUST_EFFECT_FOR_CUTSCENE_HELI:
|
case COMMAND_CREATE_DUST_EFFECT_FOR_CUTSCENE_HELI:
|
||||||
|
@ -245,7 +245,7 @@ CAnimViewer::Update(void)
|
|||||||
if (modelInfo->GetModelType() == MITYPE_PED) {
|
if (modelInfo->GetModelType() == MITYPE_PED) {
|
||||||
int animGroup = ((CPedModelInfo*)modelInfo)->m_animGroup;
|
int animGroup = ((CPedModelInfo*)modelInfo)->m_animGroup;
|
||||||
|
|
||||||
if (animId > ANIM_IDLE_STANCE)
|
if (animId > ANIM_STD_IDLE)
|
||||||
animGroup = ASSOCGRP_STD;
|
animGroup = ASSOCGRP_STD;
|
||||||
|
|
||||||
if (reloadIFP) {
|
if (reloadIFP) {
|
||||||
@ -334,14 +334,14 @@ CAnimViewer::Update(void)
|
|||||||
CMessages::AddMessage(gUString, 1000, 0);
|
CMessages::AddMessage(gUString, 1000, 0);
|
||||||
|
|
||||||
} else if (pad->GetCircleJustDown()) {
|
} else if (pad->GetCircleJustDown()) {
|
||||||
PlayAnimation(pTarget->GetClump(), animGroup, ANIM_IDLE_STANCE);
|
PlayAnimation(pTarget->GetClump(), animGroup, ANIM_STD_IDLE);
|
||||||
AsciiToUnicode("Idle animation playing", gUString);
|
AsciiToUnicode("Idle animation playing", gUString);
|
||||||
CMessages::AddMessage(gUString, 1000, 0);
|
CMessages::AddMessage(gUString, 1000, 0);
|
||||||
|
|
||||||
} else if (pad->GetDPadUpJustDown()) {
|
} else if (pad->GetDPadUpJustDown()) {
|
||||||
animId--;
|
animId--;
|
||||||
if (animId < 0) {
|
if (animId < 0) {
|
||||||
animId = NUM_STD_ANIMS - 1;
|
animId = ANIM_STD_NUM - 1;
|
||||||
}
|
}
|
||||||
PlayAnimation(pTarget->GetClump(), animGroup, (AnimationId)animId);
|
PlayAnimation(pTarget->GetClump(), animGroup, (AnimationId)animId);
|
||||||
|
|
||||||
@ -350,7 +350,7 @@ CAnimViewer::Update(void)
|
|||||||
CMessages::AddMessage(gUString, 1000, 0);
|
CMessages::AddMessage(gUString, 1000, 0);
|
||||||
|
|
||||||
} else if (pad->GetDPadDownJustDown()) {
|
} else if (pad->GetDPadDownJustDown()) {
|
||||||
animId = (animId == (NUM_STD_ANIMS - 1) ? 0 : animId + 1);
|
animId = (animId == (ANIM_STD_NUM - 1) ? 0 : animId + 1);
|
||||||
PlayAnimation(pTarget->GetClump(), animGroup, (AnimationId)animId);
|
PlayAnimation(pTarget->GetClump(), animGroup, (AnimationId)animId);
|
||||||
|
|
||||||
sprintf(gString, "Current anim: %d", animId);
|
sprintf(gString, "Current anim: %d", animId);
|
||||||
|
@ -326,6 +326,11 @@ uint32 CControllerConfigManager::ms_padButtonsInited = 0;
|
|||||||
|
|
||||||
void CControllerConfigManager::InitDefaultControlConfigJoyPad(uint32 buttons)
|
void CControllerConfigManager::InitDefaultControlConfigJoyPad(uint32 buttons)
|
||||||
{
|
{
|
||||||
|
#ifdef XINPUT
|
||||||
|
// No manual bindings for you, honey.
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
m_bFirstCapture = true;
|
m_bFirstCapture = true;
|
||||||
|
|
||||||
uint32 btn = buttons;
|
uint32 btn = buttons;
|
||||||
|
@ -317,6 +317,7 @@ CFileLoader::LoadCollisionModel(uint8 *buf, CColModel &model, char *modelname)
|
|||||||
buf += 4;
|
buf += 4;
|
||||||
if(model.numLines > 0){
|
if(model.numLines > 0){
|
||||||
//model.lines = (CColLine*)RwMalloc(model.numLines*sizeof(CColLine));
|
//model.lines = (CColLine*)RwMalloc(model.numLines*sizeof(CColLine));
|
||||||
|
REGISTER_MEMPTR(&model.lines);
|
||||||
for(i = 0; i < model.numLines; i++){
|
for(i = 0; i < model.numLines; i++){
|
||||||
//model.lines[i].Set(*(CVector*)buf, *(CVector*)(buf+12));
|
//model.lines[i].Set(*(CVector*)buf, *(CVector*)(buf+12));
|
||||||
buf += 24;
|
buf += 24;
|
||||||
|
@ -215,7 +215,7 @@ enum eMenuScreen
|
|||||||
#ifdef GRAPHICS_MENU_OPTIONS
|
#ifdef GRAPHICS_MENU_OPTIONS
|
||||||
MENUPAGE_GRAPHICS_SETTINGS,
|
MENUPAGE_GRAPHICS_SETTINGS,
|
||||||
#endif
|
#endif
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
MENUPAGE_DETECT_JOYSTICK,
|
MENUPAGE_DETECT_JOYSTICK,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -381,6 +381,11 @@ bool CGame::Initialise(const char* datFile)
|
|||||||
CTxdStore::Create(gameTxdSlot);
|
CTxdStore::Create(gameTxdSlot);
|
||||||
CTxdStore::AddRef(gameTxdSlot);
|
CTxdStore::AddRef(gameTxdSlot);
|
||||||
|
|
||||||
|
#ifdef EXTENDED_PIPELINES
|
||||||
|
// for generic fallback
|
||||||
|
CustomPipes::SetTxdFindCallback();
|
||||||
|
#endif
|
||||||
|
|
||||||
LoadingScreen("Loading the Game", "Loading particles", nil);
|
LoadingScreen("Loading the Game", "Loading particles", nil);
|
||||||
int particleTxdSlot = CTxdStore::AddTxdSlot("particle");
|
int particleTxdSlot = CTxdStore::AddTxdSlot("particle");
|
||||||
CTxdStore::LoadTxd(particleTxdSlot, "MODELS/PARTICLE.TXD");
|
CTxdStore::LoadTxd(particleTxdSlot, "MODELS/PARTICLE.TXD");
|
||||||
@ -440,10 +445,7 @@ bool CGame::Initialise(const char* datFile)
|
|||||||
|
|
||||||
CFileLoader::LoadLevel("DATA\\DEFAULT.DAT");
|
CFileLoader::LoadLevel("DATA\\DEFAULT.DAT");
|
||||||
CFileLoader::LoadLevel(datFile);
|
CFileLoader::LoadLevel(datFile);
|
||||||
#ifdef EXTENDED_PIPELINES
|
|
||||||
// for generic fallback
|
|
||||||
CustomPipes::SetTxdFindCallback();
|
|
||||||
#endif
|
|
||||||
LoadingScreen("Loading the Game", "Add Particles", nil);
|
LoadingScreen("Loading the Game", "Add Particles", nil);
|
||||||
CWorld::AddParticles();
|
CWorld::AddParticles();
|
||||||
CVehicleModelInfo::LoadVehicleColours();
|
CVehicleModelInfo::LoadVehicleColours();
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#if defined DETECT_JOYSTICK_MENU && defined XINPUT
|
||||||
|
#include <windows.h>
|
||||||
|
#include <xinput.h>
|
||||||
|
#if !defined(PSAPI_VERSION) || (PSAPI_VERSION > 1)
|
||||||
|
#pragma comment( lib, "Xinput9_1_0.lib" )
|
||||||
|
#else
|
||||||
|
#pragma comment( lib, "Xinput.lib" )
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "crossplatform.h"
|
#include "crossplatform.h"
|
||||||
#include "Renderer.h"
|
#include "Renderer.h"
|
||||||
@ -283,11 +292,13 @@ void ScreenModeAfterChange(int8 before, int8 after)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
wchar selectedJoystickUnicode[128];
|
wchar selectedJoystickUnicode[128];
|
||||||
int cachedButtonNum = -1;
|
int cachedButtonNum = -1;
|
||||||
|
|
||||||
wchar* DetectJoystickDraw(bool* disabled, bool userHovering) {
|
wchar* DetectJoystickDraw(bool* disabled, bool userHovering) {
|
||||||
|
|
||||||
|
#if defined RW_GL3 && !defined LIBRW_SDL2
|
||||||
int numButtons;
|
int numButtons;
|
||||||
int found = -1;
|
int found = -1;
|
||||||
const char *joyname;
|
const char *joyname;
|
||||||
@ -318,6 +329,40 @@ wchar* DetectJoystickDraw(bool* disabled, bool userHovering) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (PSGLOBAL(joy1id) == -1)
|
if (PSGLOBAL(joy1id) == -1)
|
||||||
|
#elif defined XINPUT
|
||||||
|
int found = -1;
|
||||||
|
XINPUT_STATE xstate;
|
||||||
|
memset(&xstate, 0, sizeof(XINPUT_STATE));
|
||||||
|
if (userHovering) {
|
||||||
|
for (int i = 0; i <= 3; i++) {
|
||||||
|
if (XInputGetState(i, &xstate) == ERROR_SUCCESS) {
|
||||||
|
if (xstate.Gamepad.bLeftTrigger || xstate.Gamepad.bRightTrigger) {
|
||||||
|
found = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
for (int j = XINPUT_GAMEPAD_DPAD_UP; j != XINPUT_GAMEPAD_Y << 1; j = (j << 1)) {
|
||||||
|
if (xstate.Gamepad.wButtons & j) {
|
||||||
|
found = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (found != -1)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (found != -1 && CPad::XInputJoy1 != found) {
|
||||||
|
if (CPad::XInputJoy1 != -1 && CPad::XInputJoy1 != found)
|
||||||
|
CPad::XInputJoy2 = CPad::XInputJoy1;
|
||||||
|
else
|
||||||
|
CPad::XInputJoy2 = -1;
|
||||||
|
|
||||||
|
CPad::XInputJoy1 = found;
|
||||||
|
cachedButtonNum = 0; // fake too, because xinput bypass CControllerConfig
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sprintf(gSelectedJoystickName, "%d", CPad::XInputJoy1); // fake, on xinput we only store gamepad ids(thanks MS) so this is a temp variable to be used below
|
||||||
|
if (CPad::XInputJoy1 == -1)
|
||||||
|
#endif
|
||||||
AsciiToUnicode("Not found", selectedJoystickUnicode);
|
AsciiToUnicode("Not found", selectedJoystickUnicode);
|
||||||
else
|
else
|
||||||
AsciiToUnicode(gSelectedJoystickName, selectedJoystickUnicode);
|
AsciiToUnicode(gSelectedJoystickName, selectedJoystickUnicode);
|
||||||
@ -744,7 +789,7 @@ CMenuScreenCustom aScreens[] = {
|
|||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
// MENUPAGE_DETECT_JOYSTICK
|
// MENUPAGE_DETECT_JOYSTICK
|
||||||
{ "FEC_JOD", MENUPAGE_CONTROLLER_PC, new CCustomScreenLayout({0, 0, 0, false, false, 30}), DetectJoystickGoBack,
|
{ "FEC_JOD", MENUPAGE_CONTROLLER_PC, new CCustomScreenLayout({0, 0, 0, false, false, 30}), DetectJoystickGoBack,
|
||||||
MENUACTION_LABEL, "FEC_JPR", { nil, SAVESLOT_NONE, MENUPAGE_NONE }, 0, 0, 0,
|
MENUACTION_LABEL, "FEC_JPR", { nil, SAVESLOT_NONE, MENUPAGE_NONE }, 0, 0, 0,
|
||||||
|
@ -1585,8 +1585,14 @@ void CPad::AddToPCCheatString(char c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XINPUT
|
#ifdef XINPUT
|
||||||
|
int CPad::XInputJoy1 = 0;
|
||||||
|
int CPad::XInputJoy2 = 1;
|
||||||
void CPad::AffectFromXinput(uint32 pad)
|
void CPad::AffectFromXinput(uint32 pad)
|
||||||
{
|
{
|
||||||
|
pad = pad == 0 ? XInputJoy1 : XInputJoy2;
|
||||||
|
if (pad == -1) // LoadINIControllerSettings can set it to -1
|
||||||
|
return;
|
||||||
|
|
||||||
XINPUT_STATE xstate;
|
XINPUT_STATE xstate;
|
||||||
memset(&xstate, 0, sizeof(XINPUT_STATE));
|
memset(&xstate, 0, sizeof(XINPUT_STATE));
|
||||||
if (XInputGetState(pad, &xstate) == ERROR_SUCCESS)
|
if (XInputGetState(pad, &xstate) == ERROR_SUCCESS)
|
||||||
|
@ -276,6 +276,8 @@ public:
|
|||||||
void SetDrunkInputDelay(int32 delay) { DrunkDrivingBufferUsed = delay; }
|
void SetDrunkInputDelay(int32 delay) { DrunkDrivingBufferUsed = delay; }
|
||||||
|
|
||||||
#ifdef XINPUT
|
#ifdef XINPUT
|
||||||
|
static int XInputJoy1;
|
||||||
|
static int XInputJoy2;
|
||||||
void AffectFromXinput(uint32 pad);
|
void AffectFromXinput(uint32 pad);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ CRopes::CreateRopeWithSwatComingDown(CVector pos)
|
|||||||
swat->bUsesCollision = false;
|
swat->bUsesCollision = false;
|
||||||
swat->m_pRopeEntity = (CEntity*)1;
|
swat->m_pRopeEntity = (CEntity*)1;
|
||||||
swat->m_nRopeID = 100 + ropeId;
|
swat->m_nRopeID = 100 + ropeId;
|
||||||
CAnimManager::BlendAnimation(swat->GetClump(), ASSOCGRP_STD, ANIM_ABSEIL, 4.0f);
|
CAnimManager::BlendAnimation(swat->GetClump(), ASSOCGRP_STD, ANIM_STD_ABSEIL, 4.0f);
|
||||||
ropeId++;
|
ropeId++;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -2213,7 +2213,7 @@ CWorld::TriggerExplosionSectorList(CPtrList &list, const CVector &position, floa
|
|||||||
PEDPIECE_TORSO, direction);
|
PEDPIECE_TORSO, direction);
|
||||||
if(pPed->m_nPedState != PED_DIE)
|
if(pPed->m_nPedState != PED_DIE)
|
||||||
pPed->SetFall(2000,
|
pPed->SetFall(2000,
|
||||||
(AnimationId)(direction + ANIM_KO_SKID_FRONT), 0);
|
(AnimationId)(direction + ANIM_STD_HIGHIMPACT_FRONT), 0);
|
||||||
if(pCreator && pCreator->IsPed()) {
|
if(pCreator && pCreator->IsPed()) {
|
||||||
eEventType eventType = EVENT_SHOOT_PED;
|
eEventType eventType = EVENT_SHOOT_PED;
|
||||||
if(pPed->m_nPedType == PEDTYPE_COP) eventType = EVENT_SHOOT_COP;
|
if(pPed->m_nPedType == PEDTYPE_COP) eventType = EVENT_SHOOT_COP;
|
||||||
|
@ -298,8 +298,8 @@ enum Config {
|
|||||||
#if !defined(RW_GL3) && defined(_WIN32)
|
#if !defined(RW_GL3) && defined(_WIN32)
|
||||||
#define XINPUT
|
#define XINPUT
|
||||||
#endif
|
#endif
|
||||||
#if !defined(_WIN32) && !defined(__SWITCH__)
|
#if defined XINPUT || (defined RW_GL3 && !defined LIBRW_SDL2 && !defined __SWITCH__)
|
||||||
#define DONT_TRUST_RECOGNIZED_JOYSTICKS // Then we'll only rely on GLFW gamepad DB, and expect user to enter Controller->Detect joysticks if his joystick isn't on that list.
|
#define DETECT_JOYSTICK_MENU // Then we'll expect user to enter Controller->Detect joysticks if his joystick isn't detected at the start.
|
||||||
#endif
|
#endif
|
||||||
#define DETECT_PAD_INPUT_SWITCH // Adds automatic switch of pad related stuff between controller and kb/m
|
#define DETECT_PAD_INPUT_SWITCH // Adds automatic switch of pad related stuff between controller and kb/m
|
||||||
#define KANGAROO_CHEAT
|
#define KANGAROO_CHEAT
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
#include <csignal>
|
#include <csignal>
|
||||||
#define WITHWINDOWS
|
#define WITHWINDOWS
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#if defined DETECT_JOYSTICK_MENU && defined XINPUT
|
||||||
|
#include <xinput.h>
|
||||||
|
#if !defined(PSAPI_VERSION) || (PSAPI_VERSION > 1)
|
||||||
|
#pragma comment( lib, "Xinput9_1_0.lib" )
|
||||||
|
#else
|
||||||
|
#pragma comment( lib, "Xinput.lib" )
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#include "Renderer.h"
|
#include "Renderer.h"
|
||||||
#include "Occlusion.h"
|
#include "Occlusion.h"
|
||||||
#include "Credits.h"
|
#include "Credits.h"
|
||||||
@ -37,7 +45,7 @@
|
|||||||
#include "MBlur.h"
|
#include "MBlur.h"
|
||||||
#include "ControllerConfig.h"
|
#include "ControllerConfig.h"
|
||||||
|
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
#include "crossplatform.h"
|
#include "crossplatform.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -249,8 +257,32 @@ const char *iniKeyboardButtons[] = {"ESC","F1","F2","F3","F4","F5","F6","F7","F8
|
|||||||
|
|
||||||
void LoadINIControllerSettings()
|
void LoadINIControllerSettings()
|
||||||
{
|
{
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
|
#ifdef XINPUT
|
||||||
|
int storedJoy1 = -1;
|
||||||
|
if (ReadIniIfExists("Controller", "JoystickName", &storedJoy1)) {
|
||||||
|
CPad::XInputJoy1 = -1;
|
||||||
|
CPad::XInputJoy2 = -1;
|
||||||
|
XINPUT_STATE xstate;
|
||||||
|
memset(&xstate, 0, sizeof(XINPUT_STATE));
|
||||||
|
|
||||||
|
// Firstly confirm & set joy 1
|
||||||
|
if (XInputGetState(storedJoy1, &xstate) == ERROR_SUCCESS) {
|
||||||
|
CPad::XInputJoy1 = storedJoy1;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i <= 3; i++) {
|
||||||
|
if (XInputGetState(i, &xstate) == ERROR_SUCCESS) {
|
||||||
|
if (CPad::XInputJoy1 == -1)
|
||||||
|
CPad::XInputJoy1 = i;
|
||||||
|
else if (CPad::XInputJoy2 == -1 && i != CPad::XInputJoy1)
|
||||||
|
CPad::XInputJoy2 = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
ReadIniIfExists("Controller", "JoystickName", gSelectedJoystickName, 128);
|
ReadIniIfExists("Controller", "JoystickName", gSelectedJoystickName, 128);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
// force to default GTA behaviour (never overwrite bindings on joy change/initialization) if user init'ed/set bindings before we introduced that
|
// force to default GTA behaviour (never overwrite bindings on joy change/initialization) if user init'ed/set bindings before we introduced that
|
||||||
if (!ReadIniIfExists("Controller", "PadButtonsInited", &ControlsManager.ms_padButtonsInited)) {
|
if (!ReadIniIfExists("Controller", "PadButtonsInited", &ControlsManager.ms_padButtonsInited)) {
|
||||||
@ -348,8 +380,12 @@ void SaveINIControllerSettings()
|
|||||||
StoreIni("Bindings", iniControllerActions[i], value, 128);
|
StoreIni("Bindings", iniControllerActions[i], value, 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
|
#ifdef XINPUT
|
||||||
|
StoreIni("Controller", "JoystickName", CPad::XInputJoy1);
|
||||||
|
#else
|
||||||
StoreIni("Controller", "JoystickName", gSelectedJoystickName, 128);
|
StoreIni("Controller", "JoystickName", gSelectedJoystickName, 128);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
StoreIni("Controller", "PadButtonsInited", ControlsManager.ms_padButtonsInited);
|
StoreIni("Controller", "PadButtonsInited", ControlsManager.ms_padButtonsInited);
|
||||||
cfg.write_file("reVC.ini");
|
cfg.write_file("reVC.ini");
|
||||||
|
@ -89,6 +89,7 @@ vehicleRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int vsBits;
|
int vsBits;
|
||||||
|
rw::uint32 flags = atomic->geometry->flags;
|
||||||
setStreamSource(0, header->vertexStream[0].vertexBuffer, 0, header->vertexStream[0].stride);
|
setStreamSource(0, header->vertexStream[0].vertexBuffer, 0, header->vertexStream[0].stride);
|
||||||
setIndices(header->indexBuffer);
|
setIndices(header->indexBuffer);
|
||||||
setVertexDeclaration(header->vertexDeclaration);
|
setVertexDeclaration(header->vertexDeclaration);
|
||||||
@ -120,7 +121,7 @@ vehicleRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
|||||||
reflProps[3] = m->surfaceProps.specular == 0.0f ? 0.0f : VehicleSpecularity;
|
reflProps[3] = m->surfaceProps.specular == 0.0f ? 0.0f : VehicleSpecularity;
|
||||||
d3ddevice->SetVertexShaderConstantF(VSLOC_reflProps, reflProps, 1);
|
d3ddevice->SetVertexShaderConstantF(VSLOC_reflProps, reflProps, 1);
|
||||||
|
|
||||||
setMaterial(m->color, m->surfaceProps);
|
setMaterial(flags, m->color, m->surfaceProps);
|
||||||
|
|
||||||
if(m->texture)
|
if(m->texture)
|
||||||
d3d::setTexture(0, m->texture);
|
d3d::setTexture(0, m->texture);
|
||||||
@ -150,11 +151,11 @@ CreateVehiclePipe(void)
|
|||||||
fp = ReadTweakValueTable(fp, SpecColor);
|
fp = ReadTweakValueTable(fp, SpecColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "shaders/neoVehicle_VS.inc"
|
#include "shaders/obj/neoVehicle_VS.inc"
|
||||||
neoVehicle_VS = rw::d3d::createVertexShader(neoVehicle_VS_cso);
|
neoVehicle_VS = rw::d3d::createVertexShader(neoVehicle_VS_cso);
|
||||||
assert(neoVehicle_VS);
|
assert(neoVehicle_VS);
|
||||||
|
|
||||||
#include "shaders/neoVehicle_PS.inc"
|
#include "shaders/obj/neoVehicle_PS.inc"
|
||||||
neoVehicle_PS = rw::d3d::createPixelShader(neoVehicle_PS_cso);
|
neoVehicle_PS = rw::d3d::createPixelShader(neoVehicle_PS_cso);
|
||||||
assert(neoVehicle_PS);
|
assert(neoVehicle_PS);
|
||||||
|
|
||||||
@ -260,11 +261,11 @@ CreateWorldPipe(void)
|
|||||||
else
|
else
|
||||||
ReadTweakValueTable((char*)work_buff, WorldLightmapBlend);
|
ReadTweakValueTable((char*)work_buff, WorldLightmapBlend);
|
||||||
|
|
||||||
#include "shaders/default_UV2_VS.inc"
|
#include "shaders/obj/default_UV2_VS.inc"
|
||||||
neoWorld_VS = rw::d3d::createVertexShader(default_UV2_VS_cso);
|
neoWorld_VS = rw::d3d::createVertexShader(default_UV2_VS_cso);
|
||||||
assert(neoWorld_VS);
|
assert(neoWorld_VS);
|
||||||
|
|
||||||
#include "shaders/neoWorldVC_PS.inc"
|
#include "shaders/obj/neoWorldVC_PS.inc"
|
||||||
neoWorldVC_PS = rw::d3d::createPixelShader(neoWorldVC_PS_cso);
|
neoWorldVC_PS = rw::d3d::createPixelShader(neoWorldVC_PS_cso);
|
||||||
assert(neoWorldVC_PS);
|
assert(neoWorldVC_PS);
|
||||||
|
|
||||||
@ -347,11 +348,11 @@ glossRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
|||||||
void
|
void
|
||||||
CreateGlossPipe(void)
|
CreateGlossPipe(void)
|
||||||
{
|
{
|
||||||
#include "shaders/neoGloss_VS.inc"
|
#include "shaders/obj/neoGloss_VS.inc"
|
||||||
neoGloss_VS = rw::d3d::createVertexShader(neoGloss_VS_cso);
|
neoGloss_VS = rw::d3d::createVertexShader(neoGloss_VS_cso);
|
||||||
assert(neoGloss_VS);
|
assert(neoGloss_VS);
|
||||||
|
|
||||||
#include "shaders/neoGloss_PS.inc"
|
#include "shaders/obj/neoGloss_PS.inc"
|
||||||
neoGloss_PS = rw::d3d::createPixelShader(neoGloss_PS_cso);
|
neoGloss_PS = rw::d3d::createPixelShader(neoGloss_PS_cso);
|
||||||
assert(neoGloss_PS);
|
assert(neoGloss_PS);
|
||||||
|
|
||||||
@ -421,6 +422,7 @@ rimRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int vsBits;
|
int vsBits;
|
||||||
|
rw::uint32 flags = atomic->geometry->flags;
|
||||||
setStreamSource(0, header->vertexStream[0].vertexBuffer, 0, header->vertexStream[0].stride);
|
setStreamSource(0, header->vertexStream[0].vertexBuffer, 0, header->vertexStream[0].stride);
|
||||||
setIndices(header->indexBuffer);
|
setIndices(header->indexBuffer);
|
||||||
setVertexDeclaration(header->vertexDeclaration);
|
setVertexDeclaration(header->vertexDeclaration);
|
||||||
@ -438,7 +440,7 @@ rimRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
|||||||
|
|
||||||
SetRenderState(VERTEXALPHA, inst->vertexAlpha || m->color.alpha != 255);
|
SetRenderState(VERTEXALPHA, inst->vertexAlpha || m->color.alpha != 255);
|
||||||
|
|
||||||
setMaterial(m->color, m->surfaceProps);
|
setMaterial(flags, m->color, m->surfaceProps);
|
||||||
|
|
||||||
if(m->texture){
|
if(m->texture){
|
||||||
d3d::setTexture(0, m->texture);
|
d3d::setTexture(0, m->texture);
|
||||||
@ -464,7 +466,7 @@ rimSkinRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int vsBits;
|
int vsBits;
|
||||||
|
rw::uint32 flags = atomic->geometry->flags;
|
||||||
setStreamSource(0, (IDirect3DVertexBuffer9*)header->vertexStream[0].vertexBuffer,
|
setStreamSource(0, (IDirect3DVertexBuffer9*)header->vertexStream[0].vertexBuffer,
|
||||||
0, header->vertexStream[0].stride);
|
0, header->vertexStream[0].stride);
|
||||||
setIndices((IDirect3DIndexBuffer9*)header->indexBuffer);
|
setIndices((IDirect3DIndexBuffer9*)header->indexBuffer);
|
||||||
@ -485,7 +487,7 @@ rimSkinRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
|||||||
|
|
||||||
SetRenderState(VERTEXALPHA, inst->vertexAlpha || m->color.alpha != 255);
|
SetRenderState(VERTEXALPHA, inst->vertexAlpha || m->color.alpha != 255);
|
||||||
|
|
||||||
setMaterial(m->color, m->surfaceProps);
|
setMaterial(flags, m->color, m->surfaceProps);
|
||||||
|
|
||||||
if(inst->material->texture){
|
if(inst->material->texture){
|
||||||
d3d::setTexture(0, m->texture);
|
d3d::setTexture(0, m->texture);
|
||||||
@ -513,11 +515,11 @@ CreateRimLightPipes(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#include "shaders/neoRim_VS.inc"
|
#include "shaders/obj/neoRim_VS.inc"
|
||||||
neoRim_VS = rw::d3d::createVertexShader(neoRim_VS_cso);
|
neoRim_VS = rw::d3d::createVertexShader(neoRim_VS_cso);
|
||||||
assert(neoRim_VS);
|
assert(neoRim_VS);
|
||||||
|
|
||||||
#include "shaders/neoRimSkin_VS.inc"
|
#include "shaders/obj/neoRimSkin_VS.inc"
|
||||||
neoRimSkin_VS = rw::d3d::createVertexShader(neoRimSkin_VS_cso);
|
neoRimSkin_VS = rw::d3d::createVertexShader(neoRimSkin_VS_cso);
|
||||||
assert(neoRimSkin_VS);
|
assert(neoRimSkin_VS);
|
||||||
|
|
||||||
@ -611,6 +613,7 @@ AtomicFirstPass(RpAtomic *atomic, int pass)
|
|||||||
assert(building->instHeader->platform == PLATFORM_D3D9);
|
assert(building->instHeader->platform == PLATFORM_D3D9);
|
||||||
building->fadeAlpha = 255;
|
building->fadeAlpha = 255;
|
||||||
building->lighting = !!(atomic->geometry->flags & rw::Geometry::LIGHT);
|
building->lighting = !!(atomic->geometry->flags & rw::Geometry::LIGHT);
|
||||||
|
rw::uint32 flags = atomic->geometry->flags;
|
||||||
|
|
||||||
bool setupDone = false;
|
bool setupDone = false;
|
||||||
bool defer = false;
|
bool defer = false;
|
||||||
@ -640,7 +643,7 @@ AtomicFirstPass(RpAtomic *atomic, int pass)
|
|||||||
setupDone = true;
|
setupDone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
setMaterial(m->color, m->surfaceProps);
|
setMaterial(flags, m->color, m->surfaceProps);
|
||||||
|
|
||||||
if(m->texture){
|
if(m->texture){
|
||||||
d3d::setTexture(0, m->texture);
|
d3d::setTexture(0, m->texture);
|
||||||
@ -703,7 +706,7 @@ RenderBlendPass(int pass)
|
|||||||
|
|
||||||
rw::RGBA color = m->color;
|
rw::RGBA color = m->color;
|
||||||
color.alpha = (color.alpha * building->fadeAlpha)/255;
|
color.alpha = (color.alpha * building->fadeAlpha)/255;
|
||||||
setMaterial(color, m->surfaceProps);
|
setMaterial(color, m->surfaceProps); // always modulate here
|
||||||
|
|
||||||
if(m->texture){
|
if(m->texture){
|
||||||
d3d::setTexture(0, m->texture);
|
d3d::setTexture(0, m->texture);
|
||||||
|
@ -87,6 +87,7 @@ vehicleRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
|
|||||||
|
|
||||||
Material *m;
|
Material *m;
|
||||||
|
|
||||||
|
rw::uint32 flags = atomic->geometry->flags;
|
||||||
setWorldMatrix(atomic->getFrame()->getLTM());
|
setWorldMatrix(atomic->getFrame()->getLTM());
|
||||||
lightingCB(atomic);
|
lightingCB(atomic);
|
||||||
|
|
||||||
@ -119,7 +120,7 @@ vehicleRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
|
|||||||
while(n--){
|
while(n--){
|
||||||
m = inst->material;
|
m = inst->material;
|
||||||
|
|
||||||
setMaterial(m->color, m->surfaceProps);
|
setMaterial(flags, m->color, m->surfaceProps);
|
||||||
|
|
||||||
setTexture(0, m->texture);
|
setTexture(0, m->texture);
|
||||||
|
|
||||||
@ -160,8 +161,8 @@ CreateVehiclePipe(void)
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
#include "shaders/neoVehicle_fs_gl.inc"
|
#include "shaders/obj/neoVehicle_frag.inc"
|
||||||
#include "shaders/neoVehicle_vs_gl.inc"
|
#include "shaders/obj/neoVehicle_vert.inc"
|
||||||
const char *vs[] = { shaderDecl, header_vert_src, neoVehicle_vert_src, nil };
|
const char *vs[] = { shaderDecl, header_vert_src, neoVehicle_vert_src, nil };
|
||||||
const char *fs[] = { shaderDecl, header_frag_src, neoVehicle_frag_src, nil };
|
const char *fs[] = { shaderDecl, header_frag_src, neoVehicle_frag_src, nil };
|
||||||
neoVehicleShader = Shader::create(vs, fs);
|
neoVehicleShader = Shader::create(vs, fs);
|
||||||
@ -271,8 +272,8 @@ CreateWorldPipe(void)
|
|||||||
ReadTweakValueTable((char*)work_buff, WorldLightmapBlend);
|
ReadTweakValueTable((char*)work_buff, WorldLightmapBlend);
|
||||||
|
|
||||||
{
|
{
|
||||||
#include "shaders/neoWorldVC_fs_gl.inc"
|
#include "shaders/obj/neoWorldVC_frag.inc"
|
||||||
#include "shaders/default_UV2_gl.inc"
|
#include "shaders/obj/default_UV2_vert.inc"
|
||||||
const char *vs[] = { shaderDecl, header_vert_src, default_UV2_vert_src, nil };
|
const char *vs[] = { shaderDecl, header_vert_src, default_UV2_vert_src, nil };
|
||||||
const char *fs[] = { shaderDecl, header_frag_src, neoWorldVC_frag_src, nil };
|
const char *fs[] = { shaderDecl, header_frag_src, neoWorldVC_frag_src, nil };
|
||||||
neoWorldShader = Shader::create(vs, fs);
|
neoWorldShader = Shader::create(vs, fs);
|
||||||
@ -379,8 +380,8 @@ CreateGlossPipe(void)
|
|||||||
using namespace rw::gl3;
|
using namespace rw::gl3;
|
||||||
|
|
||||||
{
|
{
|
||||||
#include "shaders/neoGloss_fs_gl.inc"
|
#include "shaders/obj/neoGloss_frag.inc"
|
||||||
#include "shaders/neoGloss_vs_gl.inc"
|
#include "shaders/obj/neoGloss_vert.inc"
|
||||||
const char *vs[] = { shaderDecl, header_vert_src, neoGloss_vert_src, nil };
|
const char *vs[] = { shaderDecl, header_vert_src, neoGloss_vert_src, nil };
|
||||||
const char *fs[] = { shaderDecl, header_frag_src, neoGloss_frag_src, nil };
|
const char *fs[] = { shaderDecl, header_frag_src, neoGloss_frag_src, nil };
|
||||||
neoGlossShader = Shader::create(vs, fs);
|
neoGlossShader = Shader::create(vs, fs);
|
||||||
@ -449,6 +450,7 @@ rimSkinRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
|
|||||||
|
|
||||||
Material *m;
|
Material *m;
|
||||||
|
|
||||||
|
rw::uint32 flags = atomic->geometry->flags;
|
||||||
setWorldMatrix(atomic->getFrame()->getLTM());
|
setWorldMatrix(atomic->getFrame()->getLTM());
|
||||||
lightingCB(atomic);
|
lightingCB(atomic);
|
||||||
|
|
||||||
@ -472,7 +474,7 @@ rimSkinRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
|
|||||||
while(n--){
|
while(n--){
|
||||||
m = inst->material;
|
m = inst->material;
|
||||||
|
|
||||||
setMaterial(m->color, m->surfaceProps);
|
setMaterial(flags, m->color, m->surfaceProps);
|
||||||
|
|
||||||
setTexture(0, m->texture);
|
setTexture(0, m->texture);
|
||||||
|
|
||||||
@ -499,6 +501,7 @@ rimRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
|
|||||||
|
|
||||||
Material *m;
|
Material *m;
|
||||||
|
|
||||||
|
rw::uint32 flags = atomic->geometry->flags;
|
||||||
setWorldMatrix(atomic->getFrame()->getLTM());
|
setWorldMatrix(atomic->getFrame()->getLTM());
|
||||||
lightingCB(atomic);
|
lightingCB(atomic);
|
||||||
|
|
||||||
@ -520,7 +523,7 @@ rimRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
|
|||||||
while(n--){
|
while(n--){
|
||||||
m = inst->material;
|
m = inst->material;
|
||||||
|
|
||||||
setMaterial(m->color, m->surfaceProps);
|
setMaterial(flags, m->color, m->surfaceProps);
|
||||||
|
|
||||||
setTexture(0, m->texture);
|
setTexture(0, m->texture);
|
||||||
|
|
||||||
@ -551,8 +554,8 @@ CreateRimLightPipes(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
#include "shaders/simple_fs_gl.inc"
|
#include "shaders/obj/simple_frag.inc"
|
||||||
#include "shaders/neoRimSkin_gl.inc"
|
#include "shaders/obj/neoRimSkin_vert.inc"
|
||||||
const char *vs[] = { shaderDecl, header_vert_src, neoRimSkin_vert_src, nil };
|
const char *vs[] = { shaderDecl, header_vert_src, neoRimSkin_vert_src, nil };
|
||||||
const char *fs[] = { shaderDecl, header_frag_src, simple_frag_src, nil };
|
const char *fs[] = { shaderDecl, header_frag_src, simple_frag_src, nil };
|
||||||
neoRimSkinShader = Shader::create(vs, fs);
|
neoRimSkinShader = Shader::create(vs, fs);
|
||||||
@ -560,8 +563,8 @@ CreateRimLightPipes(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
#include "shaders/simple_fs_gl.inc"
|
#include "shaders/obj/simple_frag.inc"
|
||||||
#include "shaders/neoRim_gl.inc"
|
#include "shaders/obj/neoRim_vert.inc"
|
||||||
const char *vs[] = { shaderDecl, header_vert_src, neoRim_vert_src, nil };
|
const char *vs[] = { shaderDecl, header_vert_src, neoRim_vert_src, nil };
|
||||||
const char *fs[] = { shaderDecl, header_frag_src, simple_frag_src, nil };
|
const char *fs[] = { shaderDecl, header_frag_src, simple_frag_src, nil };
|
||||||
neoRimShader = Shader::create(vs, fs);
|
neoRimShader = Shader::create(vs, fs);
|
||||||
@ -665,6 +668,7 @@ AtomicFirstPass(RpAtomic *atomic, int pass)
|
|||||||
assert(building->instHeader->platform == PLATFORM_GL3);
|
assert(building->instHeader->platform == PLATFORM_GL3);
|
||||||
building->fadeAlpha = 255;
|
building->fadeAlpha = 255;
|
||||||
building->lighting = !!(atomic->geometry->flags & rw::Geometry::LIGHT);
|
building->lighting = !!(atomic->geometry->flags & rw::Geometry::LIGHT);
|
||||||
|
rw::uint32 flags = atomic->geometry->flags;
|
||||||
|
|
||||||
WorldLights lights;
|
WorldLights lights;
|
||||||
lights.numAmbients = 1;
|
lights.numAmbients = 1;
|
||||||
@ -704,7 +708,7 @@ AtomicFirstPass(RpAtomic *atomic, int pass)
|
|||||||
setupDone = true;
|
setupDone = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
setMaterial(m->color, m->surfaceProps);
|
setMaterial(flags, m->color, m->surfaceProps);
|
||||||
|
|
||||||
setTexture(0, m->texture);
|
setTexture(0, m->texture);
|
||||||
|
|
||||||
@ -773,7 +777,7 @@ RenderBlendPass(int pass)
|
|||||||
|
|
||||||
rw::RGBA color = m->color;
|
rw::RGBA color = m->color;
|
||||||
color.alpha = (color.alpha * building->fadeAlpha)/255;
|
color.alpha = (color.alpha * building->fadeAlpha)/255;
|
||||||
setMaterial(color, m->surfaceProps);
|
setMaterial(color, m->surfaceProps); // always modulate here
|
||||||
|
|
||||||
setTexture(0, m->texture);
|
setTexture(0, m->texture);
|
||||||
|
|
||||||
|
@ -142,17 +142,17 @@ CPostFX::Open(RwCamera *cam)
|
|||||||
|
|
||||||
|
|
||||||
#ifdef RW_D3D9
|
#ifdef RW_D3D9
|
||||||
#include "shaders/colourfilterVC_PS.inc"
|
#include "shaders/obj/colourfilterVC_PS.inc"
|
||||||
colourfilterVC_PS = rw::d3d::createPixelShader(colourfilterVC_PS_cso);
|
colourfilterVC_PS = rw::d3d::createPixelShader(colourfilterVC_PS_cso);
|
||||||
#include "shaders/contrastPS.inc"
|
#include "shaders/obj/contrastPS.inc"
|
||||||
contrast_PS = rw::d3d::createPixelShader(contrastPS_cso);
|
contrast_PS = rw::d3d::createPixelShader(contrastPS_cso);
|
||||||
#endif
|
#endif
|
||||||
#ifdef RW_OPENGL
|
#ifdef RW_OPENGL
|
||||||
using namespace rw::gl3;
|
using namespace rw::gl3;
|
||||||
|
|
||||||
{
|
{
|
||||||
#include "shaders/im2d_gl.inc"
|
#include "shaders/obj/im2d_vert.inc"
|
||||||
#include "shaders/colourfilterVC_fs_gl.inc"
|
#include "shaders/obj/colourfilterVC_frag.inc"
|
||||||
const char *vs[] = { shaderDecl, header_vert_src, im2d_vert_src, nil };
|
const char *vs[] = { shaderDecl, header_vert_src, im2d_vert_src, nil };
|
||||||
const char *fs[] = { shaderDecl, header_frag_src, colourfilterVC_frag_src, nil };
|
const char *fs[] = { shaderDecl, header_frag_src, colourfilterVC_frag_src, nil };
|
||||||
colourFilterVC = Shader::create(vs, fs);
|
colourFilterVC = Shader::create(vs, fs);
|
||||||
@ -160,8 +160,8 @@ CPostFX::Open(RwCamera *cam)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
#include "shaders/im2d_gl.inc"
|
#include "shaders/obj/im2d_vert.inc"
|
||||||
#include "shaders/contrast_fs_gl.inc"
|
#include "shaders/obj/contrast_frag.inc"
|
||||||
const char *vs[] = { shaderDecl, header_vert_src, im2d_vert_src, nil };
|
const char *vs[] = { shaderDecl, header_vert_src, im2d_vert_src, nil };
|
||||||
const char *fs[] = { shaderDecl, header_frag_src, contrast_frag_src, nil };
|
const char *fs[] = { shaderDecl, header_frag_src, contrast_frag_src, nil };
|
||||||
contrast = Shader::create(vs, fs);
|
contrast = Shader::create(vs, fs);
|
||||||
|
@ -112,14 +112,14 @@ ScreenDroplets::InitDraw(void)
|
|||||||
|
|
||||||
openim2d_uv2();
|
openim2d_uv2();
|
||||||
#ifdef RW_D3D9
|
#ifdef RW_D3D9
|
||||||
#include "shaders/screenDroplet_PS.inc"
|
#include "shaders/obj/screenDroplet_PS.inc"
|
||||||
screenDroplet_PS = rw::d3d::createPixelShader(screenDroplet_PS_cso);
|
screenDroplet_PS = rw::d3d::createPixelShader(screenDroplet_PS_cso);
|
||||||
#endif
|
#endif
|
||||||
#ifdef RW_GL3
|
#ifdef RW_GL3
|
||||||
using namespace rw::gl3;
|
using namespace rw::gl3;
|
||||||
{
|
{
|
||||||
#include "shaders/im2d_UV2_gl.inc"
|
#include "shaders/obj/im2d_UV2_vert.inc"
|
||||||
#include "shaders/screenDroplet_fs_gl.inc"
|
#include "shaders/obj/screenDroplet_frag.inc"
|
||||||
const char *vs[] = { shaderDecl, header_vert_src, im2d_UV2_vert_src, nil };
|
const char *vs[] = { shaderDecl, header_vert_src, im2d_UV2_vert_src, nil };
|
||||||
const char *fs[] = { shaderDecl, header_frag_src, screenDroplet_frag_src, nil };
|
const char *fs[] = { shaderDecl, header_frag_src, screenDroplet_frag_src, nil };
|
||||||
screenDroplet = Shader::create(vs, fs);
|
screenDroplet = Shader::create(vs, fs);
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
all: im2d_gl.inc simple_fs_gl.inc default_UV2_gl.inc \
|
|
||||||
colourfilterVC_fs_gl.inc contrast_fs_gl.inc \
|
|
||||||
neoRim_gl.inc neoRimSkin_gl.inc \
|
|
||||||
neoWorldVC_fs_gl.inc neoGloss_vs_gl.inc neoGloss_fs_gl.inc \
|
|
||||||
neoVehicle_vs_gl.inc neoVehicle_fs_gl.inc \
|
|
||||||
im2d_UV2_gl.inc screenDroplet_fs_gl.inc
|
|
||||||
|
|
||||||
im2d_gl.inc: im2d.vert
|
|
||||||
(echo 'const char *im2d_vert_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' im2d.vert;\
|
|
||||||
echo ';') >im2d_gl.inc
|
|
||||||
|
|
||||||
colourfilterVC_fs_gl.inc: colourfilterVC.frag
|
|
||||||
(echo 'const char *colourfilterVC_frag_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' colourfilterVC.frag;\
|
|
||||||
echo ';') >colourfilterVC_fs_gl.inc
|
|
||||||
simple_fs_gl.inc: simple.frag
|
|
||||||
(echo 'const char *simple_frag_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' simple.frag;\
|
|
||||||
echo ';') >simple_fs_gl.inc
|
|
||||||
|
|
||||||
default_UV2_gl.inc: default_UV2.vert
|
|
||||||
(echo 'const char *default_UV2_vert_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' default_UV2.vert;\
|
|
||||||
echo ';') >default_UV2_gl.inc
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
contrast_fs_gl.inc: contrast.frag
|
|
||||||
(echo 'const char *contrast_frag_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' contrast.frag;\
|
|
||||||
echo ';') >contrast_fs_gl.inc
|
|
||||||
|
|
||||||
|
|
||||||
neoRim_gl.inc: neoRim.vert
|
|
||||||
(echo 'const char *neoRim_vert_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' neoRim.vert;\
|
|
||||||
echo ';') >neoRim_gl.inc
|
|
||||||
|
|
||||||
neoRimSkin_gl.inc: neoRimSkin.vert
|
|
||||||
(echo 'const char *neoRimSkin_vert_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' neoRimSkin.vert;\
|
|
||||||
echo ';') >neoRimSkin_gl.inc
|
|
||||||
|
|
||||||
neoWorldVC_fs_gl.inc: neoWorldVC.frag
|
|
||||||
(echo 'const char *neoWorldVC_frag_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' neoWorldVC.frag;\
|
|
||||||
echo ';') >neoWorldVC_fs_gl.inc
|
|
||||||
|
|
||||||
neoGloss_fs_gl.inc: neoGloss.frag
|
|
||||||
(echo 'const char *neoGloss_frag_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' neoGloss.frag;\
|
|
||||||
echo ';') >neoGloss_fs_gl.inc
|
|
||||||
|
|
||||||
neoGloss_vs_gl.inc: neoGloss.vert
|
|
||||||
(echo 'const char *neoGloss_vert_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' neoGloss.vert;\
|
|
||||||
echo ';') >neoGloss_vs_gl.inc
|
|
||||||
|
|
||||||
neoVehicle_vs_gl.inc: neoVehicle.vert
|
|
||||||
(echo 'const char *neoVehicle_vert_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' neoVehicle.vert;\
|
|
||||||
echo ';') >neoVehicle_vs_gl.inc
|
|
||||||
|
|
||||||
neoVehicle_fs_gl.inc: neoVehicle.frag
|
|
||||||
(echo 'const char *neoVehicle_frag_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' neoVehicle.frag;\
|
|
||||||
echo ';') >neoVehicle_fs_gl.inc
|
|
||||||
|
|
||||||
im2d_UV2_gl.inc: im2d_UV2.vert
|
|
||||||
(echo 'const char *im2d_UV2_vert_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' im2d_UV2.vert;\
|
|
||||||
echo ';') >im2d_UV2_gl.inc
|
|
||||||
|
|
||||||
screenDroplet_fs_gl.inc: screenDroplet.frag
|
|
||||||
(echo 'const char *screenDroplet_frag_src =';\
|
|
||||||
sed 's/..*/"&\\n"/' screenDroplet.frag;\
|
|
||||||
echo ';') >screenDroplet_fs_gl.inc
|
|
9
src/extras/shaders/make_glsl.sh
Normal file
9
src/extras/shaders/make_glsl.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!sh
|
||||||
|
for i in *.vert; do
|
||||||
|
echo $i
|
||||||
|
./makeinc_glsl.sh $i
|
||||||
|
done
|
||||||
|
for i in *.frag; do
|
||||||
|
echo $i
|
||||||
|
./makeinc_glsl.sh $i
|
||||||
|
done
|
@ -1,3 +1,3 @@
|
|||||||
@echo off
|
@echo off
|
||||||
for %%f in (*PS.hlsl) do "%DXSDK_DIR%\Utilities\bin\x86\fxc.exe" /T ps_2_0 /nologo /E main /Fo %%~nf.cso %%f
|
for %%f in (*PS.hlsl) do "%DXSDK_DIR%\Utilities\bin\x86\fxc.exe" /T ps_2_0 /nologo /E main /Fo obj\%%~nf.cso %%f
|
||||||
for %%f in (*VS.hlsl) do "%DXSDK_DIR%\Utilities\bin\x86\fxc.exe" /T vs_2_0 /nologo /E main /Fo %%~nf.cso %%f
|
for %%f in (*VS.hlsl) do "%DXSDK_DIR%\Utilities\bin\x86\fxc.exe" /T vs_2_0 /nologo /E main /Fo obj\%%~nf.cso %%f
|
6
src/extras/shaders/makeinc_glsl.sh
Normal file
6
src/extras/shaders/makeinc_glsl.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!sh
|
||||||
|
ext=${1##*.}
|
||||||
|
name=${1%.*}
|
||||||
|
(echo "const char *${name}_${ext}_src =";\
|
||||||
|
sed 's/..*/"&\\n"/' $1;\
|
||||||
|
echo ';') > obj/${name}_${ext}.inc
|
@ -1,4 +1,5 @@
|
|||||||
#!sh
|
#!sh
|
||||||
|
cd obj
|
||||||
for i in *cso; do
|
for i in *cso; do
|
||||||
(echo -n 'static '
|
(echo -n 'static '
|
||||||
xxd -i $i | grep -v '_len = ') > ${i%cso}inc
|
xxd -i $i | grep -v '_len = ') > ${i%cso}inc
|
@ -87,10 +87,10 @@ void
|
|||||||
CStinger::Deploy(CPed *pPed)
|
CStinger::Deploy(CPed *pPed)
|
||||||
{
|
{
|
||||||
if (NumOfStingerSegments < NUM_STINGER_SEGMENTS*2 && !pPed->bInVehicle && pPed->IsPedInControl()) {
|
if (NumOfStingerSegments < NUM_STINGER_SEGMENTS*2 && !pPed->bInVehicle && pPed->IsPedInControl()) {
|
||||||
if (!bIsDeployed && RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_WEAPON_THROWU) == nil) {
|
if (!bIsDeployed && RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_STD_THROW_UNDER) == nil) {
|
||||||
Init(pPed);
|
Init(pPed);
|
||||||
pPed->SetPedState(PED_DEPLOY_STINGER);
|
pPed->SetPedState(PED_DEPLOY_STINGER);
|
||||||
CAnimManager::AddAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_WEAPON_THROWU);
|
CAnimManager::AddAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_STD_THROW_UNDER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -170,7 +170,7 @@ CStinger::Process()
|
|||||||
if (pOwner != nil
|
if (pOwner != nil
|
||||||
&& !pOwner->bInVehicle
|
&& !pOwner->bInVehicle
|
||||||
&& pOwner->GetPedState() == PED_DEPLOY_STINGER
|
&& pOwner->GetPedState() == PED_DEPLOY_STINGER
|
||||||
&& RpAnimBlendClumpGetAssociation(pOwner->GetClump(), ANIM_WEAPON_THROWU)->currentTime > 0.39f)
|
&& RpAnimBlendClumpGetAssociation(pOwner->GetClump(), ANIM_STD_THROW_UNDER)->currentTime > 0.39f)
|
||||||
{
|
{
|
||||||
m_nSpikeState = STINGERSTATE_DEPLOYING;
|
m_nSpikeState = STINGERSTATE_DEPLOYING;
|
||||||
for (int i = 0; i < NUM_STINGER_SEGMENTS; i++)
|
for (int i = 0; i < NUM_STINGER_SEGMENTS; i++)
|
||||||
|
@ -257,9 +257,9 @@ CCopPed::ArrestPlayer(void)
|
|||||||
|
|
||||||
if (suspect && (suspect->m_nPedState == PED_ARRESTED || suspect->DyingOrDead() || suspect->EnteringCar())) {
|
if (suspect && (suspect->m_nPedState == PED_ARRESTED || suspect->DyingOrDead() || suspect->EnteringCar())) {
|
||||||
|
|
||||||
CAnimBlendAssociation *arrestAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_ARREST_GUN);
|
CAnimBlendAssociation *arrestAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_ARREST);
|
||||||
if (!arrestAssoc || arrestAssoc->blendDelta < 0.0f)
|
if (!arrestAssoc || arrestAssoc->blendDelta < 0.0f)
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_ARREST_GUN, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_ARREST, 4.0f);
|
||||||
|
|
||||||
CVector suspMidPos;
|
CVector suspMidPos;
|
||||||
suspect->m_pedIK.GetComponentPosition(suspMidPos, PED_MID);
|
suspect->m_pedIK.GetComponentPosition(suspMidPos, PED_MID);
|
||||||
|
@ -310,7 +310,7 @@ CEmergencyPed::MedicAI(void)
|
|||||||
m_nEmergencyPedState = EMERGENCY_PED_STAND_STILL;
|
m_nEmergencyPedState = EMERGENCY_PED_STAND_STILL;
|
||||||
} else {
|
} else {
|
||||||
m_nEmergencyPedState = EMERGENCY_PED_FACE_TO_PATIENT;
|
m_nEmergencyPedState = EMERGENCY_PED_FACE_TO_PATIENT;
|
||||||
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_MEDIC, ANIM_CPR, 4.0f);
|
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_MEDIC, ANIM_MEDIC_CPR, 4.0f);
|
||||||
bIsDucking = true;
|
bIsDucking = true;
|
||||||
}
|
}
|
||||||
SetLookTimer(2000);
|
SetLookTimer(2000);
|
||||||
|
398
src/peds/Ped.cpp
398
src/peds/Ped.cpp
File diff suppressed because it is too large
Load Diff
@ -679,7 +679,7 @@ public:
|
|||||||
void SetLookFlag(CEntity* target, bool keepTryingToLook, bool cancelPrevious = false);
|
void SetLookFlag(CEntity* target, bool keepTryingToLook, bool cancelPrevious = false);
|
||||||
void SetLookFlag(float direction, bool keepTryingToLook, bool cancelPrevious = false);
|
void SetLookFlag(float direction, bool keepTryingToLook, bool cancelPrevious = false);
|
||||||
void SetLookTimer(int time);
|
void SetLookTimer(int time);
|
||||||
void SetDie(AnimationId anim = ANIM_KO_SHOT_FRONT1, float arg1 = 4.0f, float arg2 = 0.0f);
|
void SetDie(AnimationId anim = ANIM_STD_KO_FRONT, float arg1 = 4.0f, float arg2 = 0.0f);
|
||||||
void SetDead(void);
|
void SetDead(void);
|
||||||
void ApplyHeadShot(eWeaponType weaponType, CVector pos, bool evenOnPlayer);
|
void ApplyHeadShot(eWeaponType weaponType, CVector pos, bool evenOnPlayer);
|
||||||
void RemoveBodyPart(PedNode nodeId, int8 direction);
|
void RemoveBodyPart(PedNode nodeId, int8 direction);
|
||||||
@ -1026,14 +1026,14 @@ public:
|
|||||||
else if (weapon->IsFlagSet(WEAPONFLAG_GROUND_3RD))
|
else if (weapon->IsFlagSet(WEAPONFLAG_GROUND_3RD))
|
||||||
return ANIM_WEAPON_FIRE_3RD;
|
return ANIM_WEAPON_FIRE_3RD;
|
||||||
else if (kickFloorIfNone)
|
else if (kickFloorIfNone)
|
||||||
return ANIM_KICK_FLOOR;
|
return ANIM_STD_KICKGROUND;
|
||||||
else
|
else
|
||||||
return (AnimationId)0;
|
return (AnimationId)0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static AnimationId GetPrimaryFireAnim(CWeaponInfo* weapon) {
|
static AnimationId GetPrimaryFireAnim(CWeaponInfo* weapon) {
|
||||||
if (weapon->IsFlagSet(WEAPONFLAG_ANIMDETONATE))
|
if (weapon->IsFlagSet(WEAPONFLAG_ANIMDETONATE))
|
||||||
return ANIM_BOMBER;
|
return ANIM_STD_DETONATE;
|
||||||
else
|
else
|
||||||
return ANIM_WEAPON_FIRE;
|
return ANIM_WEAPON_FIRE;
|
||||||
}
|
}
|
||||||
@ -1075,7 +1075,7 @@ public:
|
|||||||
|
|
||||||
static AnimationId GetSecondFireAnim(CWeaponInfo* weapon) {
|
static AnimationId GetSecondFireAnim(CWeaponInfo* weapon) {
|
||||||
if (weapon->IsFlagSet(WEAPONFLAG_USE_2ND))
|
if (weapon->IsFlagSet(WEAPONFLAG_USE_2ND))
|
||||||
return ANIM_WEAPON_FIRE_2ND; // or ANIM_MELEE_ATTACK_2ND
|
return ANIM_WEAPON_FIRE_2ND;
|
||||||
else
|
else
|
||||||
return (AnimationId)0;
|
return (AnimationId)0;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -31,38 +31,38 @@ RpClump* flyingClumpTemp;
|
|||||||
|
|
||||||
FightMove tFightMoves[NUM_FIGHTMOVES] =
|
FightMove tFightMoves[NUM_FIGHTMOVES] =
|
||||||
{
|
{
|
||||||
{ NUM_STD_ANIMS, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_NUM, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_PUNCH_R, 0.2f, 8.f/30.f, 0.0f, 0.3f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
{ ANIM_STD_PUNCH, 0.2f, 8.f/30.f, 0.0f, 0.3f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
||||||
{ ANIM_FIGHT_IDLE, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_FIGHT_IDLE, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_FIGHT_SH_F, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_FIGHT_SHUFFLE_F, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_FIGHT_KNEE, 4.f/30.f, 0.2f, 0.0f, 0.6f, 1.0f, HITLEVEL_LOW, 2, 0 },
|
{ ANIM_STD_FIGHT_KNEE, 4.f/30.f, 0.2f, 0.0f, 0.6f, 1.0f, HITLEVEL_LOW, 2, 0 },
|
||||||
{ ANIM_FIGHT_LHOOK, 8.f/30.f, 10.f/30.f, 0.0f, 0.4f, 1.0f, HITLEVEL_HIGH, 3, 0 },
|
{ ANIM_STD_FIGHT_LHOOK, 8.f/30.f, 10.f/30.f, 0.0f, 0.4f, 1.0f, HITLEVEL_HIGH, 3, 0 },
|
||||||
{ ANIM_FIGHT_JAB, 4.f/30.f, 0.2f, 0.0f, 0.7f, 1.0f, HITLEVEL_HIGH, 3, 0 },
|
{ ANIM_STD_FIGHT_JAB, 4.f/30.f, 0.2f, 0.0f, 0.7f, 1.0f, HITLEVEL_HIGH, 3, 0 },
|
||||||
{ ANIM_FIGHT_PUNCH, 4.f/30.f, 7.f/30.f, 10.f/30.f, 0.4f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
{ ANIM_STD_FIGHT_PUNCH, 4.f/30.f, 7.f/30.f, 10.f/30.f, 0.4f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
||||||
{ ANIM_FIGHT_LONGKICK, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_MEDIUM, 4, 0 },
|
{ ANIM_STD_FIGHT_LONGKICK, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_MEDIUM, 4, 0 },
|
||||||
{ ANIM_FIGHT_ROUNDHOUSE, 8.f/30.f, 10.f/30.f, 0.0f, 0.6f, 1.0f, HITLEVEL_MEDIUM, 4, 0 },
|
{ ANIM_STD_FIGHT_ROUNDHOUSE, 8.f/30.f, 10.f/30.f, 0.0f, 0.6f, 1.0f, HITLEVEL_MEDIUM, 4, 0 },
|
||||||
{ ANIM_FIGHT_KICK, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_HIGH, 2, 0 },
|
{ ANIM_STD_FIGHT_KICK, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_HIGH, 2, 0 },
|
||||||
{ ANIM_FIGHT_HEAD, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_MEDIUM, 2, 0 },
|
{ ANIM_STD_FIGHT_HEAD, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_MEDIUM, 2, 0 },
|
||||||
{ ANIM_FIGHT_BKICK_L, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_LOW, 2, 0 },
|
{ ANIM_STD_FIGHT_BKICK_L, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_LOW, 2, 0 },
|
||||||
{ ANIM_FIGHT_BKICK_L, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_LOW, 2, 0 },
|
{ ANIM_STD_FIGHT_BKICK_L, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_LOW, 2, 0 },
|
||||||
{ ANIM_FIGHT_ELBOW_L, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_MEDIUM, 2, 0 },
|
{ ANIM_STD_FIGHT_ELBOW_L, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_MEDIUM, 2, 0 },
|
||||||
{ ANIM_FIGHT_BKICK_R, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_MEDIUM, 2, 0 },
|
{ ANIM_STD_FIGHT_BKICK_R, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_MEDIUM, 2, 0 },
|
||||||
{ ANIM_FIGHT_ELBOW_R, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_HIGH, 2, 0 },
|
{ ANIM_STD_FIGHT_ELBOW_R, 8.f/30.f, 10.f/30.f, 0.0f, 0.5f, 1.0f, HITLEVEL_HIGH, 2, 0 },
|
||||||
{ ANIM_KICK_FLOOR, 10.f/30.f, 14.f/30.f, 0.0f, 0.4f, 1.0f, HITLEVEL_GROUND, 1, 0 },
|
{ ANIM_STD_KICKGROUND, 10.f/30.f, 14.f/30.f, 0.0f, 0.4f, 1.0f, HITLEVEL_GROUND, 1, 0 },
|
||||||
{ ANIM_HIT_FRONT, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_FRONT, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_HIT_BACK, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_BACK, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_HIT_RIGHT, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_RIGHT, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_HIT_LEFT, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_LEFT, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_HIT_BODYBLOW, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_BODYBLOW, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_HIT_CHEST, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_CHEST, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_HIT_HEAD, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_HEAD, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_HIT_WALK, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_WALK, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_FLOOR_HIT, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_FLOOR, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_HIT_BEHIND, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
{ ANIM_STD_HIT_BEHIND, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 },
|
||||||
{ ANIM_WEAPON_FIRE, 4.f/30.f, 7.f/30.f, 10.f/30.f, 0.4f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
{ ANIM_ATTACK_1, 4.f/30.f, 7.f/30.f, 10.f/30.f, 0.4f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
||||||
{ ANIM_WEAPON_CROUCHFIRE, 4.f/30.f, 7.f/30.f, 10.f/30.f, 0.4f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
{ ANIM_ATTACK_2, 4.f/30.f, 7.f/30.f, 10.f/30.f, 0.4f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
||||||
{ ANIM_WEAPON_SPECIAL, 4.f / 30.f, 7.f / 30.f, 10.f / 30.f, 0.4f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
{ ANIM_ATTACK_3, 4.f / 30.f, 7.f / 30.f, 10.f / 30.f, 0.4f, 1.0f, HITLEVEL_HIGH, 1, 0 },
|
||||||
{ ANIM_FIGHT2_IDLE, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 }
|
{ ANIM_STD_FIGHT_2IDLE, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, HITLEVEL_NULL, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static PedOnGroundState
|
static PedOnGroundState
|
||||||
@ -503,7 +503,7 @@ CPed::FinishedAttackCB(CAnimBlendAssociation *attackAssoc, void *arg)
|
|||||||
}
|
}
|
||||||
if (GetCrouchFireAnim(currentWeapon) && attackAssoc) {
|
if (GetCrouchFireAnim(currentWeapon) && attackAssoc) {
|
||||||
if (attackAssoc->animId == GetCrouchFireAnim(currentWeapon) && !reloadAnimAssoc) {
|
if (attackAssoc->animId == GetCrouchFireAnim(currentWeapon) && !reloadAnimAssoc) {
|
||||||
newAnim = CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_WEAPON_CROUCH, 8.0f);
|
newAnim = CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_STD_DUCK_WEAPON, 8.0f);
|
||||||
newAnim->SetCurrentTime(newAnim->hierarchy->totalLength);
|
newAnim->SetCurrentTime(newAnim->hierarchy->totalLength);
|
||||||
newAnim->flags &= ~ASSOC_RUNNING;
|
newAnim->flags &= ~ASSOC_RUNNING;
|
||||||
}
|
}
|
||||||
@ -525,7 +525,7 @@ CPed::FinishedAttackCB(CAnimBlendAssociation *attackAssoc, void *arg)
|
|||||||
}
|
}
|
||||||
if (GetCrouchFireAnim(currentWeapon) && attackAssoc) {
|
if (GetCrouchFireAnim(currentWeapon) && attackAssoc) {
|
||||||
if (attackAssoc->animId == GetCrouchFireAnim(currentWeapon) && !reloadAnimAssoc) {
|
if (attackAssoc->animId == GetCrouchFireAnim(currentWeapon) && !reloadAnimAssoc) {
|
||||||
newAnim = CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_WEAPON_CROUCH, 8.0f);
|
newAnim = CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_STD_DUCK_WEAPON, 8.0f);
|
||||||
newAnim->SetCurrentTime(newAnim->hierarchy->totalLength);
|
newAnim->SetCurrentTime(newAnim->hierarchy->totalLength);
|
||||||
newAnim->flags &= ~ASSOC_RUNNING;
|
newAnim->flags &= ~ASSOC_RUNNING;
|
||||||
}
|
}
|
||||||
@ -584,7 +584,7 @@ CPed::FinishedReloadCB(CAnimBlendAssociation *reloadAssoc, void *arg)
|
|||||||
}
|
}
|
||||||
if (weapon->IsFlagSet(WEAPONFLAG_RELOAD) && reloadAssoc) {
|
if (weapon->IsFlagSet(WEAPONFLAG_RELOAD) && reloadAssoc) {
|
||||||
if (reloadAssoc->animId == GetCrouchReloadAnim(weapon) && !crouchFireAssoc) {
|
if (reloadAssoc->animId == GetCrouchReloadAnim(weapon) && !crouchFireAssoc) {
|
||||||
CAnimBlendAssociation *crouchAssoc = CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_WEAPON_CROUCH, 8.0f);
|
CAnimBlendAssociation *crouchAssoc = CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_STD_DUCK_WEAPON, 8.0f);
|
||||||
crouchAssoc->SetCurrentTime(crouchAssoc->hierarchy->totalLength);
|
crouchAssoc->SetCurrentTime(crouchAssoc->hierarchy->totalLength);
|
||||||
crouchAssoc->flags &= ~ASSOC_RUNNING;
|
crouchAssoc->flags &= ~ASSOC_RUNNING;
|
||||||
}
|
}
|
||||||
@ -990,7 +990,7 @@ CPed::Attack(void)
|
|||||||
if (GetFireAnimGround(ourWeapon, false)) {
|
if (GetFireAnimGround(ourWeapon, false)) {
|
||||||
weaponAnimAssoc = CAnimManager::BlendAnimation(GetClump(), ourWeapon->m_AnimToPlay, fireAnim, 8.0f);
|
weaponAnimAssoc = CAnimManager::BlendAnimation(GetClump(), ourWeapon->m_AnimToPlay, fireAnim, 8.0f);
|
||||||
} else {
|
} else {
|
||||||
weaponAnimAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_KICK_FLOOR, 8.0f);
|
weaponAnimAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_KICKGROUND, 8.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
weaponAnimAssoc->SetFinishCallback(FinishedAttackCB, this);
|
weaponAnimAssoc->SetFinishCallback(FinishedAttackCB, this);
|
||||||
@ -1050,9 +1050,9 @@ CPed::StartFightAttack(uint8 buttonPressure)
|
|||||||
RestoreHeadingRate();
|
RestoreHeadingRate();
|
||||||
}
|
}
|
||||||
|
|
||||||
CAnimBlendAssociation* animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_RUN_STOP);
|
CAnimBlendAssociation* animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_RUNSTOP1);
|
||||||
if (!animAssoc)
|
if (!animAssoc)
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_RUN_STOP_R);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_RUNSTOP2);
|
||||||
|
|
||||||
if (animAssoc) {
|
if (animAssoc) {
|
||||||
RestoreHeadingRate();
|
RestoreHeadingRate();
|
||||||
@ -1068,10 +1068,10 @@ CPed::StartFightAttack(uint8 buttonPressure)
|
|||||||
fightIdleAssoc = CAnimManager::BlendAnimation(GetClump(), weaponInfo->m_AnimToPlay, GetFightIdleWithMeleeAnim(weaponInfo), 1000.0f);
|
fightIdleAssoc = CAnimManager::BlendAnimation(GetClump(), weaponInfo->m_AnimToPlay, GetFightIdleWithMeleeAnim(weaponInfo), 1000.0f);
|
||||||
fightWithWeapon = true;
|
fightWithWeapon = true;
|
||||||
} else {
|
} else {
|
||||||
fightIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FIGHT_IDLE, 1000.0f);
|
fightIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_FIGHT_IDLE, 1000.0f);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fightIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FIGHT_IDLE, 1000.0f);
|
fightIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_FIGHT_IDLE, 1000.0f);
|
||||||
}
|
}
|
||||||
m_lastFightMove = FIGHTMOVE_IDLE;
|
m_lastFightMove = FIGHTMOVE_IDLE;
|
||||||
m_curFightMove = IsPlayer() ? ChooseAttackPlayer(buttonPressure, fightWithWeapon) : ChooseAttackAI(buttonPressure, fightWithWeapon);
|
m_curFightMove = IsPlayer() ? ChooseAttackPlayer(buttonPressure, fightWithWeapon) : ChooseAttackAI(buttonPressure, fightWithWeapon);
|
||||||
@ -1131,7 +1131,7 @@ CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
|
|||||||
if (hitLevel == HITLEVEL_GROUND) {
|
if (hitLevel == HITLEVEL_GROUND) {
|
||||||
CAnimBlendAssociation *floorHitAssoc;
|
CAnimBlendAssociation *floorHitAssoc;
|
||||||
if (RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL)) {
|
if (RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL)) {
|
||||||
floorHitAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT_F, 8.0f);
|
floorHitAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR_FRONT, 8.0f);
|
||||||
} else {
|
} else {
|
||||||
floorHitAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, tFightMoves[FIGHTMOVE_HITONFLOOR].animId, 8.0f);
|
floorHitAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, tFightMoves[FIGHTMOVE_HITONFLOOR].animId, 8.0f);
|
||||||
}
|
}
|
||||||
@ -1153,8 +1153,8 @@ CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
|
|||||||
} else if (m_nPedState == PED_FALL) {
|
} else if (m_nPedState == PED_FALL) {
|
||||||
if (hitLevel == HITLEVEL_GROUND && !IsPedHeadAbovePos(-0.3f)) {
|
if (hitLevel == HITLEVEL_GROUND && !IsPedHeadAbovePos(-0.3f)) {
|
||||||
CAnimBlendAssociation *floorHitAssoc = RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL) ?
|
CAnimBlendAssociation *floorHitAssoc = RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL) ?
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT_F, 8.0f) :
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR_FRONT, 8.0f) :
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT, 8.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR, 8.0f);
|
||||||
if (floorHitAssoc) {
|
if (floorHitAssoc) {
|
||||||
floorHitAssoc->flags &= ~ASSOC_FADEOUTWHENDONE;
|
floorHitAssoc->flags &= ~ASSOC_FADEOUTWHENDONE;
|
||||||
floorHitAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
floorHitAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
@ -1169,16 +1169,16 @@ CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
|
|||||||
AnimationId shotAnim;
|
AnimationId shotAnim;
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 1:
|
case 1:
|
||||||
shotAnim = ANIM_SHOT_LEFT_PARTIAL;
|
shotAnim = ANIM_STD_HITBYGUN_LEFT;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
shotAnim = ANIM_SHOT_BACK_PARTIAL;
|
shotAnim = ANIM_STD_HITBYGUN_BACK;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
shotAnim = ANIM_SHOT_RIGHT_PARTIAL;
|
shotAnim = ANIM_STD_HITBYGUN_RIGHT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
shotAnim = ANIM_SHOT_FRONT_PARTIAL;
|
shotAnim = ANIM_STD_HITBYGUN_FRONT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
CAnimBlendAssociation *shotAssoc = RpAnimBlendClumpGetAssociation(GetClump(), shotAnim);
|
CAnimBlendAssociation *shotAssoc = RpAnimBlendClumpGetAssociation(GetClump(), shotAnim);
|
||||||
@ -1197,30 +1197,30 @@ CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
|
|||||||
AnimationId hitAnim;
|
AnimationId hitAnim;
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 1:
|
case 1:
|
||||||
hitAnim = ANIM_KO_SPIN_R;
|
hitAnim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (CGeneral::GetRandomNumber() & 1) {
|
if (CGeneral::GetRandomNumber() & 1) {
|
||||||
fall = false;
|
fall = false;
|
||||||
hitAnim = ANIM_HIT_BACK;
|
hitAnim = ANIM_STD_HIT_BACK;
|
||||||
} else {
|
} else {
|
||||||
hitAnim = ANIM_KO_SKID_BACK;
|
hitAnim = ANIM_STD_HIGHIMPACT_BACK;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
hitAnim = ANIM_KO_SPIN_L;
|
hitAnim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (hitLevel == HITLEVEL_LOW) {
|
if (hitLevel == HITLEVEL_LOW) {
|
||||||
hitAnim = ANIM_KO_SHOT_STOM;
|
hitAnim = ANIM_STD_KO_SHOT_STOMACH;
|
||||||
} else if (CGeneral::GetRandomNumber() & 1) {
|
} else if (CGeneral::GetRandomNumber() & 1) {
|
||||||
fall = false;
|
fall = false;
|
||||||
hitAnim = ANIM_HIT_WALK;
|
hitAnim = ANIM_STD_HIT_WALK;
|
||||||
} else if (CGeneral::GetRandomNumber() & 1) {
|
} else if (CGeneral::GetRandomNumber() & 1) {
|
||||||
fall = false;
|
fall = false;
|
||||||
hitAnim = ANIM_HIT_HEAD;
|
hitAnim = ANIM_STD_HIT_HEAD;
|
||||||
} else {
|
} else {
|
||||||
hitAnim = ANIM_KO_SHOT_FACE;
|
hitAnim = ANIM_STD_KO_SHOT_FACE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1245,11 +1245,11 @@ CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
|
|||||||
break;
|
break;
|
||||||
case HITLEVEL_LOW:
|
case HITLEVEL_LOW:
|
||||||
if (direction == 2 && (!IsPlayer() || ((CGeneral::GetRandomNumber() & 1) && m_fHealth < 30.0f))) {
|
if (direction == 2 && (!IsPlayer() || ((CGeneral::GetRandomNumber() & 1) && m_fHealth < 30.0f))) {
|
||||||
SetFall(1000, ANIM_KO_SKID_BACK, false);
|
SetFall(1000, ANIM_STD_HIGHIMPACT_BACK, false);
|
||||||
Say(SOUND_PED_DEFEND);
|
Say(SOUND_PED_DEFEND);
|
||||||
return;
|
return;
|
||||||
} else if (direction != 2 && !IsPlayer() && (CGeneral::GetRandomNumber() & 1) && m_fHealth < 30.0f) {
|
} else if (direction != 2 && !IsPlayer() && (CGeneral::GetRandomNumber() & 1) && m_fHealth < 30.0f) {
|
||||||
SetFall(1000, ANIM_KO_SHOT_STOM, false);
|
SetFall(1000, ANIM_STD_KO_SHOT_STOMACH, false);
|
||||||
Say(SOUND_PED_DEFEND);
|
Say(SOUND_PED_DEFEND);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1325,14 +1325,14 @@ CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
|
|||||||
m_fightButtonPressure = 0;
|
m_fightButtonPressure = 0;
|
||||||
m_lastFightMove = FIGHTMOVE_IDLE;
|
m_lastFightMove = FIGHTMOVE_IDLE;
|
||||||
RpAnimBlendClumpRemoveAssociations(GetClump(), ASSOC_REPEAT);
|
RpAnimBlendClumpRemoveAssociations(GetClump(), ASSOC_REPEAT);
|
||||||
CAnimBlendAssociation *walkStartAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_WALK_START);
|
CAnimBlendAssociation *walkStartAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_STARTWALK);
|
||||||
if (walkStartAssoc) {
|
if (walkStartAssoc) {
|
||||||
walkStartAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
walkStartAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
walkStartAssoc->blendDelta = -1000.0f;
|
walkStartAssoc->blendDelta = -1000.0f;
|
||||||
}
|
}
|
||||||
CAnimBlendAssociation *walkStopAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_RUN_STOP);
|
CAnimBlendAssociation *walkStopAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_RUNSTOP1);
|
||||||
if (!walkStopAssoc)
|
if (!walkStopAssoc)
|
||||||
walkStopAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_RUN_STOP_R);
|
walkStopAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_RUNSTOP2);
|
||||||
if (walkStopAssoc) {
|
if (walkStopAssoc) {
|
||||||
walkStopAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
walkStopAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
walkStopAssoc->blendDelta = -1000.0f;
|
walkStopAssoc->blendDelta = -1000.0f;
|
||||||
@ -1347,10 +1347,10 @@ CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
|
|||||||
if (GetFightIdleWithMeleeAnim(weaponInfo)) {
|
if (GetFightIdleWithMeleeAnim(weaponInfo)) {
|
||||||
fightIdleAssoc = CAnimManager::AddAnimation(GetClump(), weaponInfo->m_AnimToPlay, GetFightIdleWithMeleeAnim(weaponInfo));
|
fightIdleAssoc = CAnimManager::AddAnimation(GetClump(), weaponInfo->m_AnimToPlay, GetFightIdleWithMeleeAnim(weaponInfo));
|
||||||
} else {
|
} else {
|
||||||
fightIdleAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_FIGHT_IDLE);
|
fightIdleAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_FIGHT_IDLE);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fightIdleAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_FIGHT_IDLE);
|
fightIdleAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_FIGHT_IDLE);
|
||||||
}
|
}
|
||||||
fightIdleAssoc->blendAmount = 1.0f;
|
fightIdleAssoc->blendAmount = 1.0f;
|
||||||
CAnimBlendAssociation *moveAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, tFightMoves[m_curFightMove].animId, 8.0f);
|
CAnimBlendAssociation *moveAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, tFightMoves[m_curFightMove].animId, 8.0f);
|
||||||
@ -1404,7 +1404,7 @@ CPed::Fight(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_curFightMove == FIGHTMOVE_SHUFFLE_F && !currentAssoc)
|
if (m_curFightMove == FIGHTMOVE_SHUFFLE_F && !currentAssoc)
|
||||||
currentAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_FIGHT_SH_BACK);
|
currentAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_FIGHT_SHUFFLE_B);
|
||||||
|
|
||||||
if (IsPlayer() && currentAssoc && weapon == WEAPONTYPE_KATANA) {
|
if (IsPlayer() && currentAssoc && weapon == WEAPONTYPE_KATANA) {
|
||||||
if (m_curFightMove == FIGHTMOVE_MELEE1 || m_curFightMove == FIGHTMOVE_MELEE2) {
|
if (m_curFightMove == FIGHTMOVE_MELEE1 || m_curFightMove == FIGHTMOVE_MELEE2) {
|
||||||
@ -1927,7 +1927,7 @@ CPed::EndFight(uint8 endType)
|
|||||||
|
|
||||||
m_curFightMove = FIGHTMOVE_NULL;
|
m_curFightMove = FIGHTMOVE_NULL;
|
||||||
RestorePreviousState();
|
RestorePreviousState();
|
||||||
CAnimBlendAssociation *animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_FIGHT_IDLE);
|
CAnimBlendAssociation *animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_FIGHT_IDLE);
|
||||||
if (!animAssoc)
|
if (!animAssoc)
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_MELEE_IDLE_FIGHTMODE);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_MELEE_IDLE_FIGHTMODE);
|
||||||
|
|
||||||
@ -1936,16 +1936,16 @@ CPed::EndFight(uint8 endType)
|
|||||||
|
|
||||||
switch (endType) {
|
switch (endType) {
|
||||||
case ENDFIGHT_NORMAL:
|
case ENDFIGHT_NORMAL:
|
||||||
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, 8.0f);
|
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, 8.0f);
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FIGHT2_IDLE, 8.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_FIGHT_2IDLE, 8.0f);
|
||||||
break;
|
break;
|
||||||
case ENDFIGHT_WITH_A_STEP:
|
case ENDFIGHT_WITH_A_STEP:
|
||||||
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, 1.0f);
|
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, 1.0f);
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_WALK_START, 8.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_STARTWALK, 8.0f);
|
||||||
break;
|
break;
|
||||||
case ENDFIGHT_FAST:
|
case ENDFIGHT_FAST:
|
||||||
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, 8.0f);
|
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, 8.0f);
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FIGHT2_IDLE, 8.0f)->speed = 2.0f;
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_FIGHT_2IDLE, 8.0f)->speed = 2.0f;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -2229,7 +2229,7 @@ CPed::FightHitPed(CPed *victim, CVector &touchPoint, CVector &dir, int16 piece)
|
|||||||
|| weaponType != WEAPONTYPE_UNARMED && weaponType != WEAPONTYPE_BRASSKNUCKLE && IsPlayer()
|
|| weaponType != WEAPONTYPE_UNARMED && weaponType != WEAPONTYPE_BRASSKNUCKLE && IsPlayer()
|
||||||
|| victim->m_pedStats->m_flags & STAT_ONE_HIT_KNOCKDOWN || brassKnucklePunch)) {
|
|| victim->m_pedStats->m_flags & STAT_ONE_HIT_KNOCKDOWN || brassKnucklePunch)) {
|
||||||
|
|
||||||
victim->SetFall(0, (AnimationId)(direction + ANIM_KO_SKID_FRONT), 0);
|
victim->SetFall(0, (AnimationId)(direction + ANIM_STD_HIGHIMPACT_FRONT), 0);
|
||||||
if (victim->m_nPedState == PED_FALL)
|
if (victim->m_nPedState == PED_FALL)
|
||||||
victim->bIsStanding = false;
|
victim->bIsStanding = false;
|
||||||
}
|
}
|
||||||
@ -2364,7 +2364,7 @@ CPed::LoadFightData(void)
|
|||||||
animAssoc = CAnimManager::GetAnimAssociation(ASSOCGRP_STD, animName);
|
animAssoc = CAnimManager::GetAnimAssociation(ASSOCGRP_STD, animName);
|
||||||
tFightMoves[moveId].animId = (AnimationId)animAssoc->animId;
|
tFightMoves[moveId].animId = (AnimationId)animAssoc->animId;
|
||||||
} else {
|
} else {
|
||||||
tFightMoves[moveId].animId = ANIM_WALK;
|
tFightMoves[moveId].animId = ANIM_STD_WALK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
moveId++;
|
moveId++;
|
||||||
@ -2389,7 +2389,7 @@ CPed::SetInvestigateEvent(eEventType event, CVector2D pos, float distanceToCount
|
|||||||
if (m_eventType >= EVENT_ICECREAM)
|
if (m_eventType >= EVENT_ICECREAM)
|
||||||
m_lookTimer = 0;
|
m_lookTimer = 0;
|
||||||
else
|
else
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_HANDSCOWER, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_HANDSCOWER, 4.0f);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2429,7 +2429,7 @@ CPed::InvestigateEvent(void)
|
|||||||
case EVENT_HIT_AND_RUN_COP:
|
case EVENT_HIT_AND_RUN_COP:
|
||||||
|
|
||||||
if (CTimer::GetTimeInMilliseconds() > m_lookTimer) {
|
if (CTimer::GetTimeInMilliseconds() > m_lookTimer) {
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_ROAD_CROSS);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_ROADCROSS);
|
||||||
|
|
||||||
if (animAssoc) {
|
if (animAssoc) {
|
||||||
animAssoc->blendDelta = -8.0f;
|
animAssoc->blendDelta = -8.0f;
|
||||||
@ -2441,7 +2441,7 @@ CPed::InvestigateEvent(void)
|
|||||||
|
|
||||||
} else if (CGeneral::GetRandomNumber() & 3) {
|
} else if (CGeneral::GetRandomNumber() & 3) {
|
||||||
ClearLookFlag();
|
ClearLookFlag();
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_ROAD_CROSS, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_ROADCROSS, 4.0f);
|
||||||
|
|
||||||
SetLookTimer(CGeneral::GetRandomNumberInRange(1000, 2500));
|
SetLookTimer(CGeneral::GetRandomNumberInRange(1000, 2500));
|
||||||
Say(SOUND_PED_CHAT_EVENT);
|
Say(SOUND_PED_CHAT_EVENT);
|
||||||
@ -2455,16 +2455,16 @@ CPed::InvestigateEvent(void)
|
|||||||
case EVENT_EXPLOSION:
|
case EVENT_EXPLOSION:
|
||||||
|
|
||||||
if (bHasACamera && CTimer::GetTimeInMilliseconds() > m_lookTimer) {
|
if (bHasACamera && CTimer::GetTimeInMilliseconds() > m_lookTimer) {
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_CAM);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_IDLE_CAM);
|
||||||
if (!animAssoc)
|
if (!animAssoc)
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_STANCE);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_IDLE);
|
||||||
|
|
||||||
if (animAssoc && animAssoc->animId == ANIM_IDLE_CAM) {
|
if (animAssoc && animAssoc->animId == ANIM_STD_IDLE_CAM) {
|
||||||
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, 4.0f);
|
||||||
SetLookTimer(CGeneral::GetRandomNumberInRange(1000, 2500));
|
SetLookTimer(CGeneral::GetRandomNumberInRange(1000, 2500));
|
||||||
|
|
||||||
} else if (CGeneral::GetRandomNumber() & 3) {
|
} else if (CGeneral::GetRandomNumber() & 3) {
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_IDLE_CAM, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_IDLE_CAM, 4.0f);
|
||||||
SetLookTimer(CGeneral::GetRandomNumberInRange(2500, 5000));
|
SetLookTimer(CGeneral::GetRandomNumberInRange(2500, 5000));
|
||||||
if (!CGame::germanGame)
|
if (!CGame::germanGame)
|
||||||
Say(SOUND_PED_CHAT_EVENT);
|
Say(SOUND_PED_CHAT_EVENT);
|
||||||
@ -2474,30 +2474,30 @@ CPed::InvestigateEvent(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else if (CTimer::GetTimeInMilliseconds() > m_lookTimer) {
|
} else if (CTimer::GetTimeInMilliseconds() > m_lookTimer) {
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_STANCE);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_IDLE);
|
||||||
if (!animAssoc)
|
if (!animAssoc)
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_HBHB);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_IDLE_HBHB);
|
||||||
|
|
||||||
if (!animAssoc)
|
if (!animAssoc)
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_XPRESS_SCRATCH);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_XPRESS_SCRATCH);
|
||||||
|
|
||||||
if (animAssoc && animAssoc->animId == ANIM_IDLE_STANCE) {
|
if (animAssoc && animAssoc->animId == ANIM_STD_IDLE) {
|
||||||
if (CGeneral::GetRandomNumber() & 1)
|
if (CGeneral::GetRandomNumber() & 1)
|
||||||
animToPlay = ANIM_IDLE_HBHB;
|
animToPlay = ANIM_STD_IDLE_HBHB;
|
||||||
else
|
else
|
||||||
animToPlay = ANIM_XPRESS_SCRATCH;
|
animToPlay = ANIM_STD_XPRESS_SCRATCH;
|
||||||
|
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, animToPlay, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, animToPlay, 4.0f);
|
||||||
SetLookTimer(CGeneral::GetRandomNumberInRange(1500, 4000));
|
SetLookTimer(CGeneral::GetRandomNumberInRange(1500, 4000));
|
||||||
|
|
||||||
} else if (animAssoc && animAssoc->animId == ANIM_IDLE_HBHB) {
|
} else if (animAssoc && animAssoc->animId == ANIM_STD_IDLE_HBHB) {
|
||||||
animAssoc->blendDelta = -8.0f;
|
animAssoc->blendDelta = -8.0f;
|
||||||
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
if (CGeneral::GetRandomNumber() & 1) {
|
if (CGeneral::GetRandomNumber() & 1) {
|
||||||
animToPlay = ANIM_IDLE_STANCE;
|
animToPlay = ANIM_STD_IDLE;
|
||||||
animGroup = m_animGroup;
|
animGroup = m_animGroup;
|
||||||
} else {
|
} else {
|
||||||
animToPlay = ANIM_XPRESS_SCRATCH;
|
animToPlay = ANIM_STD_XPRESS_SCRATCH;
|
||||||
animGroup = ASSOCGRP_STD;
|
animGroup = ASSOCGRP_STD;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2506,10 +2506,10 @@ CPed::InvestigateEvent(void)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (CGeneral::GetRandomNumber() & 1) {
|
if (CGeneral::GetRandomNumber() & 1) {
|
||||||
animToPlay = ANIM_IDLE_STANCE;
|
animToPlay = ANIM_STD_IDLE;
|
||||||
animGroup = m_animGroup;
|
animGroup = m_animGroup;
|
||||||
} else {
|
} else {
|
||||||
animToPlay = ANIM_IDLE_HBHB;
|
animToPlay = ANIM_STD_IDLE_HBHB;
|
||||||
animGroup = ASSOCGRP_STD;
|
animGroup = ASSOCGRP_STD;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2527,26 +2527,26 @@ CPed::InvestigateEvent(void)
|
|||||||
if (CTimer::GetTimeInMilliseconds() > m_lookTimer) {
|
if (CTimer::GetTimeInMilliseconds() > m_lookTimer) {
|
||||||
|
|
||||||
if (m_lookTimer) {
|
if (m_lookTimer) {
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_ROAD_CROSS);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_ROADCROSS);
|
||||||
|
|
||||||
if (animAssoc) {
|
if (animAssoc) {
|
||||||
animAssoc->blendDelta = -8.0f;
|
animAssoc->blendDelta = -8.0f;
|
||||||
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
if (m_eventType == EVENT_ICECREAM)
|
if (m_eventType == EVENT_ICECREAM)
|
||||||
animToPlay = ANIM_IDLE_CHAT;
|
animToPlay = ANIM_STD_CHAT;
|
||||||
else
|
else
|
||||||
animToPlay = ANIM_XPRESS_SCRATCH;
|
animToPlay = ANIM_STD_XPRESS_SCRATCH;
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, animToPlay,4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, animToPlay,4.0f);
|
||||||
SetLookTimer(CGeneral::GetRandomNumberInRange(2000, 5000));
|
SetLookTimer(CGeneral::GetRandomNumberInRange(2000, 5000));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_CHAT);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CHAT);
|
||||||
if (animAssoc) {
|
if (animAssoc) {
|
||||||
animAssoc->blendDelta = -8.0f;
|
animAssoc->blendDelta = -8.0f;
|
||||||
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
ClearInvestigateEvent();
|
ClearInvestigateEvent();
|
||||||
} else {
|
} else {
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_XPRESS_SCRATCH);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_XPRESS_SCRATCH);
|
||||||
if (animAssoc) {
|
if (animAssoc) {
|
||||||
animAssoc->blendDelta = -8.0f;
|
animAssoc->blendDelta = -8.0f;
|
||||||
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
@ -2555,7 +2555,7 @@ CPed::InvestigateEvent(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_ROAD_CROSS, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_ROADCROSS, 4.0f);
|
||||||
SetLookTimer(CGeneral::GetRandomNumberInRange(1000, 2500));
|
SetLookTimer(CGeneral::GetRandomNumberInRange(1000, 2500));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2601,13 +2601,13 @@ CPed::InvestigateEvent(void)
|
|||||||
void
|
void
|
||||||
CPed::ClearInvestigateEvent(void)
|
CPed::ClearInvestigateEvent(void)
|
||||||
{
|
{
|
||||||
CAnimBlendAssociation *animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_ROAD_CROSS);
|
CAnimBlendAssociation *animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_ROADCROSS);
|
||||||
if (!animAssoc)
|
if (!animAssoc)
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_XPRESS_SCRATCH);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_XPRESS_SCRATCH);
|
||||||
if (!animAssoc)
|
if (!animAssoc)
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_HBHB);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_IDLE_HBHB);
|
||||||
if (!animAssoc)
|
if (!animAssoc)
|
||||||
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_CHAT);
|
animAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CHAT);
|
||||||
if (animAssoc) {
|
if (animAssoc) {
|
||||||
animAssoc->blendDelta = -8.0f;
|
animAssoc->blendDelta = -8.0f;
|
||||||
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
animAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
@ -2629,7 +2629,7 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
CPlayerPed *player = FindPlayerPed();
|
CPlayerPed *player = FindPlayerPed();
|
||||||
float dieDelta = 4.0f;
|
float dieDelta = 4.0f;
|
||||||
float dieSpeed = 0.0f;
|
float dieSpeed = 0.0f;
|
||||||
AnimationId dieAnim = ANIM_KO_SHOT_FRONT1;
|
AnimationId dieAnim = ANIM_STD_KO_FRONT;
|
||||||
bool headShot = false;
|
bool headShot = false;
|
||||||
bool willLinger = false;
|
bool willLinger = false;
|
||||||
int random;
|
int random;
|
||||||
@ -2677,9 +2677,9 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
if (m_nPedState == PED_GETUP) {
|
if (m_nPedState == PED_GETUP) {
|
||||||
if (!IsPedHeadAbovePos(-0.3f)) {
|
if (!IsPedHeadAbovePos(-0.3f)) {
|
||||||
if (RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL))
|
if (RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL))
|
||||||
dieAnim = ANIM_FLOOR_HIT_F;
|
dieAnim = ANIM_STD_HIT_FLOOR_FRONT;
|
||||||
else
|
else
|
||||||
dieAnim = ANIM_FLOOR_HIT;
|
dieAnim = ANIM_STD_HIT_FLOOR;
|
||||||
dieDelta *= 2.0f;
|
dieDelta *= 2.0f;
|
||||||
dieSpeed = 0.5f;
|
dieSpeed = 0.5f;
|
||||||
detectDieAnim = false;
|
detectDieAnim = false;
|
||||||
@ -2688,14 +2688,14 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
CAnimBlendAssociation *fallAssoc = RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_PARTIAL);
|
CAnimBlendAssociation *fallAssoc = RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_PARTIAL);
|
||||||
if (!fallAssoc || fallAssoc->IsRunning()) {
|
if (!fallAssoc || fallAssoc->IsRunning()) {
|
||||||
if (fallAssoc && fallAssoc->blendDelta >= 0.0f)
|
if (fallAssoc && fallAssoc->blendDelta >= 0.0f)
|
||||||
dieAnim = NUM_STD_ANIMS;
|
dieAnim = ANIM_STD_NUM;
|
||||||
else
|
else
|
||||||
dieAnim = ANIM_KO_SHOT_FRONT1;
|
dieAnim = ANIM_STD_KO_FRONT;
|
||||||
} else {
|
} else {
|
||||||
if (fallAssoc->flags & ASSOC_FRONTAL)
|
if (fallAssoc->flags & ASSOC_FRONTAL)
|
||||||
dieAnim = ANIM_FLOOR_HIT_F;
|
dieAnim = ANIM_STD_HIT_FLOOR_FRONT;
|
||||||
else
|
else
|
||||||
dieAnim = ANIM_FLOOR_HIT;
|
dieAnim = ANIM_STD_HIT_FLOOR;
|
||||||
|
|
||||||
dieDelta *= 2.0f;
|
dieDelta *= 2.0f;
|
||||||
dieSpeed = 0.5f;
|
dieSpeed = 0.5f;
|
||||||
@ -2712,28 +2712,28 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
|
|
||||||
if (m_nPedState == PED_FALL) {
|
if (m_nPedState == PED_FALL) {
|
||||||
if (IsPedHeadAbovePos(-0.3f)) {
|
if (IsPedHeadAbovePos(-0.3f)) {
|
||||||
dieAnim = NUM_STD_ANIMS;
|
dieAnim = ANIM_STD_NUM;
|
||||||
} else {
|
} else {
|
||||||
if (RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL))
|
if (RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL))
|
||||||
dieAnim = ANIM_FLOOR_HIT_F;
|
dieAnim = ANIM_STD_HIT_FLOOR_FRONT;
|
||||||
else
|
else
|
||||||
dieAnim = ANIM_FLOOR_HIT;
|
dieAnim = ANIM_STD_HIT_FLOOR;
|
||||||
dieDelta = dieDelta * 2.0f;
|
dieDelta = dieDelta * 2.0f;
|
||||||
dieSpeed = 0.5f;
|
dieSpeed = 0.5f;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 0:
|
case 0:
|
||||||
dieAnim = ANIM_KO_SKID_FRONT;
|
dieAnim = ANIM_STD_HIGHIMPACT_FRONT;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
dieAnim = ANIM_KO_SPIN_R;
|
dieAnim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
dieAnim = ANIM_KO_SKID_BACK;
|
dieAnim = ANIM_STD_HIGHIMPACT_BACK;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
dieAnim = ANIM_KO_SPIN_L;
|
dieAnim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -2761,12 +2761,12 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
|
|
||||||
if (m_nPedState == PED_FALL) {
|
if (m_nPedState == PED_FALL) {
|
||||||
if (IsPedHeadAbovePos(-0.3f)) {
|
if (IsPedHeadAbovePos(-0.3f)) {
|
||||||
dieAnim = NUM_STD_ANIMS;
|
dieAnim = ANIM_STD_NUM;
|
||||||
} else {
|
} else {
|
||||||
if (RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL))
|
if (RpAnimBlendClumpGetFirstAssociation(GetClump(), ASSOC_FRONTAL))
|
||||||
dieAnim = ANIM_FLOOR_HIT_F;
|
dieAnim = ANIM_STD_HIT_FLOOR_FRONT;
|
||||||
else
|
else
|
||||||
dieAnim = ANIM_FLOOR_HIT;
|
dieAnim = ANIM_STD_HIT_FLOOR;
|
||||||
dieDelta = dieDelta * 2.0f;
|
dieDelta = dieDelta * 2.0f;
|
||||||
dieSpeed = 0.5f;
|
dieSpeed = 0.5f;
|
||||||
}
|
}
|
||||||
@ -2774,28 +2774,28 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
if (damagedBy != FindPlayerPed() || FindPlayerPed()->m_curFightMove != FIGHTMOVE_MELEE3) {
|
if (damagedBy != FindPlayerPed() || FindPlayerPed()->m_curFightMove != FIGHTMOVE_MELEE3) {
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 0:
|
case 0:
|
||||||
dieAnim = ANIM_KO_SKID_FRONT;
|
dieAnim = ANIM_STD_HIGHIMPACT_FRONT;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
dieAnim = ANIM_KO_SPIN_R;
|
dieAnim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
dieAnim = ANIM_KO_SKID_BACK;
|
dieAnim = ANIM_STD_HIGHIMPACT_BACK;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
dieAnim = ANIM_KO_SPIN_L;
|
dieAnim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dieAnim = ANIM_KO_SHOT_STOM;
|
dieAnim = ANIM_STD_KO_SHOT_STOMACH;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dieAnim = ANIM_KO_SHOT_FACE;
|
dieAnim = ANIM_STD_KO_SHOT_FACE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dieAnim = ANIM_KO_SHOT_FACE;
|
dieAnim = ANIM_STD_KO_SHOT_FACE;
|
||||||
RemoveBodyPart(PED_HEAD, direction);
|
RemoveBodyPart(PED_HEAD, direction);
|
||||||
headShot = true;
|
headShot = true;
|
||||||
willLinger = true;
|
willLinger = true;
|
||||||
@ -2836,56 +2836,56 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
if (method == WEAPONTYPE_SHOTGUN) {
|
if (method == WEAPONTYPE_SHOTGUN) {
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 0:
|
case 0:
|
||||||
dieAnim = ANIM_KO_SKID_FRONT;
|
dieAnim = ANIM_STD_HIGHIMPACT_FRONT;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
dieAnim = ANIM_KO_SPIN_R;
|
dieAnim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
dieAnim = ANIM_KO_SKID_BACK;
|
dieAnim = ANIM_STD_HIGHIMPACT_BACK;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
dieAnim = ANIM_KO_SPIN_L;
|
dieAnim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
dieAnim = ANIM_KO_SHOT_FRONT1;
|
dieAnim = ANIM_STD_KO_FRONT;
|
||||||
|
|
||||||
willLinger = false;
|
willLinger = false;
|
||||||
} else {
|
} else {
|
||||||
switch (pedPiece) {
|
switch (pedPiece) {
|
||||||
case PEDPIECE_TORSO:
|
case PEDPIECE_TORSO:
|
||||||
willLinger = false;
|
willLinger = false;
|
||||||
dieAnim = ANIM_KO_SHOT_FRONT1;
|
dieAnim = ANIM_STD_KO_FRONT;
|
||||||
break;
|
break;
|
||||||
case PEDPIECE_MID:
|
case PEDPIECE_MID:
|
||||||
willLinger = false;
|
willLinger = false;
|
||||||
dieAnim = ANIM_KO_SHOT_STOM;
|
dieAnim = ANIM_STD_KO_SHOT_STOMACH;
|
||||||
break;
|
break;
|
||||||
case PEDPIECE_LEFTARM:
|
case PEDPIECE_LEFTARM:
|
||||||
dieAnim = ANIM_KO_SHOT_ARML;
|
dieAnim = ANIM_STD_KO_SHOT_ARM_L;
|
||||||
RemoveBodyPart(PED_UPPERARML, direction);
|
RemoveBodyPart(PED_UPPERARML, direction);
|
||||||
willLinger = true;
|
willLinger = true;
|
||||||
break;
|
break;
|
||||||
case PEDPIECE_RIGHTARM:
|
case PEDPIECE_RIGHTARM:
|
||||||
dieAnim = ANIM_KO_SHOT_ARMR;
|
dieAnim = ANIM_STD_KO_SHOT_ARM_R;
|
||||||
RemoveBodyPart(PED_UPPERARMR, direction);
|
RemoveBodyPart(PED_UPPERARMR, direction);
|
||||||
willLinger = true;
|
willLinger = true;
|
||||||
break;
|
break;
|
||||||
case PEDPIECE_LEFTLEG:
|
case PEDPIECE_LEFTLEG:
|
||||||
dieAnim = ANIM_KO_SHOT_LEGL;
|
dieAnim = ANIM_STD_KO_SHOT_LEG_L;
|
||||||
RemoveBodyPart(PED_UPPERLEGL, direction);
|
RemoveBodyPart(PED_UPPERLEGL, direction);
|
||||||
willLinger = true;
|
willLinger = true;
|
||||||
break;
|
break;
|
||||||
case PEDPIECE_RIGHTLEG:
|
case PEDPIECE_RIGHTLEG:
|
||||||
dieAnim = ANIM_KO_SHOT_LEGR;
|
dieAnim = ANIM_STD_KO_SHOT_LEG_R;
|
||||||
RemoveBodyPart(PED_UPPERLEGR, direction);
|
RemoveBodyPart(PED_UPPERLEGR, direction);
|
||||||
willLinger = true;
|
willLinger = true;
|
||||||
break;
|
break;
|
||||||
case PEDPIECE_HEAD:
|
case PEDPIECE_HEAD:
|
||||||
dieAnim = ANIM_KO_SHOT_FACE;
|
dieAnim = ANIM_STD_KO_SHOT_FACE;
|
||||||
RemoveBodyPart(PED_HEAD, direction);
|
RemoveBodyPart(PED_HEAD, direction);
|
||||||
headShot = true;
|
headShot = true;
|
||||||
willLinger = true;
|
willLinger = true;
|
||||||
@ -2925,16 +2925,16 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
|
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 0:
|
case 0:
|
||||||
dieAnim = ANIM_KO_SKID_FRONT;
|
dieAnim = ANIM_STD_HIGHIMPACT_FRONT;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
dieAnim = ANIM_KO_SPIN_R;
|
dieAnim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
dieAnim = ANIM_KO_SKID_BACK;
|
dieAnim = ANIM_STD_HIGHIMPACT_BACK;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
dieAnim = ANIM_KO_SPIN_L;
|
dieAnim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -2944,7 +2944,7 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
if (bFireProof)
|
if (bFireProof)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
dieAnim = ANIM_KO_SHOT_FRONT1;
|
dieAnim = ANIM_STD_KO_FRONT;
|
||||||
break;
|
break;
|
||||||
case WEAPONTYPE_RAMMEDBYCAR:
|
case WEAPONTYPE_RAMMEDBYCAR:
|
||||||
case WEAPONTYPE_RUNOVERBYCAR:
|
case WEAPONTYPE_RUNOVERBYCAR:
|
||||||
@ -2959,36 +2959,36 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
if (pedPiece == PEDPIECE_RIGHTARM && random > 1
|
if (pedPiece == PEDPIECE_RIGHTARM && random > 1
|
||||||
|| pedPiece == PEDPIECE_MID && random == 2)
|
|| pedPiece == PEDPIECE_MID && random == 2)
|
||||||
|
|
||||||
dieAnim = ANIM_KO_SPIN_L;
|
dieAnim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
else
|
else
|
||||||
dieAnim = ANIM_KO_SKID_FRONT;
|
dieAnim = ANIM_STD_HIGHIMPACT_FRONT;
|
||||||
} else
|
} else
|
||||||
dieAnim = ANIM_KO_SPIN_R;
|
dieAnim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (m_nPedState == PED_DIVE_AWAY)
|
if (m_nPedState == PED_DIVE_AWAY)
|
||||||
dieAnim = ANIM_KD_LEFT;
|
dieAnim = ANIM_STD_SPINFORWARD_LEFT;
|
||||||
else
|
else
|
||||||
dieAnim = ANIM_KO_SPIN_R;
|
dieAnim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if ((pedPiece != PEDPIECE_LEFTARM || random <= 1)
|
if ((pedPiece != PEDPIECE_LEFTARM || random <= 1)
|
||||||
&& (pedPiece != PEDPIECE_MID || random != 1)) {
|
&& (pedPiece != PEDPIECE_MID || random != 1)) {
|
||||||
if ((pedPiece != PEDPIECE_RIGHTARM || random <= 1)
|
if ((pedPiece != PEDPIECE_RIGHTARM || random <= 1)
|
||||||
&& (pedPiece != PEDPIECE_MID || random != 2)) {
|
&& (pedPiece != PEDPIECE_MID || random != 2)) {
|
||||||
dieAnim = ANIM_KO_SKID_BACK;
|
dieAnim = ANIM_STD_HIGHIMPACT_BACK;
|
||||||
} else {
|
} else {
|
||||||
dieAnim = ANIM_KD_RIGHT;
|
dieAnim = ANIM_STD_SPINFORWARD_RIGHT;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
dieAnim = ANIM_KD_LEFT;
|
dieAnim = ANIM_STD_SPINFORWARD_LEFT;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if (m_nPedState == PED_DIVE_AWAY)
|
if (m_nPedState == PED_DIVE_AWAY)
|
||||||
dieAnim = ANIM_KD_RIGHT;
|
dieAnim = ANIM_STD_SPINFORWARD_RIGHT;
|
||||||
else
|
else
|
||||||
dieAnim = ANIM_KO_SPIN_L;
|
dieAnim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -3006,7 +3006,7 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WEAPONTYPE_DROWNING:
|
case WEAPONTYPE_DROWNING:
|
||||||
dieAnim = ANIM_DROWN;
|
dieAnim = ANIM_STD_DROWN;
|
||||||
break;
|
break;
|
||||||
case WEAPONTYPE_FALL:
|
case WEAPONTYPE_FALL:
|
||||||
if (bCollisionProof)
|
if (bCollisionProof)
|
||||||
@ -3014,16 +3014,16 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
|
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 0:
|
case 0:
|
||||||
dieAnim = ANIM_KO_SKID_FRONT;
|
dieAnim = ANIM_STD_HIGHIMPACT_FRONT;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
dieAnim = ANIM_KO_SPIN_R;
|
dieAnim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
dieAnim = ANIM_KO_SKID_BACK;
|
dieAnim = ANIM_STD_HIGHIMPACT_BACK;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
dieAnim = ANIM_KO_SPIN_L;
|
dieAnim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -3056,7 +3056,7 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (method == WEAPONTYPE_FALL) {
|
if (method == WEAPONTYPE_FALL) {
|
||||||
if (RpAnimBlendClumpGetAssociation(GetClump(), ANIM_CAR_ROLLOUT_LHS)) {
|
if (RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_ROLLOUT_LHS)) {
|
||||||
if (m_fHealth >= 1.0 && m_fHealth - healthImpact < 5.0f) {
|
if (m_fHealth >= 1.0 && m_fHealth - healthImpact < 5.0f) {
|
||||||
m_fHealth = Min(m_fHealth, 5.0f);
|
m_fHealth = Min(m_fHealth, 5.0f);
|
||||||
return false;
|
return false;
|
||||||
@ -3133,7 +3133,7 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
|
|||||||
if (player == this)
|
if (player == this)
|
||||||
m_pMyVehicle->SetStatus(STATUS_PLAYER_DISABLED);
|
m_pMyVehicle->SetStatus(STATUS_PLAYER_DISABLED);
|
||||||
|
|
||||||
SetDie(NUM_STD_ANIMS, 4.0f, 0.0f);
|
SetDie(ANIM_STD_NUM, 4.0f, 0.0f);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
m_fHealth = 0.0f;
|
m_fHealth = 0.0f;
|
||||||
@ -3486,7 +3486,7 @@ CPed::CollideWithPed(CPed *collideWith)
|
|||||||
} else {
|
} else {
|
||||||
SetLookFlag(collideWith, false);
|
SetLookFlag(collideWith, false);
|
||||||
TurnBody();
|
TurnBody();
|
||||||
animAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_FIGHT_PPUNCH, 8.0f);
|
animAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_PARTIAL_PUNCH, 8.0f);
|
||||||
animAssoc->flags |= ASSOC_FADEOUTWHENDONE;
|
animAssoc->flags |= ASSOC_FADEOUTWHENDONE;
|
||||||
m_nPedStateTimer = CTimer::GetTimeInMilliseconds() + 2000;
|
m_nPedStateTimer = CTimer::GetTimeInMilliseconds() + 2000;
|
||||||
if (!heIsMissionChar) {
|
if (!heIsMissionChar) {
|
||||||
@ -3507,22 +3507,22 @@ CPed::CollideWithPed(CPed *collideWith)
|
|||||||
moveForce.z += 0.1f;
|
moveForce.z += 0.1f;
|
||||||
ApplyMoveForce(moveForce);
|
ApplyMoveForce(moveForce);
|
||||||
if (collideWith->m_nMoveState != PEDMOVE_RUN && collideWith->m_nMoveState != PEDMOVE_SPRINT)
|
if (collideWith->m_nMoveState != PEDMOVE_RUN && collideWith->m_nMoveState != PEDMOVE_SPRINT)
|
||||||
animToPlay = ANIM_HIT_LEFT;
|
animToPlay = ANIM_STD_HIT_LEFT;
|
||||||
else
|
else
|
||||||
animToPlay = ANIM_SHOT_LEFT_PARTIAL;
|
animToPlay = ANIM_STD_HITBYGUN_LEFT;
|
||||||
} else if (heLooksToUs) {
|
} else if (heLooksToUs) {
|
||||||
CVector moveForce = GetRight() * -1.0f;
|
CVector moveForce = GetRight() * -1.0f;
|
||||||
moveForce.z += 0.1f;
|
moveForce.z += 0.1f;
|
||||||
ApplyMoveForce(moveForce);
|
ApplyMoveForce(moveForce);
|
||||||
if (collideWith->m_nMoveState != PEDMOVE_RUN && collideWith->m_nMoveState != PEDMOVE_SPRINT)
|
if (collideWith->m_nMoveState != PEDMOVE_RUN && collideWith->m_nMoveState != PEDMOVE_SPRINT)
|
||||||
animToPlay = ANIM_HIT_RIGHT;
|
animToPlay = ANIM_STD_HIT_RIGHT;
|
||||||
else
|
else
|
||||||
animToPlay = ANIM_SHOT_RIGHT_PARTIAL;
|
animToPlay = ANIM_STD_HITBYGUN_RIGHT;
|
||||||
} else {
|
} else {
|
||||||
if (collideWith->m_nMoveState != PEDMOVE_RUN && collideWith->m_nMoveState != PEDMOVE_SPRINT)
|
if (collideWith->m_nMoveState != PEDMOVE_RUN && collideWith->m_nMoveState != PEDMOVE_SPRINT)
|
||||||
animToPlay = ANIM_HIT_BACK;
|
animToPlay = ANIM_STD_HIT_BACK;
|
||||||
else
|
else
|
||||||
animToPlay = ANIM_SHOT_BACK_PARTIAL;
|
animToPlay = ANIM_STD_HITBYGUN_BACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (collideWith->IsPedInControl() && CTimer::GetTimeInMilliseconds() > collideWith->m_nPedStateTimer) {
|
if (collideWith->IsPedInControl() && CTimer::GetTimeInMilliseconds() > collideWith->m_nPedStateTimer) {
|
||||||
@ -3539,17 +3539,17 @@ CPed::CollideWithPed(CPed *collideWith)
|
|||||||
moveForce.z += 0.1f;
|
moveForce.z += 0.1f;
|
||||||
ApplyMoveForce(moveForce);
|
ApplyMoveForce(moveForce);
|
||||||
if (heLooksToUs)
|
if (heLooksToUs)
|
||||||
animToPlay = ANIM_KO_SPIN_L;
|
animToPlay = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
else
|
else
|
||||||
animToPlay = ANIM_KD_RIGHT;
|
animToPlay = ANIM_STD_SPINFORWARD_RIGHT;
|
||||||
} else {
|
} else {
|
||||||
CVector moveForce = GetRight();
|
CVector moveForce = GetRight();
|
||||||
moveForce.z += 0.1f;
|
moveForce.z += 0.1f;
|
||||||
ApplyMoveForce(moveForce);
|
ApplyMoveForce(moveForce);
|
||||||
if (heLooksToUs)
|
if (heLooksToUs)
|
||||||
animToPlay = ANIM_KO_SPIN_R;
|
animToPlay = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
else
|
else
|
||||||
animToPlay = ANIM_KD_LEFT;
|
animToPlay = ANIM_STD_SPINFORWARD_LEFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_nPedState == PED_ATTACK && collideWith->IsPedInControl())
|
if (m_nPedState == PED_ATTACK && collideWith->IsPedInControl())
|
||||||
@ -3802,7 +3802,7 @@ CPed::KillPedWithCar(CVehicle *car, float impulse)
|
|||||||
damage = 30.0f;
|
damage = 30.0f;
|
||||||
|
|
||||||
InflictDamage(car, WEAPONTYPE_RAMMEDBYCAR, damage, PEDPIECE_TORSO, fallDirection);
|
InflictDamage(car, WEAPONTYPE_RAMMEDBYCAR, damage, PEDPIECE_TORSO, fallDirection);
|
||||||
SetFall(1000, (AnimationId)(fallDirection + ANIM_KO_SKID_FRONT), true);
|
SetFall(1000, (AnimationId)(fallDirection + ANIM_STD_HIGHIMPACT_FRONT), true);
|
||||||
|
|
||||||
if (OnGround() && !m_pCollidingEntity &&
|
if (OnGround() && !m_pCollidingEntity &&
|
||||||
(!IsPlayer() || bHasHitWall || car->GetModelIndex() == MI_TRAIN || m_vecDamageNormal.z < -0.8f)) {
|
(!IsPlayer() || bHasHitWall || car->GetModelIndex() == MI_TRAIN || m_vecDamageNormal.z < -0.8f)) {
|
||||||
@ -3846,18 +3846,18 @@ CPed::DriveVehicle(void)
|
|||||||
float targetUDLean = 0.0f;
|
float targetUDLean = 0.0f;
|
||||||
CAnimBlendAssociation *leftAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_LEFT);
|
CAnimBlendAssociation *leftAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_LEFT);
|
||||||
CAnimBlendAssociation *rightAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_RIGHT);
|
CAnimBlendAssociation *rightAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_RIGHT);
|
||||||
CAnimBlendAssociation *stillAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_STILL);
|
CAnimBlendAssociation *stillAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_READY);
|
||||||
CAnimBlendAssociation *fwdAssoc, *backAssoc;
|
CAnimBlendAssociation *fwdAssoc, *backAssoc;
|
||||||
if (IsPlayer()) {
|
if (IsPlayer()) {
|
||||||
fwdAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_FWD);
|
fwdAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_LEANF);
|
||||||
backAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_BACK);
|
backAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_LEANB);
|
||||||
}
|
}
|
||||||
CAnimBlendAssociation *walkbackAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_PUSHES);
|
CAnimBlendAssociation *walkbackAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_WALKBACK);
|
||||||
CAnimBlendAssociation *drivebyAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
CAnimBlendAssociation *drivebyAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
||||||
if (!drivebyAssoc)
|
if (!drivebyAssoc)
|
||||||
drivebyAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
drivebyAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
||||||
if (!drivebyAssoc)
|
if (!drivebyAssoc)
|
||||||
drivebyAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_DRIVEBY_FT);
|
drivebyAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BIKE_DRIVEBY_FORWARD);
|
||||||
|
|
||||||
float velocityFwdDotProd = DotProduct(bike->m_vecMoveSpeed, bike->GetForward());
|
float velocityFwdDotProd = DotProduct(bike->m_vecMoveSpeed, bike->GetForward());
|
||||||
if (m_vecTurnSpeed.MagnitudeSqr() > 0.09f) {
|
if (m_vecTurnSpeed.MagnitudeSqr() > 0.09f) {
|
||||||
@ -3868,7 +3868,7 @@ CPed::DriveVehicle(void)
|
|||||||
}
|
}
|
||||||
if (!drivebyAssoc && Abs(velocityFwdDotProd) < 0.02f) {
|
if (!drivebyAssoc && Abs(velocityFwdDotProd) < 0.02f) {
|
||||||
if (!stillAssoc || stillAssoc->blendAmount < 1.0 && stillAssoc->blendDelta <= 0.0) {
|
if (!stillAssoc || stillAssoc->blendAmount < 1.0 && stillAssoc->blendDelta <= 0.0) {
|
||||||
stillAssoc = CAnimManager::BlendAnimation(GetClump(), bike->m_bikeAnimType, ANIM_BIKE_STILL, 2.0f);
|
stillAssoc = CAnimManager::BlendAnimation(GetClump(), bike->m_bikeAnimType, ANIM_BIKE_READY, 2.0f);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (velocityFwdDotProd >= 0.0f) {
|
if (velocityFwdDotProd >= 0.0f) {
|
||||||
@ -3895,7 +3895,7 @@ CPed::DriveVehicle(void)
|
|||||||
walkbackAssoc->blendDelta = -4.0f;
|
walkbackAssoc->blendDelta = -4.0f;
|
||||||
}
|
}
|
||||||
} else if (!walkbackAssoc || walkbackAssoc->blendAmount < 1.0f && walkbackAssoc->blendDelta <= 0.0f) {
|
} else if (!walkbackAssoc || walkbackAssoc->blendAmount < 1.0f && walkbackAssoc->blendDelta <= 0.0f) {
|
||||||
walkbackAssoc = CAnimManager::BlendAnimation(GetClump(), bike->m_bikeAnimType, ANIM_BIKE_PUSHES, 4.0f);
|
walkbackAssoc = CAnimManager::BlendAnimation(GetClump(), bike->m_bikeAnimType, ANIM_BIKE_WALKBACK, 4.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3993,9 +3993,9 @@ CPed::DriveVehicle(void)
|
|||||||
float leftRightBlend = leftRightLeanAmount * blendDelta;
|
float leftRightBlend = leftRightLeanAmount * blendDelta;
|
||||||
if (IsPlayer()) {
|
if (IsPlayer()) {
|
||||||
if (!fwdAssoc)
|
if (!fwdAssoc)
|
||||||
fwdAssoc = CAnimManager::AddAnimation(GetClump(), bike->m_bikeAnimType, ANIM_BIKE_FWD);
|
fwdAssoc = CAnimManager::AddAnimation(GetClump(), bike->m_bikeAnimType, ANIM_BIKE_LEANF);
|
||||||
if (!backAssoc)
|
if (!backAssoc)
|
||||||
backAssoc = CAnimManager::AddAnimation(GetClump(), bike->m_bikeAnimType, ANIM_BIKE_BACK);
|
backAssoc = CAnimManager::AddAnimation(GetClump(), bike->m_bikeAnimType, ANIM_BIKE_LEANB);
|
||||||
|
|
||||||
if (bike->m_fPedLeanAmountUD < 0.0f) {
|
if (bike->m_fPedLeanAmountUD < 0.0f) {
|
||||||
backAssoc->blendAmount = fwdBackBlend;
|
backAssoc->blendAmount = fwdBackBlend;
|
||||||
@ -4044,35 +4044,35 @@ CPed::DriveVehicle(void)
|
|||||||
CAnimBlendAssociation* lbAssoc;
|
CAnimBlendAssociation* lbAssoc;
|
||||||
CAnimBlendAssociation* sitAssoc;
|
CAnimBlendAssociation* sitAssoc;
|
||||||
if (m_pMyVehicle->IsBoat() && !(m_pMyVehicle->pHandling->Flags & HANDLING_SIT_IN_BOAT)) {
|
if (m_pMyVehicle->IsBoat() && !(m_pMyVehicle->pHandling->Flags & HANDLING_SIT_IN_BOAT)) {
|
||||||
sitAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVE_BOAT);
|
sitAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_BOAT_DRIVE);
|
||||||
|
|
||||||
if (!sitAssoc || sitAssoc->blendAmount < 1.0f) {
|
if (!sitAssoc || sitAssoc->blendAmount < 1.0f) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
lDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVE_BOAT_L);
|
lDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_BOAT_DRIVE_LEFT);
|
||||||
rDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVE_BOAT_R);
|
rDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_BOAT_DRIVE_RIGHT);
|
||||||
lbAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_BOAT_LB);
|
lbAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_BOAT_LOOKBEHIND);
|
||||||
} else if (m_pMyVehicle->bLowVehicle) {
|
} else if (m_pMyVehicle->bLowVehicle) {
|
||||||
sitAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_CAR_LSIT);
|
sitAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_SIT_LO);
|
||||||
|
|
||||||
if (!sitAssoc || sitAssoc->blendAmount < 1.0f) {
|
if (!sitAssoc || sitAssoc->blendAmount < 1.0f) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
lDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVE_LOW_L);
|
lDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_DRIVE_LEFT_LO);
|
||||||
lbAssoc = nil;
|
lbAssoc = nil;
|
||||||
rDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVE_LOW_R);
|
rDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_DRIVE_RIGHT_LO);
|
||||||
} else {
|
} else {
|
||||||
sitAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_CAR_SIT);
|
sitAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_SIT);
|
||||||
|
|
||||||
if (!sitAssoc || sitAssoc->blendAmount < 1.0f) {
|
if (!sitAssoc || sitAssoc->blendAmount < 1.0f) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
lDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVE_L);
|
lDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_DRIVE_LEFT);
|
||||||
rDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVE_R);
|
rDriveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_DRIVE_RIGHT);
|
||||||
lbAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_CAR_LB);
|
lbAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_LOOKBEHIND);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lbAssoc &&
|
if (lbAssoc &&
|
||||||
@ -4081,13 +4081,13 @@ CPed::DriveVehicle(void)
|
|||||||
lbAssoc->blendDelta = -1000.0f;
|
lbAssoc->blendDelta = -1000.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
CAnimBlendAssociation* driveByAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVEBY_L);
|
CAnimBlendAssociation* driveByAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_DRIVEBY_LEFT);
|
||||||
if (!driveByAssoc)
|
if (!driveByAssoc)
|
||||||
driveByAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVEBY_R);
|
driveByAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_DRIVEBY_RIGHT);
|
||||||
if (!driveByAssoc)
|
if (!driveByAssoc)
|
||||||
driveByAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVEBY_LOW_L);
|
driveByAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_DRIVEBY_LEFT_LO);
|
||||||
if (!driveByAssoc)
|
if (!driveByAssoc)
|
||||||
driveByAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_DRIVEBY_LOW_R);
|
driveByAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_DRIVEBY_RIGHT_LO);
|
||||||
|
|
||||||
if (m_pMyVehicle->bLowVehicle || m_pMyVehicle->m_fGasPedal >= 0.0f || driveByAssoc ||
|
if (m_pMyVehicle->bLowVehicle || m_pMyVehicle->m_fGasPedal >= 0.0f || driveByAssoc ||
|
||||||
m_pMyVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI || m_pMyVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_PLANE) {
|
m_pMyVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI || m_pMyVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_PLANE) {
|
||||||
@ -4104,11 +4104,11 @@ CPed::DriveVehicle(void)
|
|||||||
if (rDriveAssoc)
|
if (rDriveAssoc)
|
||||||
rDriveAssoc->blendAmount = clamp(steerAngle * -100.0f / 61.0f, 0.0f, 1.0f);
|
rDriveAssoc->blendAmount = clamp(steerAngle * -100.0f / 61.0f, 0.0f, 1.0f);
|
||||||
else if (m_pMyVehicle->IsBoat() && !(m_pMyVehicle->pHandling->Flags & HANDLING_SIT_IN_BOAT))
|
else if (m_pMyVehicle->IsBoat() && !(m_pMyVehicle->pHandling->Flags & HANDLING_SIT_IN_BOAT))
|
||||||
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_DRIVE_BOAT_R);
|
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_BOAT_DRIVE_RIGHT);
|
||||||
else if (m_pMyVehicle->bLowVehicle)
|
else if (m_pMyVehicle->bLowVehicle)
|
||||||
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_DRIVE_LOW_R);
|
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_DRIVE_RIGHT_LO);
|
||||||
else
|
else
|
||||||
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_DRIVE_R);
|
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_DRIVE_RIGHT);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (rDriveAssoc)
|
if (rDriveAssoc)
|
||||||
@ -4117,11 +4117,11 @@ CPed::DriveVehicle(void)
|
|||||||
if (lDriveAssoc)
|
if (lDriveAssoc)
|
||||||
lDriveAssoc->blendAmount = clamp(steerAngle * 100.0f / 61.0f, 0.0f, 1.0f);
|
lDriveAssoc->blendAmount = clamp(steerAngle * 100.0f / 61.0f, 0.0f, 1.0f);
|
||||||
else if (m_pMyVehicle->IsBoat() && !(m_pMyVehicle->pHandling->Flags & HANDLING_SIT_IN_BOAT))
|
else if (m_pMyVehicle->IsBoat() && !(m_pMyVehicle->pHandling->Flags & HANDLING_SIT_IN_BOAT))
|
||||||
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_DRIVE_BOAT_L);
|
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_BOAT_DRIVE_LEFT);
|
||||||
else if (m_pMyVehicle->bLowVehicle)
|
else if (m_pMyVehicle->bLowVehicle)
|
||||||
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_DRIVE_LOW_L);
|
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_DRIVE_LEFT_LO);
|
||||||
else
|
else
|
||||||
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_DRIVE_L);
|
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_DRIVE_LEFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lbAssoc)
|
if (lbAssoc)
|
||||||
@ -4133,9 +4133,9 @@ CPed::DriveVehicle(void)
|
|||||||
&& (!lbAssoc || lbAssoc->blendAmount < 1.0f && lbAssoc->blendDelta <= 0.0f)) {
|
&& (!lbAssoc || lbAssoc->blendAmount < 1.0f && lbAssoc->blendDelta <= 0.0f)) {
|
||||||
|
|
||||||
if (m_pMyVehicle->IsBoat() && !(m_pMyVehicle->pHandling->Flags & HANDLING_SIT_IN_BOAT))
|
if (m_pMyVehicle->IsBoat() && !(m_pMyVehicle->pHandling->Flags & HANDLING_SIT_IN_BOAT))
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_BOAT_LB, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_BOAT_LOOKBEHIND, 4.0f);
|
||||||
else
|
else
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_CAR_LB, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_LOOKBEHIND, 4.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4166,12 +4166,12 @@ CPed::RemoveWeaponAnims(int unused, float animDelta)
|
|||||||
weaponAssoc->blendDelta = animDelta;
|
weaponAssoc->blendDelta = animDelta;
|
||||||
weaponAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
weaponAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
}
|
}
|
||||||
weaponAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_WEAPON_CROUCHRELOAD);
|
weaponAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_MELEE_IDLE_FIGHTMODE);
|
||||||
if (weaponAssoc) {
|
if (weaponAssoc) {
|
||||||
weaponAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
weaponAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
if (weaponAssoc->flags & ASSOC_PARTIAL)
|
if (weaponAssoc->flags & ASSOC_PARTIAL)
|
||||||
weaponAssoc->blendDelta = animDelta;
|
weaponAssoc->blendDelta = animDelta;
|
||||||
else
|
else
|
||||||
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, -animDelta);
|
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, -animDelta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ CPlayerPed::MakeChangesForNewWeapon(int32 slot)
|
|||||||
void
|
void
|
||||||
CPlayerPed::ReApplyMoveAnims(void)
|
CPlayerPed::ReApplyMoveAnims(void)
|
||||||
{
|
{
|
||||||
static AnimationId moveAnims[] = { ANIM_WALK, ANIM_RUN, ANIM_SPRINT, ANIM_IDLE_STANCE, ANIM_WALK_START };
|
static AnimationId moveAnims[] = { ANIM_STD_WALK, ANIM_STD_RUN, ANIM_STD_RUNFAST, ANIM_STD_IDLE, ANIM_STD_STARTWALK };
|
||||||
|
|
||||||
for(int i = 0; i < ARRAY_SIZE(moveAnims); i++) {
|
for(int i = 0; i < ARRAY_SIZE(moveAnims); i++) {
|
||||||
CAnimBlendAssociation *curMoveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), moveAnims[i]);
|
CAnimBlendAssociation *curMoveAssoc = RpAnimBlendClumpGetAssociation(GetClump(), moveAnims[i]);
|
||||||
@ -311,13 +311,13 @@ CPlayerPed::SetInitialState(void)
|
|||||||
void
|
void
|
||||||
CPlayerPed::SetRealMoveAnim(void)
|
CPlayerPed::SetRealMoveAnim(void)
|
||||||
{
|
{
|
||||||
CAnimBlendAssociation *curWalkAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_WALK);
|
CAnimBlendAssociation *curWalkAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_WALK);
|
||||||
CAnimBlendAssociation *curRunAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_RUN);
|
CAnimBlendAssociation *curRunAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_RUN);
|
||||||
CAnimBlendAssociation *curSprintAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_SPRINT);
|
CAnimBlendAssociation *curSprintAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_RUNFAST);
|
||||||
CAnimBlendAssociation *curWalkStartAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_WALK_START);
|
CAnimBlendAssociation *curWalkStartAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_STARTWALK);
|
||||||
CAnimBlendAssociation *curIdleAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_STANCE);
|
CAnimBlendAssociation *curIdleAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_IDLE);
|
||||||
CAnimBlendAssociation *curRunStopAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_RUN_STOP);
|
CAnimBlendAssociation *curRunStopAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_RUNSTOP1);
|
||||||
CAnimBlendAssociation *curRunStopRAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_RUN_STOP_R);
|
CAnimBlendAssociation *curRunStopRAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_RUNSTOP2);
|
||||||
if (bResetWalkAnims) {
|
if (bResetWalkAnims) {
|
||||||
if (curWalkAssoc)
|
if (curWalkAssoc)
|
||||||
curWalkAssoc->SetCurrentTime(0.0f);
|
curWalkAssoc->SetCurrentTime(0.0f);
|
||||||
@ -329,9 +329,9 @@ CPlayerPed::SetRealMoveAnim(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!curIdleAssoc)
|
if (!curIdleAssoc)
|
||||||
curIdleAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_TIRED);
|
curIdleAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_IDLE_TIRED);
|
||||||
if (!curIdleAssoc)
|
if (!curIdleAssoc)
|
||||||
curIdleAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_FIGHT_IDLE);
|
curIdleAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_FIGHT_IDLE);
|
||||||
if (!curIdleAssoc)
|
if (!curIdleAssoc)
|
||||||
curIdleAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_MELEE_IDLE_FIGHTMODE);
|
curIdleAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_MELEE_IDLE_FIGHTMODE);
|
||||||
|
|
||||||
@ -352,10 +352,10 @@ CPlayerPed::SetRealMoveAnim(void)
|
|||||||
if (!curIdleAssoc) {
|
if (!curIdleAssoc) {
|
||||||
if (m_fCurrentStamina < 0.0f && !bIsAimingGun && !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f,
|
if (m_fCurrentStamina < 0.0f && !bIsAimingGun && !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f,
|
||||||
nil, true, false, false, false, false, false)) {
|
nil, true, false, false, false, false, false)) {
|
||||||
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_IDLE_TIRED, 8.0f);
|
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_IDLE_TIRED, 8.0f);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, 8.0f);
|
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, 8.0f);
|
||||||
}
|
}
|
||||||
m_nWaitTimer = CTimer::GetTimeInMilliseconds() + CGeneral::GetRandomNumberInRange(2500, 4000);
|
m_nWaitTimer = CTimer::GetTimeInMilliseconds() + CGeneral::GetRandomNumberInRange(2500, 4000);
|
||||||
}
|
}
|
||||||
@ -366,25 +366,25 @@ CPlayerPed::SetRealMoveAnim(void)
|
|||||||
if (!curIdleAssoc) {
|
if (!curIdleAssoc) {
|
||||||
if (m_fCurrentStamina < 0.0f && !bIsAimingGun && !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f,
|
if (m_fCurrentStamina < 0.0f && !bIsAimingGun && !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f,
|
||||||
nil, true, false, false, false, false, false)) {
|
nil, true, false, false, false, false, false)) {
|
||||||
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_IDLE_TIRED, 4.0f);
|
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_IDLE_TIRED, 4.0f);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, 4.0f);
|
curIdleAssoc = CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, 4.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_nWaitTimer = CTimer::GetTimeInMilliseconds() + CGeneral::GetRandomNumberInRange(2500, 4000);
|
m_nWaitTimer = CTimer::GetTimeInMilliseconds() + CGeneral::GetRandomNumberInRange(2500, 4000);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((m_fCurrentStamina > 0.0f || bIsAimingGun) && curIdleAssoc->animId == ANIM_IDLE_TIRED) {
|
if ((m_fCurrentStamina > 0.0f || bIsAimingGun) && curIdleAssoc->animId == ANIM_STD_IDLE_TIRED) {
|
||||||
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, 4.0f);
|
||||||
|
|
||||||
} else if (m_nPedState != PED_FIGHT) {
|
} else if (m_nPedState != PED_FIGHT) {
|
||||||
if (m_fCurrentStamina < 0.0f && !bIsAimingGun && curIdleAssoc->animId != ANIM_IDLE_TIRED
|
if (m_fCurrentStamina < 0.0f && !bIsAimingGun && curIdleAssoc->animId != ANIM_STD_IDLE_TIRED
|
||||||
&& !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f, nil, true, false, false, false, false, false)) {
|
&& !CWorld::TestSphereAgainstWorld(GetPosition(), 0.5f, nil, true, false, false, false, false, false)) {
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_IDLE_TIRED, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_IDLE_TIRED, 4.0f);
|
||||||
|
|
||||||
} else if (curIdleAssoc->animId != ANIM_IDLE_STANCE) {
|
} else if (curIdleAssoc->animId != ANIM_STD_IDLE) {
|
||||||
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE, 4.0f);
|
CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_IDLE, 4.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_nMoveState = PEDMOVE_STILL;
|
m_nMoveState = PEDMOVE_STILL;
|
||||||
@ -395,7 +395,7 @@ CPlayerPed::SetRealMoveAnim(void)
|
|||||||
curWalkStartAssoc->blendAmount = 1.0f;
|
curWalkStartAssoc->blendAmount = 1.0f;
|
||||||
curWalkStartAssoc->blendDelta = 0.0f;
|
curWalkStartAssoc->blendDelta = 0.0f;
|
||||||
} else {
|
} else {
|
||||||
curWalkStartAssoc = CAnimManager::AddAnimation(GetClump(), m_animGroup, ANIM_WALK_START);
|
curWalkStartAssoc = CAnimManager::AddAnimation(GetClump(), m_animGroup, ANIM_STD_STARTWALK);
|
||||||
}
|
}
|
||||||
if (curWalkAssoc)
|
if (curWalkAssoc)
|
||||||
curWalkAssoc->SetCurrentTime(0.0f);
|
curWalkAssoc->SetCurrentTime(0.0f);
|
||||||
@ -403,8 +403,8 @@ CPlayerPed::SetRealMoveAnim(void)
|
|||||||
curRunAssoc->SetCurrentTime(0.0f);
|
curRunAssoc->SetCurrentTime(0.0f);
|
||||||
|
|
||||||
delete curIdleAssoc;
|
delete curIdleAssoc;
|
||||||
delete RpAnimBlendClumpGetAssociation(GetClump(), ANIM_IDLE_TIRED);
|
delete RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_IDLE_TIRED);
|
||||||
CAnimBlendAssociation *fightIdleAnim = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_FIGHT_IDLE);
|
CAnimBlendAssociation *fightIdleAnim = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_FIGHT_IDLE);
|
||||||
if (!fightIdleAnim)
|
if (!fightIdleAnim)
|
||||||
fightIdleAnim = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_MELEE_IDLE_FIGHTMODE);
|
fightIdleAnim = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_MELEE_IDLE_FIGHTMODE);
|
||||||
delete fightIdleAnim;
|
delete fightIdleAnim;
|
||||||
@ -422,11 +422,11 @@ CPlayerPed::SetRealMoveAnim(void)
|
|||||||
RestoreHeadingRate();
|
RestoreHeadingRate();
|
||||||
}
|
}
|
||||||
if (!curWalkAssoc) {
|
if (!curWalkAssoc) {
|
||||||
curWalkAssoc = CAnimManager::AddAnimation(GetClump(), m_animGroup, ANIM_WALK);
|
curWalkAssoc = CAnimManager::AddAnimation(GetClump(), m_animGroup, ANIM_STD_WALK);
|
||||||
curWalkAssoc->blendAmount = 0.0f;
|
curWalkAssoc->blendAmount = 0.0f;
|
||||||
}
|
}
|
||||||
if (!curRunAssoc) {
|
if (!curRunAssoc) {
|
||||||
curRunAssoc = CAnimManager::AddAnimation(GetClump(), m_animGroup, ANIM_RUN);
|
curRunAssoc = CAnimManager::AddAnimation(GetClump(), m_animGroup, ANIM_STD_RUN);
|
||||||
curRunAssoc->blendAmount = 0.0f;
|
curRunAssoc->blendAmount = 0.0f;
|
||||||
}
|
}
|
||||||
if (curWalkStartAssoc && !(curWalkStartAssoc->IsRunning())) {
|
if (curWalkStartAssoc && !(curWalkStartAssoc->IsRunning())) {
|
||||||
@ -453,9 +453,9 @@ CPlayerPed::SetRealMoveAnim(void)
|
|||||||
if (m_fMoveSpeed < 0.4f) {
|
if (m_fMoveSpeed < 0.4f) {
|
||||||
AnimationId runStopAnim;
|
AnimationId runStopAnim;
|
||||||
if (curSprintAssoc->GetProgress() < 0.5) // double
|
if (curSprintAssoc->GetProgress() < 0.5) // double
|
||||||
runStopAnim = ANIM_RUN_STOP;
|
runStopAnim = ANIM_STD_RUNSTOP1;
|
||||||
else
|
else
|
||||||
runStopAnim = ANIM_RUN_STOP_R;
|
runStopAnim = ANIM_STD_RUNSTOP2;
|
||||||
CAnimBlendAssociation* newRunStopAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, runStopAnim);
|
CAnimBlendAssociation* newRunStopAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, runStopAnim);
|
||||||
newRunStopAssoc->blendAmount = 1.0f;
|
newRunStopAssoc->blendAmount = 1.0f;
|
||||||
newRunStopAssoc->SetDeleteCallback(RestoreHeadingRateCB, this);
|
newRunStopAssoc->SetDeleteCallback(RestoreHeadingRateCB, this);
|
||||||
@ -498,7 +498,7 @@ CPlayerPed::SetRealMoveAnim(void)
|
|||||||
// Transition between run-sprint
|
// Transition between run-sprint
|
||||||
curWalkAssoc->blendAmount = 0.0f;
|
curWalkAssoc->blendAmount = 0.0f;
|
||||||
curRunAssoc->blendAmount = 1.0f;
|
curRunAssoc->blendAmount = 1.0f;
|
||||||
curSprintAssoc = CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_SPRINT, 2.0f);
|
curSprintAssoc = CAnimManager::BlendAnimation(GetClump(), m_animGroup, ANIM_STD_RUNFAST, 2.0f);
|
||||||
}
|
}
|
||||||
UseSprintEnergy();
|
UseSprintEnergy();
|
||||||
} else {
|
} else {
|
||||||
@ -629,14 +629,14 @@ CPlayerPed::DoesTargetHaveToBeBroken(CVector target, CWeapon *weaponUsed)
|
|||||||
void
|
void
|
||||||
CPlayerPed::RunningLand(CPad *padUsed)
|
CPlayerPed::RunningLand(CPad *padUsed)
|
||||||
{
|
{
|
||||||
CAnimBlendAssociation *landAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_FALL_LAND);
|
CAnimBlendAssociation *landAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_FALL_LAND);
|
||||||
if (landAssoc && landAssoc->currentTime == 0.0f && m_fMoveSpeed > 1.5f
|
if (landAssoc && landAssoc->currentTime == 0.0f && m_fMoveSpeed > 1.5f
|
||||||
&& padUsed && (padUsed->GetPedWalkLeftRight() != 0.0f || padUsed->GetPedWalkUpDown() != 0.0f)) {
|
&& padUsed && (padUsed->GetPedWalkLeftRight() != 0.0f || padUsed->GetPedWalkUpDown() != 0.0f)) {
|
||||||
|
|
||||||
landAssoc->blendDelta = -1000.0f;
|
landAssoc->blendDelta = -1000.0f;
|
||||||
landAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
landAssoc->flags |= ASSOC_DELETEFADEDOUT;
|
||||||
|
|
||||||
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_JUMP_LAND)->SetFinishCallback(FinishJumpCB, this);
|
CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_JUMP_LAND)->SetFinishCallback(FinishJumpCB, this);
|
||||||
|
|
||||||
if (m_nPedState == PED_JUMP)
|
if (m_nPedState == PED_JUMP)
|
||||||
RestorePreviousState();
|
RestorePreviousState();
|
||||||
@ -1258,7 +1258,7 @@ CPlayerPed::ProcessPlayerWeapon(CPad *padUsed)
|
|||||||
TheCamera.SetNewPlayerWeaponMode(CCam::MODE_M16_1STPERSON, 0, 0);
|
TheCamera.SetNewPlayerWeaponMode(CCam::MODE_M16_1STPERSON, 0, 0);
|
||||||
|
|
||||||
m_fMoveSpeed = 0.0f;
|
m_fMoveSpeed = 0.0f;
|
||||||
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_IDLE_STANCE, 1000.0f);
|
CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_IDLE, 1000.0f);
|
||||||
SetPedState(PED_SNIPER_MODE);
|
SetPedState(PED_SNIPER_MODE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1700,24 +1700,24 @@ CPlayerPed::ProcessControl(void)
|
|||||||
if (m_nPedState == PED_DRIVING && m_objective != OBJECTIVE_LEAVE_CAR) {
|
if (m_nPedState == PED_DRIVING && m_objective != OBJECTIVE_LEAVE_CAR) {
|
||||||
if (!CReplay::IsPlayingBack() || m_pMyVehicle) {
|
if (!CReplay::IsPlayingBack() || m_pMyVehicle) {
|
||||||
if (m_pMyVehicle->IsCar() && ((CAutomobile*)m_pMyVehicle)->Damage.GetDoorStatus(DOOR_FRONT_LEFT) == DOOR_STATUS_SWINGING) {
|
if (m_pMyVehicle->IsCar() && ((CAutomobile*)m_pMyVehicle)->Damage.GetDoorStatus(DOOR_FRONT_LEFT) == DOOR_STATUS_SWINGING) {
|
||||||
CAnimBlendAssociation *rollDoorAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_CAR_ROLLDOOR);
|
CAnimBlendAssociation *rollDoorAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LHS);
|
||||||
|
|
||||||
if (m_pMyVehicle->m_nGettingOutFlags & CAR_DOOR_FLAG_LF || rollDoorAssoc || (rollDoorAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_CAR_ROLLDOOR_LOW))) {
|
if (m_pMyVehicle->m_nGettingOutFlags & CAR_DOOR_FLAG_LF || rollDoorAssoc || (rollDoorAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LO_LHS))) {
|
||||||
if (rollDoorAssoc)
|
if (rollDoorAssoc)
|
||||||
m_pMyVehicle->ProcessOpenDoor(CAR_DOOR_LF, ANIM_CAR_ROLLDOOR, rollDoorAssoc->currentTime);
|
m_pMyVehicle->ProcessOpenDoor(CAR_DOOR_LF, ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LHS, rollDoorAssoc->currentTime);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// These comparisons are wrong, they return uint16
|
// These comparisons are wrong, they return uint16
|
||||||
if (padUsed && (padUsed->GetAccelerate() != 0.0f || padUsed->GetSteeringLeftRight() != 0.0f || padUsed->GetBrake() != 0.0f)) {
|
if (padUsed && (padUsed->GetAccelerate() != 0.0f || padUsed->GetSteeringLeftRight() != 0.0f || padUsed->GetBrake() != 0.0f)) {
|
||||||
if (rollDoorAssoc)
|
if (rollDoorAssoc)
|
||||||
m_pMyVehicle->ProcessOpenDoor(CAR_DOOR_LF, ANIM_CAR_ROLLDOOR, rollDoorAssoc->currentTime);
|
m_pMyVehicle->ProcessOpenDoor(CAR_DOOR_LF, ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LHS, rollDoorAssoc->currentTime);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
m_pMyVehicle->m_nGettingOutFlags |= CAR_DOOR_FLAG_LF;
|
m_pMyVehicle->m_nGettingOutFlags |= CAR_DOOR_FLAG_LF;
|
||||||
if (m_pMyVehicle->bLowVehicle)
|
if (m_pMyVehicle->bLowVehicle)
|
||||||
rollDoorAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_CAR_ROLLDOOR_LOW);
|
rollDoorAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LO_LHS);
|
||||||
else
|
else
|
||||||
rollDoorAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_CAR_ROLLDOOR);
|
rollDoorAssoc = CAnimManager::AddAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LHS);
|
||||||
|
|
||||||
rollDoorAssoc->SetFinishCallback(PedAnimDoorCloseRollingCB, this);
|
rollDoorAssoc->SetFinishCallback(PedAnimDoorCloseRollingCB, this);
|
||||||
}
|
}
|
||||||
@ -1947,11 +1947,11 @@ CPlayerPed::PlayIdleAnimations(CPad *padUsed)
|
|||||||
};
|
};
|
||||||
|
|
||||||
const animAndGroup idleAnims[] = {
|
const animAndGroup idleAnims[] = {
|
||||||
{ANIM_IDLE_STRETCH, ASSOCGRP_PLAYER_IDLE},
|
{ANIM_PLAYER_IDLE1, ASSOCGRP_PLAYER_IDLE},
|
||||||
{ANIM_IDLE_TIME, ASSOCGRP_PLAYER_IDLE},
|
{ANIM_PLAYER_IDLE2, ASSOCGRP_PLAYER_IDLE},
|
||||||
{ANIM_IDLE_SHOULDER, ASSOCGRP_PLAYER_IDLE},
|
{ANIM_PLAYER_IDLE3, ASSOCGRP_PLAYER_IDLE},
|
||||||
{ANIM_IDLE_STRETCH_LEG, ASSOCGRP_PLAYER_IDLE},
|
{ANIM_PLAYER_IDLE4, ASSOCGRP_PLAYER_IDLE},
|
||||||
{ANIM_XPRESS_SCRATCH, ASSOCGRP_STD},
|
{ANIM_STD_XPRESS_SCRATCH, ASSOCGRP_STD},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int32 lastTime = 0;
|
static int32 lastTime = 0;
|
||||||
|
@ -265,8 +265,8 @@ CClouds::Render(void)
|
|||||||
|
|
||||||
for(i = 0; i < 37; i++){
|
for(i = 0; i < 37; i++){
|
||||||
RwV3d pos = { 2.0f*CoorsOffsetX[i], 2.0f*CoorsOffsetY[i], 40.0f*CoorsOffsetZ[i] + 40.0f };
|
RwV3d pos = { 2.0f*CoorsOffsetX[i], 2.0f*CoorsOffsetY[i], 40.0f*CoorsOffsetZ[i] + 40.0f };
|
||||||
worldpos.x = campos.x*rot_cos + campos.y*rot_sin + pos.x;
|
worldpos.x = pos.x*rot_cos + pos.y*rot_sin + campos.x;
|
||||||
worldpos.y = campos.x*rot_sin + campos.y*rot_cos + pos.y;
|
worldpos.y = pos.x*rot_sin + pos.y*rot_cos + campos.y;
|
||||||
worldpos.z = pos.z;
|
worldpos.z = pos.z;
|
||||||
if(bCloudOnScreen[i] && CSprite::CalcScreenCoors(worldpos, &screenpos, &szx, &szy, false)){
|
if(bCloudOnScreen[i] && CSprite::CalcScreenCoors(worldpos, &screenpos, &szx, &szy, false)){
|
||||||
if(sundist < SCREEN_WIDTH/3){
|
if(sundist < SCREEN_WIDTH/3){
|
||||||
|
@ -242,7 +242,7 @@ void CWaterCannon::PushPeds(void)
|
|||||||
ped->m_vecMoveSpeed.x *= (0.2f / pedSpeed2D);
|
ped->m_vecMoveSpeed.x *= (0.2f / pedSpeed2D);
|
||||||
ped->m_vecMoveSpeed.y *= (0.2f / pedSpeed2D);
|
ped->m_vecMoveSpeed.y *= (0.2f / pedSpeed2D);
|
||||||
}
|
}
|
||||||
ped->SetFall(2000, (AnimationId)(localDir + ANIM_KO_SKID_FRONT), 0);
|
ped->SetFall(2000, (AnimationId)(localDir + ANIM_STD_HIGHIMPACT_FRONT), 0);
|
||||||
CParticle::AddParticle(PARTICLE_STEAM_NY_SLOWMOTION, ped->GetPosition(), ped->m_vecMoveSpeed * 0.3f, 0, 0.5f);
|
CParticle::AddParticle(PARTICLE_STEAM_NY_SLOWMOTION, ped->GetPosition(), ped->m_vecMoveSpeed * 0.3f, 0, 0.5f);
|
||||||
CParticle::AddParticle(PARTICLE_CAR_SPLASH, ped->GetPosition(), ped->m_vecMoveSpeed * -0.3f + CVector(0.f, 0.f, 0.5f), 0, 0.5f,
|
CParticle::AddParticle(PARTICLE_CAR_SPLASH, ped->GetPosition(), ped->m_vecMoveSpeed * -0.3f + CVector(0.f, 0.f, 0.5f), 0, 0.5f,
|
||||||
CGeneral::GetRandomNumberInRange(0.f, 10.f), CGeneral::GetRandomNumberInRange(0.f, 90.f), 1);
|
CGeneral::GetRandomNumberInRange(0.f, 10.f), CGeneral::GetRandomNumberInRange(0.f, 90.f), 1);
|
||||||
|
@ -75,7 +75,7 @@ void CapturePad(RwInt32 padID);
|
|||||||
void joysChangeCB(int jid, int event);
|
void joysChangeCB(int jid, int event);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
extern char gSelectedJoystickName[128];
|
extern char gSelectedJoystickName[128];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ static psGlobalType PsGlobal;
|
|||||||
size_t _dwMemAvailPhys;
|
size_t _dwMemAvailPhys;
|
||||||
RwUInt32 gGameState;
|
RwUInt32 gGameState;
|
||||||
|
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
char gSelectedJoystickName[128] = "";
|
char gSelectedJoystickName[128] = "";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -852,7 +852,7 @@ void joysChangeCB(int jid, int event);
|
|||||||
|
|
||||||
bool IsThisJoystickBlacklisted(int i)
|
bool IsThisJoystickBlacklisted(int i)
|
||||||
{
|
{
|
||||||
#ifndef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifndef DETECT_JOYSTICK_MENU
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
if (glfwJoystickIsGamepad(i))
|
if (glfwJoystickIsGamepad(i))
|
||||||
@ -917,7 +917,7 @@ void _InputInitialiseJoys()
|
|||||||
if (PSGLOBAL(joy1id) != -1) {
|
if (PSGLOBAL(joy1id) != -1) {
|
||||||
int count;
|
int count;
|
||||||
glfwGetJoystickButtons(PSGLOBAL(joy1id), &count);
|
glfwGetJoystickButtons(PSGLOBAL(joy1id), &count);
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
strcpy(gSelectedJoystickName, glfwGetJoystickName(PSGLOBAL(joy1id)));
|
strcpy(gSelectedJoystickName, glfwGetJoystickName(PSGLOBAL(joy1id)));
|
||||||
#endif
|
#endif
|
||||||
ControlsManager.InitDefaultControlConfigJoyPad(count);
|
ControlsManager.InitDefaultControlConfigJoyPad(count);
|
||||||
@ -2182,7 +2182,7 @@ void joysChangeCB(int jid, int event)
|
|||||||
if (event == GLFW_CONNECTED && !IsThisJoystickBlacklisted(jid)) {
|
if (event == GLFW_CONNECTED && !IsThisJoystickBlacklisted(jid)) {
|
||||||
if (PSGLOBAL(joy1id) == -1) {
|
if (PSGLOBAL(joy1id) == -1) {
|
||||||
PSGLOBAL(joy1id) = jid;
|
PSGLOBAL(joy1id) = jid;
|
||||||
#ifdef DONT_TRUST_RECOGNIZED_JOYSTICKS
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
strcpy(gSelectedJoystickName, glfwGetJoystickName(jid));
|
strcpy(gSelectedJoystickName, glfwGetJoystickName(jid));
|
||||||
#endif
|
#endif
|
||||||
// This is behind LOAD_INI_SETTINGS, because otherwise the Init call below will destroy/overwrite your bindings.
|
// This is behind LOAD_INI_SETTINGS, because otherwise the Init call below will destroy/overwrite your bindings.
|
||||||
|
@ -120,6 +120,10 @@ DWORD _dwOperatingSystemVersion;
|
|||||||
RwUInt32 gGameState;
|
RwUInt32 gGameState;
|
||||||
CJoySticks AllValidWinJoys;
|
CJoySticks AllValidWinJoys;
|
||||||
|
|
||||||
|
#ifdef DETECT_JOYSTICK_MENU
|
||||||
|
char gSelectedJoystickName[128] = "";
|
||||||
|
#endif
|
||||||
|
|
||||||
// What is that for anyway?
|
// What is that for anyway?
|
||||||
#ifndef IMPROVED_VIDEOMODE
|
#ifndef IMPROVED_VIDEOMODE
|
||||||
static RwBool defaultFullscreenRes = TRUE;
|
static RwBool defaultFullscreenRes = TRUE;
|
||||||
|
@ -3091,8 +3091,8 @@ CAutomobile::ProcessControlInputs(uint8 pad)
|
|||||||
float speed = DotProduct(m_vecMoveSpeed, GetForward());
|
float speed = DotProduct(m_vecMoveSpeed, GetForward());
|
||||||
|
|
||||||
if(!CPad::GetPad(pad)->GetExitVehicle() ||
|
if(!CPad::GetPad(pad)->GetExitVehicle() ||
|
||||||
pDriver && pDriver->m_pVehicleAnim && (pDriver->m_pVehicleAnim->animId == ANIM_CAR_ROLLOUT_LHS ||
|
pDriver && pDriver->m_pVehicleAnim && (pDriver->m_pVehicleAnim->animId == ANIM_STD_ROLLOUT_LHS ||
|
||||||
pDriver->m_pVehicleAnim->animId == ANIM_CAR_ROLLOUT_RHS))
|
pDriver->m_pVehicleAnim->animId == ANIM_STD_ROLLOUT_RHS))
|
||||||
bIsHandbrakeOn = !!CPad::GetPad(pad)->GetHandBrake();
|
bIsHandbrakeOn = !!CPad::GetPad(pad)->GetHandBrake();
|
||||||
else
|
else
|
||||||
bIsHandbrakeOn = true;
|
bIsHandbrakeOn = true;
|
||||||
@ -3874,11 +3874,11 @@ CAutomobile::DoDriveByShootings(void)
|
|||||||
lookingRight = true;
|
lookingRight = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
AnimationId rightAnim = ANIM_DRIVEBY_R;
|
AnimationId rightAnim = ANIM_STD_CAR_DRIVEBY_RIGHT;
|
||||||
AnimationId leftAnim = ANIM_DRIVEBY_L;
|
AnimationId leftAnim = ANIM_STD_CAR_DRIVEBY_LEFT;
|
||||||
if (pDriver->m_pMyVehicle->bLowVehicle) {
|
if (pDriver->m_pMyVehicle->bLowVehicle) {
|
||||||
rightAnim = ANIM_DRIVEBY_LOW_R;
|
rightAnim = ANIM_STD_CAR_DRIVEBY_RIGHT_LO;
|
||||||
leftAnim = ANIM_DRIVEBY_LOW_L;
|
leftAnim = ANIM_STD_CAR_DRIVEBY_LEFT_LO;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(lookingLeft || lookingRight){
|
if(lookingLeft || lookingRight){
|
||||||
@ -3917,11 +3917,11 @@ CAutomobile::DoDriveByShootings(void)
|
|||||||
// TODO: what is this?
|
// TODO: what is this?
|
||||||
if(!lookingLeft && m_weaponDoorTimerLeft > 0.0f){
|
if(!lookingLeft && m_weaponDoorTimerLeft > 0.0f){
|
||||||
m_weaponDoorTimerLeft = Max(m_weaponDoorTimerLeft - CTimer::GetTimeStep()*0.1f, 0.0f);
|
m_weaponDoorTimerLeft = Max(m_weaponDoorTimerLeft - CTimer::GetTimeStep()*0.1f, 0.0f);
|
||||||
ProcessOpenDoor(CAR_DOOR_LF, NUM_STD_ANIMS, m_weaponDoorTimerLeft);
|
ProcessOpenDoor(CAR_DOOR_LF, ANIM_STD_NUM, m_weaponDoorTimerLeft);
|
||||||
}
|
}
|
||||||
if(!lookingRight && m_weaponDoorTimerRight > 0.0f){
|
if(!lookingRight && m_weaponDoorTimerRight > 0.0f){
|
||||||
m_weaponDoorTimerRight = Max(m_weaponDoorTimerRight - CTimer::GetTimeStep()*0.1f, 0.0f);
|
m_weaponDoorTimerRight = Max(m_weaponDoorTimerRight - CTimer::GetTimeStep()*0.1f, 0.0f);
|
||||||
ProcessOpenDoor(CAR_DOOR_RF, NUM_STD_ANIMS, m_weaponDoorTimerRight);
|
ProcessOpenDoor(CAR_DOOR_RF, ANIM_STD_NUM, m_weaponDoorTimerRight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4640,55 +4640,55 @@ CAutomobile::ProcessOpenDoor(uint32 component, uint32 anim, float time)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
switch(anim){
|
switch(anim){
|
||||||
case ANIM_CAR_QJACK:
|
case ANIM_STD_QUICKJACK:
|
||||||
case ANIM_CAR_OPEN_LHS:
|
case ANIM_STD_CAR_OPEN_DOOR_LHS:
|
||||||
case ANIM_CAR_OPEN_RHS:
|
case ANIM_STD_CAR_OPEN_DOOR_RHS:
|
||||||
ProcessDoorOpenAnimation(this, component, door, time, 0.41f, 0.89f);
|
ProcessDoorOpenAnimation(this, component, door, time, 0.41f, 0.89f);
|
||||||
break;
|
break;
|
||||||
case ANIM_CAR_CLOSEDOOR_LHS:
|
case ANIM_STD_CAR_CLOSE_DOOR_LHS:
|
||||||
case ANIM_CAR_CLOSEDOOR_LOW_LHS:
|
case ANIM_STD_CAR_CLOSE_DOOR_LO_LHS:
|
||||||
case ANIM_CAR_CLOSEDOOR_RHS:
|
case ANIM_STD_CAR_CLOSE_DOOR_RHS:
|
||||||
case ANIM_CAR_CLOSEDOOR_LOW_RHS:
|
case ANIM_STD_CAR_CLOSE_DOOR_LO_RHS:
|
||||||
ProcessDoorCloseAnimation(this, component, door, time, 0.2f, 0.45f);
|
ProcessDoorCloseAnimation(this, component, door, time, 0.2f, 0.45f);
|
||||||
break;
|
break;
|
||||||
case ANIM_CAR_ROLLDOOR:
|
case ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LHS:
|
||||||
case ANIM_CAR_ROLLDOOR_LOW:
|
case ANIM_STD_CAR_CLOSE_DOOR_ROLLING_LO_LHS:
|
||||||
ProcessDoorOpenCloseAnimation(this, component, door, time, 0.1f, 0.6f, 0.95f);
|
ProcessDoorOpenCloseAnimation(this, component, door, time, 0.1f, 0.6f, 0.95f);
|
||||||
break;
|
break;
|
||||||
case ANIM_CAR_GETOUT_LHS:
|
case ANIM_STD_GETOUT_LHS:
|
||||||
case ANIM_CAR_GETOUT_LOW_LHS:
|
case ANIM_STD_GETOUT_LO_LHS:
|
||||||
case ANIM_CAR_GETOUT_RHS:
|
case ANIM_STD_GETOUT_RHS:
|
||||||
case ANIM_CAR_GETOUT_LOW_RHS:
|
case ANIM_STD_GETOUT_LO_RHS:
|
||||||
ProcessDoorOpenAnimation(this, component, door, time, 0.06f, 0.43f);
|
ProcessDoorOpenAnimation(this, component, door, time, 0.06f, 0.43f);
|
||||||
break;
|
break;
|
||||||
case ANIM_CAR_CLOSE_LHS:
|
case ANIM_STD_CAR_CLOSE_LHS:
|
||||||
case ANIM_CAR_CLOSE_RHS:
|
case ANIM_STD_CAR_CLOSE_RHS:
|
||||||
ProcessDoorCloseAnimation(this, component, door, time, 0.1f, 0.23f);
|
ProcessDoorCloseAnimation(this, component, door, time, 0.1f, 0.23f);
|
||||||
break;
|
break;
|
||||||
case ANIM_CAR_PULLOUT_RHS:
|
case ANIM_STD_CAR_PULL_OUT_PED_RHS:
|
||||||
case ANIM_CAR_PULLOUT_LOW_RHS:
|
case ANIM_STD_CAR_PULL_OUT_PED_LO_RHS:
|
||||||
OpenDoor(component, door, 1.0f);
|
OpenDoor(component, door, 1.0f);
|
||||||
break;
|
break;
|
||||||
case ANIM_COACH_OPEN_L:
|
case ANIM_STD_COACH_OPEN_LHS:
|
||||||
case ANIM_COACH_OPEN_R:
|
case ANIM_STD_COACH_OPEN_RHS:
|
||||||
ProcessDoorOpenAnimation(this, component, door, time, 0.66f, 0.8f);
|
ProcessDoorOpenAnimation(this, component, door, time, 0.66f, 0.8f);
|
||||||
break;
|
break;
|
||||||
case ANIM_COACH_OUT_L:
|
case ANIM_STD_COACH_GET_OUT_LHS:
|
||||||
ProcessDoorOpenAnimation(this, component, door, time, 0.0f, 0.3f);
|
ProcessDoorOpenAnimation(this, component, door, time, 0.0f, 0.3f);
|
||||||
break;
|
break;
|
||||||
case ANIM_VAN_OPEN_L:
|
case ANIM_STD_VAN_OPEN_DOOR_REAR_LHS:
|
||||||
case ANIM_VAN_OPEN:
|
case ANIM_STD_VAN_OPEN_DOOR_REAR_RHS:
|
||||||
ProcessDoorOpenAnimation(this, component, door, time, 0.37f, 0.55f);
|
ProcessDoorOpenAnimation(this, component, door, time, 0.37f, 0.55f);
|
||||||
break;
|
break;
|
||||||
case ANIM_VAN_CLOSE_L:
|
case ANIM_STD_VAN_CLOSE_DOOR_REAR_LHS:
|
||||||
case ANIM_VAN_CLOSE:
|
case ANIM_STD_VAN_CLOSE_DOOR_REAR_RHS:
|
||||||
ProcessDoorCloseAnimation(this, component, door, time, 0.5f, 0.8f);
|
ProcessDoorCloseAnimation(this, component, door, time, 0.5f, 0.8f);
|
||||||
break;
|
break;
|
||||||
case ANIM_VAN_GETOUT_L:
|
case ANIM_STD_VAN_GET_OUT_REAR_LHS:
|
||||||
case ANIM_VAN_GETOUT:
|
case ANIM_STD_VAN_GET_OUT_REAR_RHS:
|
||||||
ProcessDoorOpenAnimation(this, component, door, time, 0.5f, 0.6f);
|
ProcessDoorOpenAnimation(this, component, door, time, 0.5f, 0.6f);
|
||||||
break;
|
break;
|
||||||
case NUM_STD_ANIMS:
|
case ANIM_STD_NUM:
|
||||||
OpenDoor(component, door, time);
|
OpenDoor(component, door, time);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -5821,13 +5821,13 @@ CAutomobile::CloseAllDoors(void)
|
|||||||
void
|
void
|
||||||
CAutomobile::KnockPedOutCar(eWeaponType weapon, uint16 door, CPed *ped)
|
CAutomobile::KnockPedOutCar(eWeaponType weapon, uint16 door, CPed *ped)
|
||||||
{
|
{
|
||||||
AnimationId anim = ANIM_KO_SHOT_FRONT1;
|
AnimationId anim = ANIM_STD_KO_FRONT;
|
||||||
if(ped == nil)
|
if(ped == nil)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ped->m_vehDoor = door;
|
ped->m_vehDoor = door;
|
||||||
ped->SetPedState(PED_IDLE);
|
ped->SetPedState(PED_IDLE);
|
||||||
CAnimManager::BlendAnimation(ped->GetClump(), ped->m_animGroup, ANIM_IDLE_STANCE, 100.0f);
|
CAnimManager::BlendAnimation(ped->GetClump(), ped->m_animGroup, ANIM_STD_IDLE, 100.0f);
|
||||||
CPed::PedSetOutCarCB(nil, ped);
|
CPed::PedSetOutCarCB(nil, ped);
|
||||||
ped->SetMoveState(PEDMOVE_STILL);
|
ped->SetMoveState(PEDMOVE_STILL);
|
||||||
if(GetUp().z < 0.0f)
|
if(GetUp().z < 0.0f)
|
||||||
@ -5840,14 +5840,14 @@ CAutomobile::KnockPedOutCar(eWeaponType weapon, uint16 door, CPed *ped)
|
|||||||
case WEAPONTYPE_UNIDENTIFIED:
|
case WEAPONTYPE_UNIDENTIFIED:
|
||||||
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
||||||
ped->m_pCollidingEntity = this;
|
ped->m_pCollidingEntity = this;
|
||||||
anim = NUM_STD_ANIMS;
|
anim = ANIM_STD_NUM;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WEAPONTYPE_BASEBALLBAT:
|
case WEAPONTYPE_BASEBALLBAT:
|
||||||
case WEAPONTYPE_RAMMEDBYCAR:
|
case WEAPONTYPE_RAMMEDBYCAR:
|
||||||
case WEAPONTYPE_FALL:
|
case WEAPONTYPE_FALL:
|
||||||
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
||||||
anim = ANIM_KD_LEFT;
|
anim = ANIM_STD_SPINFORWARD_LEFT;
|
||||||
ApplyMoveForce(4.0f*GetUp() + 8.0f*GetRight());
|
ApplyMoveForce(4.0f*GetUp() + 8.0f*GetRight());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -572,7 +572,7 @@ CBike::ProcessControl(void)
|
|||||||
// Lean forward speed up
|
// Lean forward speed up
|
||||||
float savedAirResistance = m_fAirResistance;
|
float savedAirResistance = m_fAirResistance;
|
||||||
if(GetStatus() == STATUS_PLAYER && pDriver){
|
if(GetStatus() == STATUS_PLAYER && pDriver){
|
||||||
CAnimBlendAssociation *assoc = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_FWD);
|
CAnimBlendAssociation *assoc = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_LEANF);
|
||||||
if(assoc && assoc->blendAmount > 0.5f &&
|
if(assoc && assoc->blendAmount > 0.5f &&
|
||||||
assoc->currentTime > 0.06f && assoc->currentTime < 0.14f){
|
assoc->currentTime > 0.06f && assoc->currentTime < 0.14f){
|
||||||
m_fAirResistance *= 0.6f;
|
m_fAirResistance *= 0.6f;
|
||||||
@ -1013,7 +1013,7 @@ CBike::ProcessControl(void)
|
|||||||
// Process leaning
|
// Process leaning
|
||||||
float idleAngle = 0.0f;
|
float idleAngle = 0.0f;
|
||||||
if(pDriver){
|
if(pDriver){
|
||||||
CAnimBlendAssociation *assoc = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_STILL);
|
CAnimBlendAssociation *assoc = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_READY);
|
||||||
if(assoc)
|
if(assoc)
|
||||||
idleAngle = DEGTORAD(10.0f) * assoc->blendAmount;
|
idleAngle = DEGTORAD(10.0f) * assoc->blendAmount;
|
||||||
}
|
}
|
||||||
@ -2034,35 +2034,35 @@ CBike::DoDriveByShootings(void)
|
|||||||
|
|
||||||
if(lookingLeft || lookingRight || CPad::GetPad(0)->GetCarGunFired()){
|
if(lookingLeft || lookingRight || CPad::GetPad(0)->GetCarGunFired()){
|
||||||
if(lookingLeft){
|
if(lookingLeft){
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
|
||||||
if(anim)
|
|
||||||
anim->blendDelta = -1000.0f;
|
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_FT);
|
|
||||||
if(anim)
|
|
||||||
anim->blendDelta = -1000.0f;
|
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
|
||||||
if(anim == nil || anim->blendDelta < 0.0f)
|
|
||||||
anim = CAnimManager::AddAnimation(pDriver->GetClump(), m_bikeAnimType, ANIM_BIKE_DRIVEBY_RHS);
|
|
||||||
}else if(lookingRight){
|
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_FT);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_FORWARD);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
||||||
if(anim == nil || anim->blendDelta < 0.0f)
|
if(anim == nil || anim->blendDelta < 0.0f)
|
||||||
anim = CAnimManager::AddAnimation(pDriver->GetClump(), m_bikeAnimType, ANIM_BIKE_DRIVEBY_LHS);
|
anim = CAnimManager::AddAnimation(pDriver->GetClump(), m_bikeAnimType, ANIM_BIKE_DRIVEBY_LHS);
|
||||||
}else{
|
}else if(lookingRight){
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_FORWARD);
|
||||||
|
if(anim)
|
||||||
|
anim->blendDelta = -1000.0f;
|
||||||
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
||||||
|
if(anim == nil || anim->blendDelta < 0.0f)
|
||||||
|
anim = CAnimManager::AddAnimation(pDriver->GetClump(), m_bikeAnimType, ANIM_BIKE_DRIVEBY_RHS);
|
||||||
|
}else{
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_FT);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
||||||
|
if(anim)
|
||||||
|
anim->blendDelta = -1000.0f;
|
||||||
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_FORWARD);
|
||||||
if(anim == nil || anim->blendDelta < 0.0f)
|
if(anim == nil || anim->blendDelta < 0.0f)
|
||||||
anim = CAnimManager::AddAnimation(pDriver->GetClump(), m_bikeAnimType, ANIM_BIKE_DRIVEBY_FT);
|
anim = CAnimManager::AddAnimation(pDriver->GetClump(), m_bikeAnimType, ANIM_BIKE_DRIVEBY_FORWARD);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!anim || !anim->IsRunning()) {
|
if (!anim || !anim->IsRunning()) {
|
||||||
@ -2073,13 +2073,13 @@ CBike::DoDriveByShootings(void)
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
weapon->Reload();
|
weapon->Reload();
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
|
||||||
if(anim)
|
|
||||||
anim->blendDelta = -1000.0f;
|
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_LHS);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_FT);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_RHS);
|
||||||
|
if(anim)
|
||||||
|
anim->blendDelta = -1000.0f;
|
||||||
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_BIKE_DRIVEBY_FORWARD);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
}
|
}
|
||||||
@ -2573,7 +2573,7 @@ CBike::PlayCarHorn(void)
|
|||||||
void
|
void
|
||||||
CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBackOn)
|
CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBackOn)
|
||||||
{
|
{
|
||||||
AnimationId anim = ANIM_KO_SHOT_FRONT1;
|
AnimationId anim = ANIM_STD_KO_FRONT;
|
||||||
if(ped == nil)
|
if(ped == nil)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -2611,7 +2611,7 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
|
|||||||
}
|
}
|
||||||
|
|
||||||
ped->SetPedState(PED_IDLE);
|
ped->SetPedState(PED_IDLE);
|
||||||
CAnimManager::BlendAnimation(ped->GetClump(), ped->m_animGroup, ANIM_IDLE_STANCE, 100.0f);
|
CAnimManager::BlendAnimation(ped->GetClump(), ped->m_animGroup, ANIM_STD_IDLE, 100.0f);
|
||||||
ped->m_vehDoor = CAR_DOOR_LF;
|
ped->m_vehDoor = CAR_DOOR_LF;
|
||||||
CPed::PedSetOutCarCB(nil, ped);
|
CPed::PedSetOutCarCB(nil, ped);
|
||||||
ped->SetMoveState(PEDMOVE_STILL);
|
ped->SetMoveState(PEDMOVE_STILL);
|
||||||
@ -2625,14 +2625,14 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
|
|||||||
case WEAPONTYPE_UNIDENTIFIED:
|
case WEAPONTYPE_UNIDENTIFIED:
|
||||||
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
||||||
ped->m_pCollidingEntity = this;
|
ped->m_pCollidingEntity = this;
|
||||||
anim = NUM_STD_ANIMS;
|
anim = ANIM_STD_NUM;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WEAPONTYPE_BASEBALLBAT:
|
case WEAPONTYPE_BASEBALLBAT:
|
||||||
default:
|
default:
|
||||||
switch(direction){
|
switch(direction){
|
||||||
case 0:
|
case 0:
|
||||||
anim = ANIM_BIKE_FALL_R;
|
anim = ANIM_STD_BIKE_FALLBACK;
|
||||||
ped->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.1f);
|
ped->m_vecMoveSpeed = CVector(0.0f, 0.0f, 0.1f);
|
||||||
if(m_vecMoveSpeed.MagnitudeSqr() < SQR(0.3f))
|
if(m_vecMoveSpeed.MagnitudeSqr() < SQR(0.3f))
|
||||||
ped->ApplyMoveForce(5.0f*GetUp() - 6.0f*GetForward());
|
ped->ApplyMoveForce(5.0f*GetUp() - 6.0f*GetForward());
|
||||||
@ -2641,11 +2641,11 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
|
|||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
if(m_vecMoveSpeed.MagnitudeSqr() > SQR(0.3f)){
|
if(m_vecMoveSpeed.MagnitudeSqr() > SQR(0.3f)){
|
||||||
anim = ANIM_KO_SPIN_R;
|
anim = ANIM_STD_HIGHIMPACT_LEFT;
|
||||||
ped->m_vecMoveSpeed = 0.3f*m_vecMoveSpeed;
|
ped->m_vecMoveSpeed = 0.3f*m_vecMoveSpeed;
|
||||||
ped->ApplyMoveForce(5.0f*GetUp() + 6.0f*GetRight());
|
ped->ApplyMoveForce(5.0f*GetUp() + 6.0f*GetRight());
|
||||||
}else{
|
}else{
|
||||||
anim = ANIM_KD_LEFT;
|
anim = ANIM_STD_SPINFORWARD_LEFT;
|
||||||
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
||||||
ped->ApplyMoveForce(4.0f*GetUp() + 8.0f*GetRight());
|
ped->ApplyMoveForce(4.0f*GetUp() + 8.0f*GetRight());
|
||||||
}
|
}
|
||||||
@ -2654,11 +2654,11 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if(m_vecMoveSpeed.MagnitudeSqr() > SQR(0.3f)){
|
if(m_vecMoveSpeed.MagnitudeSqr() > SQR(0.3f)){
|
||||||
anim = ANIM_KO_SPIN_L;
|
anim = ANIM_STD_HIGHIMPACT_RIGHT;
|
||||||
ped->m_vecMoveSpeed = 0.3f*m_vecMoveSpeed;
|
ped->m_vecMoveSpeed = 0.3f*m_vecMoveSpeed;
|
||||||
ped->ApplyMoveForce(5.0f*GetUp() - 6.0f*GetRight());
|
ped->ApplyMoveForce(5.0f*GetUp() - 6.0f*GetRight());
|
||||||
}else{
|
}else{
|
||||||
anim = ANIM_KD_RIGHT;
|
anim = ANIM_STD_SPINFORWARD_RIGHT;
|
||||||
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
ped->m_vecMoveSpeed = m_vecMoveSpeed;
|
||||||
ped->ApplyMoveForce(4.0f*GetUp() - 8.0f*GetRight());
|
ped->ApplyMoveForce(4.0f*GetUp() - 8.0f*GetRight());
|
||||||
}
|
}
|
||||||
@ -2670,7 +2670,7 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
|
|||||||
|
|
||||||
case WEAPONTYPE_DROWNING:{
|
case WEAPONTYPE_DROWNING:{
|
||||||
RwRGBA color;
|
RwRGBA color;
|
||||||
anim = ANIM_FALL_FALL;
|
anim = ANIM_STD_FALL;
|
||||||
ped->m_vecMoveSpeed = m_vecMoveSpeed*0.2f;
|
ped->m_vecMoveSpeed = m_vecMoveSpeed*0.2f;
|
||||||
ped->m_vecMoveSpeed.z = 0.0f;
|
ped->m_vecMoveSpeed.z = 0.0f;
|
||||||
ped->m_pCollidingEntity = this;
|
ped->m_pCollidingEntity = this;
|
||||||
@ -2695,10 +2695,10 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
|
|||||||
CGeneral::GetRandomNumberInRange(3.0f, 7.0f));
|
CGeneral::GetRandomNumberInRange(3.0f, 7.0f));
|
||||||
ped->m_pCollidingEntity = this;
|
ped->m_pCollidingEntity = this;
|
||||||
switch(direction){
|
switch(direction){
|
||||||
case 0: anim = ANIM_KO_SKID_BACK; break;
|
case 0: anim = ANIM_STD_HIGHIMPACT_BACK; break;
|
||||||
case 1: anim = ANIM_KD_RIGHT; break;
|
case 1: anim = ANIM_STD_SPINFORWARD_RIGHT; break;
|
||||||
case 2: anim = ANIM_BIKE_FALL_R; break;
|
case 2: anim = ANIM_STD_BIKE_FALLBACK; break;
|
||||||
case 3: anim = ANIM_KD_LEFT; break;
|
case 3: anim = ANIM_STD_SPINFORWARD_LEFT; break;
|
||||||
}
|
}
|
||||||
if(m_nWheelsOnGround == 0)
|
if(m_nWheelsOnGround == 0)
|
||||||
ped->bKnockedOffBike = true;
|
ped->bKnockedOffBike = true;
|
||||||
@ -2714,10 +2714,10 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
|
|||||||
CGeneral::GetRandomNumberInRange(minForceZ, maxForceZ));
|
CGeneral::GetRandomNumberInRange(minForceZ, maxForceZ));
|
||||||
ped->m_pCollidingEntity = this;
|
ped->m_pCollidingEntity = this;
|
||||||
switch(direction){
|
switch(direction){
|
||||||
case 0: anim = ANIM_KO_SKID_BACK; break;
|
case 0: anim = ANIM_STD_HIGHIMPACT_BACK; break;
|
||||||
case 1: anim = ANIM_KD_RIGHT; break;
|
case 1: anim = ANIM_STD_SPINFORWARD_RIGHT; break;
|
||||||
case 2: anim = ANIM_KO_SKID_FRONT; break;
|
case 2: anim = ANIM_STD_HIGHIMPACT_FRONT; break;
|
||||||
case 3: anim = ANIM_KD_LEFT; break;
|
case 3: anim = ANIM_STD_SPINFORWARD_LEFT; break;
|
||||||
}
|
}
|
||||||
ped->bKnockedOffBike = true;
|
ped->bKnockedOffBike = true;
|
||||||
if(ped->IsPlayer())
|
if(ped->IsPlayer())
|
||||||
@ -2732,7 +2732,7 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
|
|||||||
ped->bIsInTheAir = true;
|
ped->bIsInTheAir = true;
|
||||||
ped->bIsInWater = true;
|
ped->bIsInWater = true;
|
||||||
ped->bTouchingWater = true;
|
ped->bTouchingWater = true;
|
||||||
CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_FALL_FALL, 4.0f);
|
CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_STD_FALL, 4.0f);
|
||||||
}else if(weapon != WEAPONTYPE_UNARMED){
|
}else if(weapon != WEAPONTYPE_UNARMED){
|
||||||
if(ped->m_fHealth > 0.0f)
|
if(ped->m_fHealth > 0.0f)
|
||||||
ped->SetFall(1000, anim, 0);
|
ped->SetFall(1000, anim, 0);
|
||||||
|
@ -1439,19 +1439,19 @@ CBoat::DoDriveByShootings(void)
|
|||||||
|
|
||||||
if(lookingLeft || lookingRight){
|
if(lookingLeft || lookingRight){
|
||||||
if(lookingLeft){
|
if(lookingLeft){
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_DRIVEBY_R);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_STD_CAR_DRIVEBY_RIGHT);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_DRIVEBY_L);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_STD_CAR_DRIVEBY_LEFT);
|
||||||
if(anim == nil || anim->blendDelta < 0.0f)
|
if(anim == nil || anim->blendDelta < 0.0f)
|
||||||
anim = CAnimManager::AddAnimation(pDriver->GetClump(), ASSOCGRP_STD, ANIM_DRIVEBY_L);
|
anim = CAnimManager::AddAnimation(pDriver->GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_DRIVEBY_LEFT);
|
||||||
}else if(pDriver->m_pMyVehicle->pPassengers[0] == nil || TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_1STPERSON){
|
}else if(pDriver->m_pMyVehicle->pPassengers[0] == nil || TheCamera.Cams[TheCamera.ActiveCam].Mode == CCam::MODE_1STPERSON){
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_DRIVEBY_L);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_STD_CAR_DRIVEBY_LEFT);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_DRIVEBY_R);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_STD_CAR_DRIVEBY_RIGHT);
|
||||||
if(anim == nil || anim->blendDelta < 0.0f)
|
if(anim == nil || anim->blendDelta < 0.0f)
|
||||||
anim = CAnimManager::AddAnimation(pDriver->GetClump(), ASSOCGRP_STD, ANIM_DRIVEBY_R);
|
anim = CAnimManager::AddAnimation(pDriver->GetClump(), ASSOCGRP_STD, ANIM_STD_CAR_DRIVEBY_RIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!anim || !anim->IsRunning()) {
|
if (!anim || !anim->IsRunning()) {
|
||||||
@ -1462,10 +1462,10 @@ CBoat::DoDriveByShootings(void)
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
weapon->Reload();
|
weapon->Reload();
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_DRIVEBY_L);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_STD_CAR_DRIVEBY_LEFT);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_DRIVEBY_R);
|
anim = RpAnimBlendClumpGetAssociation(pDriver->GetClump(), ANIM_STD_CAR_DRIVEBY_RIGHT);
|
||||||
if(anim)
|
if(anim)
|
||||||
anim->blendDelta = -1000.0f;
|
anim->blendDelta = -1000.0f;
|
||||||
}
|
}
|
||||||
|
@ -737,7 +737,7 @@ CHeli::SendDownSwat(void)
|
|||||||
m_numSwat--;
|
m_numSwat--;
|
||||||
swat->m_nRopeID = (uintptr)this + m_numSwat;
|
swat->m_nRopeID = (uintptr)this + m_numSwat;
|
||||||
m_aSwatState[m_numSwat] = 255;
|
m_aSwatState[m_numSwat] = 255;
|
||||||
CAnimManager::BlendAnimation(swat->GetClump(), ASSOCGRP_STD, ANIM_ABSEIL, 4.0f);
|
CAnimManager::BlendAnimation(swat->GetClump(), ASSOCGRP_STD, ANIM_STD_ABSEIL, 4.0f);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -131,7 +131,7 @@ void CBulletInfo::Update(void)
|
|||||||
if (!pPed->DyingOrDead() && pPed != pBullet->m_pSource) {
|
if (!pPed->DyingOrDead() && pPed != pBullet->m_pSource) {
|
||||||
if (pPed->IsPedInControl() && !pPed->bIsDucking) {
|
if (pPed->IsPedInControl() && !pPed->bIsDucking) {
|
||||||
pPed->ClearAttackByRemovingAnim();
|
pPed->ClearAttackByRemovingAnim();
|
||||||
CAnimBlendAssociation* pAnim = CAnimManager::AddAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_SHOT_FRONT_PARTIAL);
|
CAnimBlendAssociation* pAnim = CAnimManager::AddAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_STD_HITBYGUN_FRONT);
|
||||||
pAnim->SetBlend(0.0f, 8.0f);
|
pAnim->SetBlend(0.0f, 8.0f);
|
||||||
}
|
}
|
||||||
pPed->InflictDamage(pBullet->m_pSource, pBullet->m_eWeaponType, pBullet->m_nDamage, (ePedPieceTypes)point.pieceB, pPed->GetLocalDirection(pPed->GetPosition() - point.point));
|
pPed->InflictDamage(pBullet->m_pSource, pBullet->m_eWeaponType, pBullet->m_nDamage, (ePedPieceTypes)point.pieceB, pPed->GetLocalDirection(pPed->GetPosition() - point.point));
|
||||||
@ -152,9 +152,9 @@ void CBulletInfo::Update(void)
|
|||||||
if (pPed->GetPedState() == PED_DEAD) {
|
if (pPed->GetPedState() == PED_DEAD) {
|
||||||
CAnimBlendAssociation* pAnim;
|
CAnimBlendAssociation* pAnim;
|
||||||
if (RpAnimBlendClumpGetFirstAssociation(pPed->GetClump(), ASSOC_FRONTAL))
|
if (RpAnimBlendClumpGetFirstAssociation(pPed->GetClump(), ASSOC_FRONTAL))
|
||||||
pAnim = CAnimManager::BlendAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT_F, 8.0f);
|
pAnim = CAnimManager::BlendAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR_FRONT, 8.0f);
|
||||||
else
|
else
|
||||||
pAnim = CAnimManager::BlendAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT, 8.0f);
|
pAnim = CAnimManager::BlendAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR, 8.0f);
|
||||||
if (pAnim) {
|
if (pAnim) {
|
||||||
pAnim->SetCurrentTime(0.0f);
|
pAnim->SetCurrentTime(0.0f);
|
||||||
pAnim->flags |= ASSOC_RUNNING;
|
pAnim->flags |= ASSOC_RUNNING;
|
||||||
|
@ -676,9 +676,9 @@ CWeapon::FireMelee(CEntity *shooter, CVector &fireSource)
|
|||||||
victimPed->ApplyMoveForce(posOffset.x*-5.0f, posOffset.y*-5.0f, 3.0f);
|
victimPed->ApplyMoveForce(posOffset.x*-5.0f, posOffset.y*-5.0f, 3.0f);
|
||||||
|
|
||||||
if ( isHeavy && victimPed->IsPlayer() )
|
if ( isHeavy && victimPed->IsPlayer() )
|
||||||
victimPed->SetFall(3000, AnimationId(ANIM_KO_SKID_FRONT + localDir), false);
|
victimPed->SetFall(3000, AnimationId(ANIM_STD_HIGHIMPACT_FRONT + localDir), false);
|
||||||
else
|
else
|
||||||
victimPed->SetFall(1500, AnimationId(ANIM_KO_SKID_FRONT + localDir), false);
|
victimPed->SetFall(1500, AnimationId(ANIM_STD_HIGHIMPACT_FRONT + localDir), false);
|
||||||
|
|
||||||
shooterPed->m_pSeekTarget = victimPed;
|
shooterPed->m_pSeekTarget = victimPed;
|
||||||
shooterPed->m_pSeekTarget->RegisterReference(&shooterPed->m_pSeekTarget);
|
shooterPed->m_pSeekTarget->RegisterReference(&shooterPed->m_pSeekTarget);
|
||||||
@ -1351,7 +1351,7 @@ CWeapon::DoBulletImpact(CEntity *shooter, CEntity *victim,
|
|||||||
victimPed->bIsStanding = false;
|
victimPed->bIsStanding = false;
|
||||||
|
|
||||||
victimPed->ApplyMoveForce(posOffset.x*-5.0f, posOffset.y*-5.0f, 5.0f);
|
victimPed->ApplyMoveForce(posOffset.x*-5.0f, posOffset.y*-5.0f, 5.0f);
|
||||||
victimPed->SetFall(1500, AnimationId(ANIM_KO_SKID_FRONT + localDir), false);
|
victimPed->SetFall(1500, AnimationId(ANIM_STD_HIGHIMPACT_FRONT + localDir), false);
|
||||||
|
|
||||||
victimPed->InflictDamage(shooter, m_eWeaponType, info->m_nDamage, (ePedPieceTypes)point->pieceB, localDir);
|
victimPed->InflictDamage(shooter, m_eWeaponType, info->m_nDamage, (ePedPieceTypes)point->pieceB, localDir);
|
||||||
}
|
}
|
||||||
@ -1364,7 +1364,7 @@ CWeapon::DoBulletImpact(CEntity *shooter, CEntity *victim,
|
|||||||
{
|
{
|
||||||
victimPed->ClearAttackByRemovingAnim();
|
victimPed->ClearAttackByRemovingAnim();
|
||||||
|
|
||||||
CAnimBlendAssociation *asoc = CAnimManager::AddAnimation(victimPed->GetClump(), ASSOCGRP_STD, AnimationId(ANIM_SHOT_FRONT_PARTIAL + localDir));
|
CAnimBlendAssociation *asoc = CAnimManager::AddAnimation(victimPed->GetClump(), ASSOCGRP_STD, AnimationId(ANIM_STD_HITBYGUN_FRONT + localDir));
|
||||||
ASSERT(asoc!=nil);
|
ASSERT(asoc!=nil);
|
||||||
|
|
||||||
asoc->blendAmount = 0.0f;
|
asoc->blendAmount = 0.0f;
|
||||||
@ -1380,7 +1380,7 @@ CWeapon::DoBulletImpact(CEntity *shooter, CEntity *victim,
|
|||||||
{
|
{
|
||||||
victimPed->ClearAttackByRemovingAnim();
|
victimPed->ClearAttackByRemovingAnim();
|
||||||
|
|
||||||
CAnimBlendAssociation *asoc = CAnimManager::AddAnimation(victimPed->GetClump(), ASSOCGRP_STD, AnimationId(ANIM_SHOT_FRONT_PARTIAL + localDir));
|
CAnimBlendAssociation *asoc = CAnimManager::AddAnimation(victimPed->GetClump(), ASSOCGRP_STD, AnimationId(ANIM_STD_HITBYGUN_FRONT + localDir));
|
||||||
ASSERT(asoc!=nil);
|
ASSERT(asoc!=nil);
|
||||||
|
|
||||||
asoc->blendAmount = 0.0f;
|
asoc->blendAmount = 0.0f;
|
||||||
@ -1436,9 +1436,9 @@ CWeapon::DoBulletImpact(CEntity *shooter, CEntity *victim,
|
|||||||
{
|
{
|
||||||
CAnimBlendAssociation *asoc;
|
CAnimBlendAssociation *asoc;
|
||||||
if ( RpAnimBlendClumpGetFirstAssociation(victimPed->GetClump(), ASSOC_FRONTAL) )
|
if ( RpAnimBlendClumpGetFirstAssociation(victimPed->GetClump(), ASSOC_FRONTAL) )
|
||||||
asoc = CAnimManager::BlendAnimation(victimPed->GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT_F, 8.0f);
|
asoc = CAnimManager::BlendAnimation(victimPed->GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR_FRONT, 8.0f);
|
||||||
else
|
else
|
||||||
asoc = CAnimManager::BlendAnimation(victimPed->GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT, 8.0f);
|
asoc = CAnimManager::BlendAnimation(victimPed->GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR, 8.0f);
|
||||||
|
|
||||||
if ( asoc )
|
if ( asoc )
|
||||||
{
|
{
|
||||||
@ -1809,7 +1809,7 @@ CWeapon::FireShotgun(CEntity *shooter, CVector *fireSource)
|
|||||||
victimPed->ApplyMoveForce(posOffset.x*-2.0f, posOffset.y*-2.0f, 0.0f);
|
victimPed->ApplyMoveForce(posOffset.x*-2.0f, posOffset.y*-2.0f, 0.0f);
|
||||||
|
|
||||||
if ( cantStandup )
|
if ( cantStandup )
|
||||||
victimPed->SetFall(1500, AnimationId(ANIM_KO_SKID_FRONT + localDir), false);
|
victimPed->SetFall(1500, AnimationId(ANIM_STD_HIGHIMPACT_FRONT + localDir), false);
|
||||||
|
|
||||||
victimPed->InflictDamage(shooter, m_eWeaponType, info->m_nDamage, (ePedPieceTypes)point.pieceB, localDir);
|
victimPed->InflictDamage(shooter, m_eWeaponType, info->m_nDamage, (ePedPieceTypes)point.pieceB, localDir);
|
||||||
|
|
||||||
@ -1849,11 +1849,11 @@ CWeapon::FireShotgun(CEntity *shooter, CVector *fireSource)
|
|||||||
CAnimBlendAssociation *hitAssoc;
|
CAnimBlendAssociation *hitAssoc;
|
||||||
if (RpAnimBlendClumpGetFirstAssociation(victimPed->GetClump(), ASSOC_FRONTAL))
|
if (RpAnimBlendClumpGetFirstAssociation(victimPed->GetClump(), ASSOC_FRONTAL))
|
||||||
{
|
{
|
||||||
hitAssoc = CAnimManager::BlendAnimation(victimPed->GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT_F, 8.0f);
|
hitAssoc = CAnimManager::BlendAnimation(victimPed->GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR_FRONT, 8.0f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hitAssoc = CAnimManager::BlendAnimation(victimPed->GetClump(), ASSOCGRP_STD, ANIM_FLOOR_HIT, 8.0f);
|
hitAssoc = CAnimManager::BlendAnimation(victimPed->GetClump(), ASSOCGRP_STD, ANIM_STD_HIT_FLOOR, 8.0f);
|
||||||
}
|
}
|
||||||
if (hitAssoc)
|
if (hitAssoc)
|
||||||
{
|
{
|
||||||
@ -2535,7 +2535,7 @@ CWeapon::FireInstantHitFromCar(CVehicle *shooter, bool left, bool right)
|
|||||||
victimPed->ReactToAttack(FindPlayerPed());
|
victimPed->ReactToAttack(FindPlayerPed());
|
||||||
victimPed->ClearAttackByRemovingAnim();
|
victimPed->ClearAttackByRemovingAnim();
|
||||||
|
|
||||||
CAnimBlendAssociation *asoc = CAnimManager::AddAnimation(victimPed->GetClump(), ASSOCGRP_STD, AnimationId(ANIM_SHOT_FRONT_PARTIAL + localDir));
|
CAnimBlendAssociation *asoc = CAnimManager::AddAnimation(victimPed->GetClump(), ASSOCGRP_STD, AnimationId(ANIM_STD_HITBYGUN_FRONT + localDir));
|
||||||
ASSERT(asoc!=nil);
|
ASSERT(asoc!=nil);
|
||||||
asoc->blendAmount = 0.0f;
|
asoc->blendAmount = 0.0f;
|
||||||
asoc->blendDelta = 8.0f;
|
asoc->blendDelta = 8.0f;
|
||||||
@ -2968,7 +2968,7 @@ FireOneInstantHitRound(CVector *source, CVector *target, int32 damage)
|
|||||||
|
|
||||||
victimPed->ClearAttackByRemovingAnim();
|
victimPed->ClearAttackByRemovingAnim();
|
||||||
|
|
||||||
CAnimBlendAssociation *asoc = CAnimManager::AddAnimation(victimPed->GetClump(), ASSOCGRP_STD, AnimationId(ANIM_SHOT_FRONT_PARTIAL + localDir));
|
CAnimBlendAssociation *asoc = CAnimManager::AddAnimation(victimPed->GetClump(), ASSOCGRP_STD, AnimationId(ANIM_STD_HITBYGUN_FRONT + localDir));
|
||||||
ASSERT(asoc!=nil);
|
ASSERT(asoc!=nil);
|
||||||
asoc->blendAmount = 0.0f;
|
asoc->blendAmount = 0.0f;
|
||||||
asoc->blendDelta = 8.0f;
|
asoc->blendDelta = 8.0f;
|
||||||
|
2
vendor/librw
vendored
2
vendor/librw
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 60a5ace16309ccd3d174a3ec14a1062540934066
|
Subproject commit 5c95300890559c85a2764bc200361f904cd4f9f4
|
Loading…
Reference in New Issue
Block a user