踹门DLL修改教程

Modified on: Thu, 22 Apr 2021 17:04:00 +0800

使用dnspy打开DLL后,搜索door.BreachSuccessRoll

public bool BreachSuccessRoll(Vector3 yourPosition)
            {
                    if (this.CanBeBreached)
                    {
                    }
                    if (this.Operatable)
                    {
                            Vector3 vector = base.transform.TransformPoint(this.viewTarget1) - yourPosition;
                            Vector3 a = base.GetDoorRotation(this.GetAngle(EDoorState.Shut)) * WorldInteractiveObject.GetRotationAxis(this.DoorForward, base.transform);
                            Vector3 b = base.GetDoorRotation(this.GetAngle(EDoorState.Open)) * WorldInteractiveObject.GetRotationAxis(this.DoorForward, base.transform);
                            Vector3 vector2 = a + b;
                            Vector2.Dot(new Vector2(vector.x, vector.z).normalized, new Vector2(vector2.x, vector2.z).normalized);
                            return true;
                    }
                    return false;
            }

评论已关闭