Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include "mercuryball.h"
- CMercuryBall::CMercuryBall(void) {}
- CMercuryBall::~CMercuryBall(void) {}
- BOOL CMercuryBall::net_Spawn(LPVOID DC) {
- inherited::net_Spawn(DC);
- setVisible (true);
- setEnabled (true);
- xrSE_MercuryBall* E = (xrSE_MercuryBall*)DC;
- cNameVisual_set(E->s_Model);
- return TRUE;
- }
- void CMercuryBall::OnH_A_Chield() {
- inherited::OnH_A_Chield ();
- setVisible (false);
- setEnabled (false);
- }
- void CMercuryBall::OnH_B_Independent() {
- inherited::OnH_B_Independent();
- setVisible (true);
- setEnabled (true);
- CObject* E = dynamic_cast<CObject*>(H_Parent());
- R_ASSERT (E);
- svTransform.set(E->clXFORM());
- vPosition.set(svTransform.c);
- }
- void CMercuryBall::OnDeviceCreate() {
- inherited::OnDeviceCreate();
- CKinematics* V = PKinematics(Visual());
- if(V) V->PlayCycle("idle");
- }
- void CMercuryBall::OnDeviceDestroy() {
- inherited::OnDeviceDestroy ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement