DD Tokki
Well-known member
C:
void blockFreeze()
{//Freezes the opponent to give a little "pause moment" effect during the block, like SF3 Third Strike
void self = getlocalvar("self");
void target = getlocalvar("attacker");
void subType = getentityproperty(target, "subtype");
float time = openborvariant("elapsed_time");
float freeze = 30;
//AVOID WEAPON AND PROJECTILE SUBTYPES, DOESN'T MAKE SENSE TO STOP THESE ENTITIES
if(subType != openborconstant("SUBTYPE_WEAPON") && subType != openborconstant("SUBTYPE_PROJECTILE")){
changeentityproperty(target, "aiflag", "frozen", 1);
changeentityproperty(target, "freezetime", time+freeze);
}
}
This script has an effect that temporarily stops movement, similar to a hit delay, in response to a block action. It is usually not applied to other actions, so I would like to change this script so that it can be used for any action. For example, I would like to apply this script to an enemy's action to temporarily stop the enemy and the player.