⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientsmoketrail.cpp

📁 Blood 2全套源码
💻 CPP
字号:
// ----------------------------------------------------------------------- //
//
// MODULE  : CClientSmokeTrail.cpp
//
// PURPOSE : CClientSmokeTrail - Implementation
//
// CREATED : 10/21/97
//
// ----------------------------------------------------------------------- //

#include "ClientSmokeTrail.h"
#include "cpp_server_de.h"
#include "SFXMsgIds.h"


BEGIN_CLASS(CClientSmokeTrail)
END_CLASS_DEFAULT_FLAGS(CClientSmokeTrail, CClientSFX, NULL, NULL, CF_HIDDEN)


// ----------------------------------------------------------------------- //
//
//	ROUTINE:	CClientSmokeTrail::Setup
//
//	PURPOSE:	Setup the smoke trail
//
// ----------------------------------------------------------------------- //

void CClientSmokeTrail::Setup(DVector vVel, DBOOL bSmall)
{ 
	CServerDE* pServerDE = GetServerDE();
	if (!pServerDE) return;

	// Tell the clients about the SmokeTrail, and remove thyself...

	HMESSAGEWRITE hMessage = pServerDE->StartSpecialEffectMessage(this);
	pServerDE->WriteToMessageByte(hMessage, SFX_SMOKETRAIL_ID);
//pServerDE->WriteToMessageByte(hMessage, DFALSE);
	pServerDE->WriteToMessageVector(hMessage, &vVel);
	pServerDE->WriteToMessageByte(hMessage, bSmall);
	pServerDE->EndMessage(hMessage);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -