实体
物体 CObject
查看 Markdown物体血量、伤害、绳索与门
CObject.h · 继承 CPhysical
逻辑帧改;drawing 只读。
也可用 Command 创建后 CPools::GetObject。
CObject();
CObject(int32_t modelId, bool bCreate);
unsigned char m_nObjectType; // OBJECT_MISSION 等float m_fHealth;
float m_fScale;
// m_nObjectFlags bitfieldvoid ObjectDamage(float damage, CVector* fxOrigin, CVector* fxDirection, CEntity* damager, eWeaponType weaponType);
void Explode();
bool TryToExplode();
void ObjectFireDamage(float damage, CEntity* damager);void SetObjectTargettable(unsigned char targetable);
bool CanBeTargetted();void LockDoor();
void ResetDoorAngle();
float m_fDoorStartAngle;float GetRopeHeight();
void SetRopeHeight(float height);
CEntity* GetObjectCarriedWithRope();
void ReleaseObjectCarriedWithRope();void SetRemapTexture(RwTexture* remapTexture, short txdIndex);
评论