Skip to content

Commit

Permalink
reload fix, maybe something else
Browse files Browse the repository at this point in the history
  • Loading branch information
Lithe authored and BSVino committed May 4, 2013
1 parent 5dc420f commit 4f7b1c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/game/shared/sdk/sdk_playeranimstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,13 +680,14 @@ void CSDKPlayerAnimState::DoAnimationEvent( PlayerAnimEvent_t event, int nData )
case PLAYERANIMEVENT_RELOAD:
{
// Weapon reload.
/*//We only have standing reload-- it blends into other states
if ( m_pSDKPlayer->m_Shared.IsProne() || m_pSDKPlayer->m_Shared.IsDiveSliding() )
RestartGesture( GESTURE_SLOT_ATTACK_AND_RELOAD, ACT_DAB_RELOAD_PRONE );
else if ( m_pSDKPlayer->m_Shared.IsSliding() )
RestartGesture( GESTURE_SLOT_ATTACK_AND_RELOAD, ACT_DAB_RELOAD_SLIDE );
else if ( GetBasePlayer()->GetFlags() & FL_DUCKING )
RestartGesture( GESTURE_SLOT_ATTACK_AND_RELOAD, ACT_DAB_RELOAD_CROUCH );
else
else*/
RestartGesture( GESTURE_SLOT_ATTACK_AND_RELOAD, ACT_DAB_RELOAD );

iGestureActivity = ACT_VM_RELOAD; //Make view reload if it isn't already
Expand All @@ -695,13 +696,14 @@ void CSDKPlayerAnimState::DoAnimationEvent( PlayerAnimEvent_t event, int nData )
case PLAYERANIMEVENT_RELOAD_LOOP:
{
// Weapon reload.
/*//We only have standing reload-- it blends into other states
if ( m_pSDKPlayer->m_Shared.IsProne() || m_pSDKPlayer->m_Shared.IsDiveSliding() )
RestartGesture( GESTURE_SLOT_ATTACK_AND_RELOAD, ACT_DAB_RELOAD_LOOP_PRONE );
else if ( m_pSDKPlayer->m_Shared.IsSliding() )
RestartGesture( GESTURE_SLOT_ATTACK_AND_RELOAD, ACT_DAB_RELOAD_LOOP_SLIDE );
else if ( GetBasePlayer()->GetFlags() & FL_DUCKING )
RestartGesture( GESTURE_SLOT_ATTACK_AND_RELOAD, ACT_DAB_RELOAD_LOOP_CROUCH );
else
else*/
RestartGesture( GESTURE_SLOT_ATTACK_AND_RELOAD, ACT_DAB_RELOAD_LOOP );

iGestureActivity = ACT_INVALID; //TODO: fix
Expand Down
4 changes: 2 additions & 2 deletions src/game/shared/sdk/weapon_akimbobase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ CAkimbobase::ActivityOverride (Activity baseAct, bool *pRequired)
int
CAkimbobase::GetTracerAttachment (void)
{
if (!shootright) return 1;
return 2;
if (shootright) return 2;
return 1;
}
Activity
CAkimbobase::GetIdleActivity (void)
Expand Down

0 comments on commit 4f7b1c9

Please sign in to comment.