Page 1 of 1

Check if tank is sealed

Posted: Sun Aug 14, 2022 8:52 pm
by Grue
Hey folks,

How can I tell if a tank is sealed?

Grue

Re: Check if tank is sealed

Posted: Sun Aug 14, 2022 11:53 pm
by Zehra
From include/bzfsAPI.h in source.

Code: Select all

typedef struct bz_PlayerUpdateState
{
    bz_ePlayerStatus  status;         // special states
    bool          falling;        // not driving on the ground or an obstacle
    bool          crossingWall;       // crossing an obstacle wall
    bool          inPhantomZone;      // zoned
    float         pos[3];         // position of tank
    float         velocity[3];        // velocity of tank
    float         rotation;       // orientation of tank
    float         angVel;         // angular velocity of tank
    int           phydrv;         // physics driver
} bz_PlayerUpdateState;
Perhaps try checking crossingWall, it may work, but I haven't checked.(I'm not sure if it works on sealed or just even if a tank is simply crossing an object which is drivethrough.)

-Zehra

Re: Check if tank is sealed

Posted: Mon Aug 15, 2022 5:24 pm
by Grue
Unfortunately, using crossingWall does not check whether or not tank is completely sealed...

Re: Check if tank is sealed

Posted: Thu Aug 18, 2022 2:47 am
by Zehra
What are you trying to do?

-Zehra