https://drive.google.com/open?id=0B1mr-qG-LpkEcDNaYkJGZ1lUVVk
C:\Warz\Bin\Data\Animations5
----------------------warz_server--------------------------
หา
// server lockboxes
มองหา PKT_C2S_LockboxPickup,
เอาทั้งหมดวางข้างใต้
PKT_C2C_StartLitter,
PKT_C2C_StartSpank,
PKT_C2C_StartSpanktwo,
PKT_C2C_StartHandFlip,
PKT_C2C_StartJack,
PKT_C2C_StartPThrust,
PKT_C2C_StartBigPThrust,
PKT_C2C_StartBalls,
หา
struct PKT_C2C_PlayerJump_s : public DefaultPacketMixin<PKT_C2C_PlayerJump>
{
};
วางใต้
struct PKT_C2C_StartLitter_s : public DefaultPacketMixin<PKT_C2C_StartLitter>
{
};
struct PKT_C2C_StartSpank_s : public DefaultPacketMixin<PKT_C2C_StartSpank>
{
};
struct PKT_C2C_StartSpanktwo_s : public DefaultPacketMixin<PKT_C2C_StartSpanktwo>
{
};
struct PKT_C2C_StartHandFlip_s : public DefaultPacketMixin<PKT_C2C_StartHandFlip>
{
};
struct PKT_C2C_StartJack_s : public DefaultPacketMixin<PKT_C2C_StartJack>
{
};
struct PKT_C2C_StartPThrust_s : public DefaultPacketMixin<PKT_C2C_StartPThrust>
{
};
struct PKT_C2C_StartBigPThrust_s : public DefaultPacketMixin<PKT_C2C_StartBigPThrust>
{
};
struct PKT_C2C_StartBalls_s : public DefaultPacketMixin<PKT_C2C_StartBalls>
{
};
หา
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_PlayerJump_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
วางใต้
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_StartLitter_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_StartSpank_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_StartSpanktwo_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_StartHandFlip_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_StartJack_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_StartPThrust_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_StartBigPThrust_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
void obj_ServerPlayer::OnNetPacket(const PKT_C2C_StartBalls_s& n)
{
RelayPacket(&n, sizeof(n), true);
}
หา
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_PlayerJump);
วางใต้
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartLitter);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartSpank);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartSpanktwo);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartHandFlip);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartJack);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartPThrust);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartBigPThrust);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartBalls);
หา
void OnNetPacket(const PKT_C2C_PlayerJump_s& n);
วางใต้
void OnNetPacket(const PKT_C2C_StartLitter_s& n);
void OnNetPacket(const PKT_C2C_StartSpank_s& n);
void OnNetPacket(const PKT_C2C_StartSpanktwo_s& n);
void OnNetPacket(const PKT_C2C_StartHandFlip_s& n);
void OnNetPacket(const PKT_C2C_StartJack_s& n);
void OnNetPacket(const PKT_C2C_StartPThrust_s& n);
void OnNetPacket(const PKT_C2C_StartBigPThrust_s& n);
void OnNetPacket(const PKT_C2C_StartBalls_s& n);
--------------------------------------------------------------------------------------------------
War.sln
หา
bool obj_Player::IsPushActive()
{
return pushVelocity > 0;
}
#endif
วางใต้
void obj_Player::StartLitter()
{
uberAnim_->StartLitterAnim();
PKT_C2C_StartLitter_s n;
p2pSendToHost(this, &n, sizeof(n));
}
void obj_Player::StartWeaponShow()
{
uberAnim_->StartWeaponShowAnim();
}
void obj_Player::StartSpank()
{
uberAnim_->StartSpankAnim();
PKT_C2C_StartSpank_s n;
p2pSendToHost(this, &n, sizeof(n));
}
void obj_Player::StartSpanktwo()
{
uberAnim_->StartSpanktwoAnim();
PKT_C2C_StartSpanktwo_s n;
p2pSendToHost(this, &n, sizeof(n));
}
void obj_Player::StartHandFlip()
{
uberAnim_->StartHandFlipAnim();
PKT_C2C_StartHandFlip_s n;
p2pSendToHost(this, &n, sizeof(n));
}
void obj_Player::StartJack()
{
uberAnim_->StartJackAnim();
PKT_C2C_StartJack_s n;
p2pSendToHost(this, &n, sizeof(n));
}
void obj_Player::StartPThrust()
{
uberAnim_->StartPThrustAnim();
PKT_C2C_StartPThrust_s n;
p2pSendToHost(this, &n, sizeof(n));
}
void obj_Player::StartBigPThrust()
{
uberAnim_->StartBigPThrustAnim();
PKT_C2C_StartBigPThrust_s n;
p2pSendToHost(this, &n, sizeof(n));
}
void obj_Player::StartBalls()
{
uberAnim_->StartBallsAnim();
PKT_C2C_StartBalls_s n;
p2pSendToHost(this, &n, sizeof(n));
}
หา
void obj_Player::OnNetPacket(const PKT_C2C_PlayerJump_s& n)
{
วางใต้
void obj_Player::OnNetPacket(const PKT_C2C_StartLitter_s& n)
{
uberAnim_->StartLitterAnim();
return;
}
void obj_Player::OnNetPacket(const PKT_C2C_StartSpank_s& n)
{
uberAnim_->StartSpankAnim();
return;
}
void obj_Player::OnNetPacket(const PKT_C2C_StartSpanktwo_s& n)
{
uberAnim_->StartSpanktwoAnim();
return;
}
void obj_Player::OnNetPacket(const PKT_C2C_StartHandFlip_s& n)
{
uberAnim_->StartHandFlipAnim();
return;
}
void obj_Player::OnNetPacket(const PKT_C2C_StartJack_s& n)
{
uberAnim_->StartJackAnim();
return;
}
void obj_Player::OnNetPacket(const PKT_C2C_StartPThrust_s& n)
{
uberAnim_->StartPThrustAnim();
return;
}
void obj_Player::OnNetPacket(const PKT_C2C_StartBigPThrust_s& n)
{
uberAnim_->StartBigPThrustAnim();
return;
}
void obj_Player::OnNetPacket(const PKT_C2C_StartBalls_s& n)
{
uberAnim_->StartBallsAnim();
return;
}
/*void obj_Player::OnNetPacket(const PKT_C2C_StartLitter_s& n)
{
uberAnim_->StartLitter();
return;
}*/
หา
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_PlayerJump);
วางใต้
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartLitter);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartSpank);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartSpanktwo);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartHandFlip);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartJack);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartPThrust);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartBigPThrust);
DEFINE_GAMEOBJ_PACKET_HANDLER(PKT_C2C_StartBalls);
หา
float StartFallingTime;
วางใต้
//int TauntTrackID;
/*void TauntLitter();
void TauntSpank();
void TauntSpanktwo();
void TauntHandFlip();
void TauntJack();
void TauntPThrust();
void TauntBigPThrust();
void TauntBalls();*/
void StartLitter();
void StartWeaponShow();
void StartSpank();
void StartSpanktwo();
void StartHandFlip();
void StartJack();
void StartPThrust();
void StartBigPThrust();
void StartBalls();
หา
void OnNetPacket(const PKT_C2C_PlayerJump_s& n);
วางใต้
void OnNetPacket(const PKT_C2C_StartLitter_s& n);
void OnNetPacket(const PKT_C2C_StartSpank_s& n);
void OnNetPacket(const PKT_C2C_StartSpanktwo_s& n);
void OnNetPacket(const PKT_C2C_StartHandFlip_s& n);
void OnNetPacket(const PKT_C2C_StartJack_s& n);
void OnNetPacket(const PKT_C2C_StartPThrust_s& n);
void OnNetPacket(const PKT_C2C_StartBigPThrust_s& n);
void OnNetPacket(const PKT_C2C_StartBalls_s& n);
หา
aid_.deaths[12] = AddAnimation("Death_02_t1");//AddAnimation("Death_01_v1_s1");
}
วางใต้
void CUberData::LoadTauntAnim()
{
aid_.taunts[0] = AddAnimation("Taunt_t1_Litterbox");
aid_.taunts[1] = AddAnimation("Taunt_t1_Spank");
aid_.taunts[2] = AddAnimation("Taunt_t1_Spank_02");
aid_.taunts[3] = AddAnimation("Taunt_t1_HandFlip");
aid_.taunts[4] = AddAnimation("Taunt_t1_Jack");
aid_.taunts[5] = AddAnimation("Taunt_t1_PThrust");
aid_.taunts[6] = AddAnimation("Taunt_t1_Big_PThrust");
aid_.taunts[7] = AddAnimation("Taunt_t1_Balls");
aid_.taunts[7] = AddAnimation("Taunt_t1_Balls");
aid_.taunts[8] = AddAnimation("FPS_Weap_Show");
}
หา
anim.StartAnimation(data_->aid_.deaths[11], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
วางใต้
void CUberAnim::StartLitterAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[0], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
void CUberAnim::StartWeaponShowAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[8], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
void CUberAnim::StartSpankAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[1], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
void CUberAnim::StartSpanktwoAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[2], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
void CUberAnim::StartHandFlipAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[3], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
void CUberAnim::StartJackAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[4], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
void CUberAnim::StartPThrustAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[5], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
void CUberAnim::StartBigPThrustAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[6], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
void CUberAnim::StartBallsAnim()
{
StopReloadAnim();
//StopGrenadeAnimations();
anim.StartAnimation(data_->aid_.taunts[7], ANIMFLAG_PauseOnEnd | ANIMFLAG_RemoveOtherFade, 0.0f, 1.0f, 0.1f);
}
หา
void StartDeathAnim();
วางใต้
void StartLitterAnim();
void StartWeaponShowAnim();
void StartSpankAnim();
void StartSpanktwoAnim();
void StartHandFlipAnim();
void StartJackAnim();
void StartPThrustAnim();
void StartBigPThrustAnim();
void StartBallsAnim();
/*void StartLitter();
void StartSpank();
void StartSpanktwo();
void StartHandFlip();
void StartJack();
void StartPThrust();
void StartBigPThrust();
void StartBalls();*/
หา
pl->StartJump();
}
}
วางใต้
if(Keyboard->IsPressed(kbsNumericEnd))
{
pl->StartLitter();
}
if(Keyboard->IsPressed(kbsF) && g_camera_mode->GetInt()==2)
{
pl->StartWeaponShow();
}
if(Keyboard->IsPressed(kbsNumericDown))
{
pl->StartSpank();
}
if(Keyboard->IsPressed(kbsNumericPgDn))
{
pl->StartSpanktwo();
}
if(Keyboard->IsPressed(kbsNumericLeft))
{
pl->StartHandFlip();
}
if(Keyboard->IsPressed(kbsNumericFive))
{
pl->StartJack();
}
if(Keyboard->IsPressed(kbsNumericRight))
{
pl->StartPThrust();
}
if(Keyboard->IsPressed(kbsNumericHome))
{
pl->StartBigPThrust();
}
if(Keyboard->IsPressed(kbsNumericUp))
{
pl->StartBalls();
}
หา
int deaths[20];
วางใต้
int taunts[20];
หา
void LoadDeathAnim();
วางใต้
void LoadTauntAnim();
หา
LoadDeathAnim();
วางใต้
LoadTauntAnim();
ไม่มีความคิดเห็น:
แสดงความคิดเห็น