Skip to content

AttackLook beta ​

Interface of @v12-engine/client

ts
export interface AttackLook

How one of a unit's attacks looks and sounds (UnitLook.attacks, by the attack's place in UnitTypeDef.attacks), as data: each field left out is the unit's own. Timing stays the simulation's (AttackDef.damagePoint, recovery): the clip is fitted about the blow, and damagePointFromClip gives the damage point a clip's hit mark says

Members ​

clip ​

ts
clip?: string | readonly string[];

The clip it swings or shoots with, or several to take turns (order): never the same twice running where there are several. The model's attack when left out; attackClip decides over it in code

crit ​

ts
crit?: string;

The clip of a critical strike: as the blow lands critically (a shot leaves with a critical strike), the swing goes on as this clip, from its own blow (its hit mark)

from ​

ts
from?: string;

The point of the model launch plays at: the shot's from, else its launch point, else its middle

hitSound ​

ts
hitSound?: string;

A sound of the game's as its blow lands or its shot arrives, in place of the unit's hit sound

impact ​

ts
impact?: ShotFx | false;

An effect where it strikes: on what a blow struck (sparks, a splash of light), or where a shot lands where its shot says none. false for none

launch ​

ts
launch?: ShotFx;

An effect at the point it shoots from (from) as the shot leaves (a muzzle flash, a bow's string, a glowing hand), or as the blow lands for an attack that shoots nothing

order ​

ts
order?: ClipOrder;

How several clips take turns: in the order they are listed (turn, when left out), or at random (random)

shot ​

ts
shot?: ShotDef;

What it shoots, over the unit's shot field by field; shotFor decides over it in code

sound ​

ts
sound?: string;

A sound of the game's as it swings or shoots, in place of the unit's attack sound

speed ​

ts
speed?: number | 'fixed';

How fast its clip plays: a factor on the speed it is fitted to the swing with (1.2 a little faster, 0.8 slower), or fixed to play it at its own pace, not fitted to the swing (the blow on the screen is then the clip's)

trail ​

ts
trail?: SwingTrailLook | false;

The streak behind its swing (SwingTrailLook), over the game's (FeelLook.trails); false for none. A melee attack has the game's where it says nothing, one that shoots none

whileBuff ​

ts
whileBuff?: Record<string, Omit<AttackLook, 'whileBuff'>>;

What is different about it while the unit carries a buff, by the id of the buff: any field (its clips, what it shoots, its effects, its sounds, its trail), over its own; the shot field by field over its shot. The first buff named that the unit carries