Skip to content

ShotContext beta ​

Interface of @v12-engine/client

ts
export interface ShotContext

What a shot drawn the game's way is made from (ShotDef.draw): the shot, whoever shot it, where it left from, and the client's render kit (the scene, the models, where each entity is drawn)

Members ​

from ​

ts
readonly from: {
        x: number;
        y: number;
        z: number;
    };

Where it left from: the point of its shooter's model, or its hands

kit ​

ts
readonly kit: LiteRenderKit;

The render kit: its shapes, the models and where each entity is drawn

projectile ​

ts
readonly projectile: ProjectileView;

The shot being drawn: its position, type and the entity that shot it

shooter ​

ts
readonly shooter?: EntityView;

The unit that shot it; none where the shooter is not in view or gone