예제 #1
0
bool CNavHelmet::PETHelmetOnOffMsg(CPETHelmetOnOffMsg *msg) {
	CPetControl *pet = getPetControl();

	if (_flag) {
		_flag = false;
		setVisible(true);
		starFn(STAR_HIDE);
		playMovie(61, 120, MOVIE_NOTIFY_OBJECT);
		playSound("a#47.wav");
		playSound("a#48.wav");

		if (pet) {
			pet->decAreaLocks();
			pet->setArea(PET_REMOTE);
		}

		decTransitions();
	} else {
		incTransitions();
		_flag = true;
		setVisible(true);
		playMovie(0, 60, MOVIE_NOTIFY_OBJECT);
		playSound("a#48.wav");
		playSound("a#47.wav");
	}

	return true;
}
예제 #2
0
bool CNavHelmet::MovieEndMsg(CMovieEndMsg *msg) {
	if (_flag) {
		setVisible(false);

		CPetControl *pet = getPetControl();
		if (pet) {
			pet->setArea(PET_STARFIELD);
			petDisplayMessage(1, ADJUST_VIEWING_APPARATUS);
			pet->incAreaLocks();
		}

		starFn(STAR_SHOW);
		starFn(STAR_12);
	}

	return true;
}