Beispiel #1
0
global func FxIntHalfVehicleFadeJumpStop(object target, proplist effect, int reason, bool temp)
{
	if (reason == FX_Call_RemoveClear)
		return;
	for (var i = GetLength(effect.collideverts); i-->0;)
			target->SetVertexCNAT(effect.collideverts[i], CNAT_PhaseHalfVehicle, false);
}
Beispiel #2
0
global func FxIntHalfVehicleFadeJumpStart(object target, proplist effect, int temp)
{
	if (temp)
		return FX_OK;
	if (!target) {
		return FX_Start_Deny;
	}
	effect.collideverts = CreateArray();
	for (var i = target->GetVertexNum(); i-->0;)
		if(!(target->GetVertex(i, VTX_CNAT) & CNAT_PhaseHalfVehicle)) {
			PushBack(effect.collideverts, i);
			target->SetVertexCNAT(i, CNAT_PhaseHalfVehicle, true);
		}
	effect.origpos = target->GetPosition();
	return FX_OK;
}