Menu

Commit [r2419]  Maximize  Restore  History

New script Event: onpainscript - Fires after all pain values are set to entity. Returns following variables:

void self: Calling entity.
int type: Attack type.
int reset: Reset flag for pain animation.

Openborvariant additions:

float lasthitx: X location of last hit.
float lasthita: Y location of last hit.
float lasthitz: Z location of last hit.

New attack supplement: staydown {rise} {riseattack}

{rise} - Additional time in centiseconds before entity's next rise.
{riseattack} - Additional time in centiseconds before entity's next riseattack. If -1, entity cannot rise attack at all.

Both values are reset once entity rises or rise attacks. Open to get & changeentityproperites as:

int iRise = getentityproperty(vEntity, "staydown");
int iRiseattack = getentityproperty(vEntity, "staydownatk");

changeentityproperty(vEntity, "staydown", {rise}, {riseattack});

damon_caskey 2009-09-26

MongoDB Logo MongoDB