diff --git a/source/platform/plurve.cpp b/source/platform/plurve.cpp new file mode 100644 index 000000000..503db7602 --- /dev/null +++ b/source/platform/plurve.cpp @@ -0,0 +1,27 @@ +/*========================================================================= + + plurve.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __PLATFORM_PLURVE_H__ +#include "platform\plurve.h" +#endif + + +void CNpcLoveBoatPlatform::postInit() +{ + CNpcRaftPlatform::postInit(); + + sBBox boundingBox = m_modelGfx->GetBBox(); + boundingBox.YMin += 32; + setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) ); + setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 ); +} diff --git a/source/platform/plurve.h b/source/platform/plurve.h new file mode 100644 index 000000000..7a01d7c43 --- /dev/null +++ b/source/platform/plurve.h @@ -0,0 +1,27 @@ +/*========================================================================= + + plurve.h + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __PLATFORM_PLURVE_H__ +#define __PLATFORM_PLURVE_H__ + +#ifndef __PLATFORM_PRAFT_H__ +#include "platform\praft.h" +#endif + +class CNpcLoveBoatPlatform : public CNpcRaftPlatform +{ +public: + virtual void postInit(); +}; + +#endif \ No newline at end of file